DBD-mysql icon indicating copy to clipboard operation
DBD-mysql copied to clipboard

Install issues on Windows Server 2022 - undefined references

Open geekdad1 opened this issue 11 months ago • 5 comments
trafficstars

DBD::mysql version

5.010

MySQL client version

No response

Server version

Windows server 2022

Operating system version

Server 2022

What happened?

Trying to create a mysql client on a server that does not have mysql installed on it. I've copied the lib and include folders from the server and put them on this machine so that the installation will at last compile. I'm using the following command to create the makefile:

`perl MakeFile1.pl --cflags="-Ic:\mysql\install\include -Lc:\mysql\install\lib -lmysqlclient" --mysql_config=c:\mysql\install --libs=-Lc:\mysql\install\lib

when I run gmake I get the following (shortened) result. So I'm not sure what else I'm missing. Any help is appreciated.

"C:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- mysql.bs blib\arch\auto\DBD\mysql\mysql.bs 644 g++ mysql.def -o blib\arch\auto\DBD\mysql\mysql.xs.dll -shared -s -L"C:\STRAWBERRY\perl\lib\CORE" -L"C:\STRAWBERRY\c\lib" -L"C:\STRAWBERRY\c\x86_64-w64-mingw32\lib" -L"C:\STRAWBERRY\c\lib\gcc\x86_64-w64-mingw32\13.2.0" dbdimp.o mysql.o socket.o "C:\STRAWBERRY\perl\lib\CORE\libperl540.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libmoldname.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libkernel32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libuser32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libwinspool.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libcomdlg32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libadvapi32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libshell32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libole32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\liboleaut32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libnetapi32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libuuid.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libws2_32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libmpr.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libwinmm.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libversion.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libodbc32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libodbccp32.a" "C:\STRAWBERRY\c\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--enable-auto-image-base C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: dbdimp.o: in function mysql_dr_connect': C:/Perl64/cpan/build/DBD-mysql-5.010-0/dbdimp.c:1208:(.text+0xa74): undefined reference to mysql_server_init' C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Perl64/cpan/build/DBD-mysql-5.010-0/dbdimp.c:1209:(.text+0xa81): undefined reference to mysql_init' C:/Strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/Perl64/cpan/build/DBD-mysql-5.010-0/dbdimp.c:1231:(.text+0xb48): undefined reference to mysql_options' ,,,

`

Other information

No response

geekdad1 avatar Dec 16 '24 03:12 geekdad1