fredo2906 has asked for the wisdom of the Perl Monks concerning the following question:
I think the problem may come from the -lz - lcrypt -linsl but I don't know what is it for. When I execute dmake, I get some undefined reference as below:D:\.cpan\build\DBD-mysql-4.007-5exceq>perl Makefile.PL --testhost=127. +0.0.1 --testuser=root --testpassword=sbdb "--libs=-LC:\mysql\lib -lmysqlclient -lz -lm -lcrypt -linsl" I will use the following settings for compiling and testing: cflags (guessed ) = -IC:\mysql\include embedded (guessed ) = libs (User's choice) = -LC:\mysql\lib -lmysqlclient -lz -lm + -lcrypt -linsl nocatchstderr (default ) = 0 nofoundrows (default ) = 0 ssl (guessed ) = 0 testdb (default ) = test testhost (User's choice) = 127.0.0.1 testpassword (User's choice) = sbdb testsocket (default ) = testuser (User's choice) = root To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Note (probably harmless): No library found for -lz Note (probably harmless): No library found for -lcrypt Note (probably harmless): No library found for -linsl Using DBI 1.605 (for perl 5.008008 on MSWin32-x86-multi-thread) instal +led in C:/perl/site/lib/auto/DBI/ Writing Makefile for DBD::mysql
Could you please help me on this?D:\.cpan\build\DBD-mysql-4.007-5exceq>dmake gcc -c -IC:\perl\site\lib\auto\DBI -IC:\mysql\include -DDBD_MYSQL_INS +ERT_ID_IS_GOOD -g -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL _IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVC +RT_READFIX -s -O2 -DVERSION=\"4.007\" -DXS_VERSION=\" 4.007\" "-IC:\perl\lib\CORE" dbdimp.c gcc -c -IC:\perl\site\lib\auto\DBI -IC:\mysql\include -DDBD_MYSQL_INS +ERT_ID_IS_GOOD -g -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DPERL _IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVC +RT_READFIX -s -O2 -DVERSION=\"4.007\" -DXS_VERSION=\" 4.007\" "-IC:\perl\lib\CORE" mysql.c Running Mkbootstrap for DBD::mysql () C:\perl\bin\perl.exe -MExtUtils::Command -e chmod 644 mysql.bs dlltool --def mysql.def --output-exp dll.exp C:\perl\bin\perl.exe myld g++ -o blib\arch\auto\DBD\mysql\mysql.dll -W +l,--base-file -Wl,dll.base -mdll -s -L"c:\perl\lib\CORE" -L"C:\Mi nGW\lib" dbdimp.o mysql.o -Wl,--image-base,0x1570000 C:\perl\li +b\CORE\libperl58.a C:\mysql\lib\libmysqlclient.a C:\MinGW\lib\lib m.a C:\MinGW\lib\libmsvcrt.a C:\MinGW\lib\libmoldname.a C:\MinGW\lib\l +ibkernel32.a C:\MinGW\lib\libuser32.a C:\MinGW\lib\libgdi32.a C:\ MinGW\lib\libwinspool.a C:\MinGW\lib\libcomdlg32.a C:\MinGW\lib\libadv +api32.a C:\MinGW\lib\libshell32.a C:\MinGW\lib\libole32.a C:\MinG W\lib\liboleaut32.a C:\MinGW\lib\libnetapi32.a C:\MinGW\lib\libuuid.a +C:\MinGW\lib\libws2_32.a C:\MinGW\lib\libmpr.a C:\MinGW\lib\libwi nmm.a C:\MinGW\lib\libversion.a C:\MinGW\lib\libodbc32.a C:\MinGW\lib\ +libodbccp32.a dll.exp dbdimp.o: In function `mysql_db_FETCH_attrib': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2256: undefined referen +ce to `mysql_insert_id@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2261: undefined referen +ce to `mysql_get_proto_info@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2294: undefined referen +ce to `mysql_thread_id@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2242: undefined referen +ce to `mysql_get_host_info@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2251: undefined referen +ce to `mysql_info@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2267: undefined referen +ce to `mysql_get_server_info@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2277: undefined referen +ce to `mysql_stat@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2284: undefined referen +ce to `mysql_stat@4' dbdimp.o: In function `mysql_st_free_result_sets': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2629: undefined referen +ce to `mysql_free_result@4' dbdimp.o: In function `mysql_st_fetch': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3514: undefined referen +ce to `mysql_fetch_row@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3533: undefined referen +ce to `mysql_num_fields@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3534: undefined referen +ce to `mysql_fetch_fields@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3535: undefined referen +ce to `mysql_fetch_lengths@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3504: undefined referen +ce to `mysql_num_fields@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3506: undefined referen +ce to `mysql_num_rows@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3508: undefined referen +ce to `mysql_affected_rows@4' dbdimp.o: In function `mysql_st_FETCH_internal': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3889: undefined referen +ce to `mysql_field_seek@8' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3967: undefined referen +ce to `mysql_fetch_field@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3967: undefined referen +ce to `mysql_fetch_field@4' dbdimp.o: In function `mysql_st_internal_execute': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2889: undefined referen +ce to `mysql_list_fields@12' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2917: undefined referen +ce to `mysql_use_result@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2925: undefined referen +ce to `mysql_affected_rows@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2917: undefined referen +ce to `mysql_store_result@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:2927: undefined referen +ce to `mysql_num_rows@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:571: undefined referenc +e to `mysql_real_escape_string@16' dbdimp.o: In function `mysql_st_execute': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3140: undefined referen +ce to `mysql_insert_id@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:3144: undefined referen +ce to `mysql_num_fields@4' dbdimp.o: In function `mysql_db_quote': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:4562: undefined referen +ce to `mysql_real_escape_string@16' dbdimp.o: In function `mysql_db_last_insert_id': D:/.cpan/build/DBD-mysql-4.007-5exceq/dbdimp.c:4585: undefined referen +ce to `mysql_insert_id@4' mysql.o: In function `XS_DBD__mysql__dr__ListDBs': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:54: undefined reference + to `mysql_list_dbs@8' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:61: undefined reference + to `mysql_num_rows@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:64: undefined reference + to `mysql_fetch_row@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:66: undefined reference + to `mysql_free_result@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:61: undefined reference + to `mysql_num_rows@4' mysql.o: In function `XS_DBD__mysql__dr__admin_internal': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:109: undefined referenc +e to `mysql_shutdown@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:114: undefined referenc +e to `mysql_refresh@8' mysql.o: In function `XS_DBD__mysql__db__ListDBs': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:204: undefined referenc +e to `mysql_list_dbs@8' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:215: undefined referenc +e to `mysql_num_rows@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:218: undefined referenc +e to `mysql_fetch_row@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:220: undefined referenc +e to `mysql_free_result@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:215: undefined referenc +e to `mysql_num_rows@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:206: undefined referenc +e to `mysql_list_dbs@8' mysql.o: In function `XS_DBD__mysql__db_do': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:492: undefined referenc +e to `mysql_free_result@4' mysql.o: In function `XS_DBD__mysql__db_ping': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:513: undefined referenc +e to `mysql_ping@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:516: undefined referenc +e to `mysql_ping@4' mysql.o: In function `XS_DBD__mysql__st_dataseek': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:598: undefined referenc +e to `mysql_data_seek@12' mysql.o: In function `XS_DBD__mysql__GetInfo_dbd_mysql_get_info': D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:686: undefined referenc +e to `mysql_get_server_info@4' D:/.cpan/build/DBD-mysql-4.007-5exceq/mysql.xs:690: undefined referenc +e to `mysql_get_parameters@0' collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\DBD\mysql\mysql.d +ll'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to build DBD::MySQL
by dragonchild (Archbishop) on Jul 15, 2008 at 02:55 UTC | |
|
Re: How to build DBD::MySQL
by CountZero (Bishop) on Jul 15, 2008 at 05:57 UTC | |
|
Re: How to build DBD::MySQL
by oko1 (Deacon) on Jul 15, 2008 at 02:56 UTC | |
|
Re: How to build DBD::MySQL
by almut (Canon) on Jul 15, 2008 at 04:15 UTC | |
by fredo2906 (Acolyte) on Jul 15, 2008 at 10:15 UTC | |
by fredo2906 (Acolyte) on Jul 15, 2008 at 10:16 UTC | |
by almut (Canon) on Jul 15, 2008 at 11:30 UTC | |
by fredo2906 (Acolyte) on Jul 15, 2008 at 13:49 UTC | |
|
Re: How to build DBD::MySQL
by Limbic~Region (Chancellor) on Jul 15, 2008 at 13:52 UTC | |
by fredo2906 (Acolyte) on Jul 16, 2008 at 07:53 UTC | |
by Limbic~Region (Chancellor) on Jul 16, 2008 at 13:24 UTC |