DBD::mysql-4.006, Windows 2000, mingw

DBD::mysql-4.006, Windows 2000, mingw

am 22.04.2008 06:11:45 von Daniel Kasak

Greetings.

I'm trying to build DBD::mysql with mingw, and having issues.

I run:

perl Makefile.PL "--libs=-LC:\mysql\lib -lmysqlclient -lz -lm -lcrypt
-lnsl"

The location of headers was correctly guessed as c:\mysql\include

When building, I get ( excuse text wrapping ... this case from a DOS box
==> notepad ==> Eterm ==> email ):

C:\camelbox\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll
-Wl,--ba
se-file -Wl,dll.base -mdll -s -L"C:\camelbox\lib\CORE" -L"C:\camelbox
\lib" dbdim
p.o mysql.o -Wl,--image-base,0x1570000 C:\camelbox\lib\CORE
\libperl510.a C:
\camelbox\lib\libm.a C:\camelbox\lib\libmsvcrt.a C:\camelbox\lib
\libmoldname.a C
:\camelbox\lib\libkernel32.a C:\camelbox\lib\libuser32.a C:\camelbox\lib
\libgdi3
2.a C:\camelbox\lib\libwinspool.a C:\camelbox\lib\libcomdlg32.a C:
\camelbox\lib\
libadvapi32.a C:\camelbox\lib\libshell32.a C:\camelbox\lib\libole32.a C:
\camelbo
x\lib\liboleaut32.a C:\camelbox\lib\libnetapi32.a C:\camelbox\lib
\libuuid.a C:\c
amelbox\lib\libws2_32.a C:\camelbox\lib\libmpr.a C:\camelbox\lib
\libwinmm.a C:\c
amelbox\lib\libversion.a C:\camelbox\lib\libodbc32.a C:\camelbox\lib
\libodbccp32
..a dll.exp
dbdimp.o: In function `mysql_dr_connect':
C:/DBD-mysql-4.006/dbdimp.c:1456: undefined reference to
`mysql_server_init@12'
C:/DBD-mysql-4.006/dbdimp.c:1464: undefined reference to `mysql_init@4'
C:/DBD-mysql-4.006/dbdimp.c:1656: undefined reference to
`mysql_real_connect@32'

C:/DBD-mysql-4.006/dbdimp.c:1484: undefined reference to
`mysql_options@12'
C:/DBD-mysql-4.006/dbdimp.c:1494: undefined reference to
`mysql_options@12'
C:/DBD-mysql-4.006/dbdimp.c:1505: undefined reference to
`mysql_options@12'
C:/DBD-mysql-4.006/dbdimp.c:1516: undefined reference to
`mysql_options@12'
C:/DBD-mysql-4.006/dbdimp.c:1574: undefined reference to
`mysql_options@12'

... and then **lots** of other 'undefined references' after this.

So clearly it doesn't build out of the box. What do I have to do?

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2
9922 7989
email: dkasak@nusconsulting.com.au
website:
http://www.nusconsulting.com.au



--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/perl?unsub=gcdmp-msql-mysql-modules@m .gmane.org