Skip Menu |

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 54594
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: dpm [...] netcetera.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: DBD-mysql won't install on Mac OS X 10.6.2
Date: Sat, 13 Feb 2010 10:41:53 -0800
To: bug-DBD-mysql [...] rt.cpan.org
From: Dave Martin <dpm [...] netcetera.com>
Gentlepersons, I have been trying unsuccessfully to get DBD::mysql up and playing nicely with Mac OS X 10.6.2. I have tried installing it against the standard MySQL provided on the platform which announces itself as Ver 14.12 Distrib 5.0.82 for apple-darwin10.0 (i386) and a cleanly installed version of mysql-5.1.43-osx10.6-x86_64.dmg from mysql.com. After adding '--cflags -I/usr/local/mysql/include' and '--libs -L/usr/local/mysql/lib' to the 'perl Makefile.PL' command line and executing it and the 'make' command, I get the following result: netcetera:DBD-mysql-4.013-SmqECn admin$ sudo make Password: Skip blib/lib/DBD/mysql.pm (unchanged) Skip blib/lib/DBD/mysql/GetInfo.pm (unchanged) Skip blib/lib/DBD/mysql/INSTALL.pod (unchanged) Skip blib/lib/Bundle/DBD/mysql.pm (unchanged) gcc-4.2 -c -I/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"4.013\" -DXS_VERSION=\"4.013\" "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" dbdimp.c dbdimp.c: In function 'alloc_param': dbdimp.c:113: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_bind': dbdimp.c:131: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_fbind': dbdimp.c:147: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_fbuffer': dbdimp.c:162: warning: format not a string literal and no format arguments dbdimp.c: In function 'parse_params': dbdimp.c:477: warning: format not a string literal and no format arguments dbdimp.c: In function 'my_login': dbdimp.c:1796: warning: format not a string literal and no format arguments dbdimp.c: In function 'mysql_st_internal_execute41': dbdimp.c:3085: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong' dbdimp.c: In function 'mysql_describe': dbdimp.c:3305: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int' dbdimp.c:3309: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' dbdimp.c:3319: warning: assignment from incompatible pointer type dbdimp.c:3320: warning: format not a string literal and no format arguments dbdimp.c: In function 'mysql_st_fetch': dbdimp.c:3504: warning: format not a string literal and no format arguments dbdimp.c:3526: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dbdimp.c:3568: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'struct MYSQL_RES *' dbdimp.c:3570: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'unsigned int' dbdimp.c: In function 'mysql_st_FETCH_attrib': dbdimp.c:4153: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong' dbdimp.c: In function 'mysql_bind_ph': dbdimp.c:4335: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c:4353: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c:4380: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c: In function 'alloc_param': dbdimp.c:113: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_bind': dbdimp.c:131: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_fbind': dbdimp.c:147: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_fbuffer': dbdimp.c:162: warning: format not a string literal and no format arguments dbdimp.c: In function 'parse_params': dbdimp.c:477: warning: format not a string literal and no format arguments dbdimp.c: In function 'my_login': dbdimp.c:1796: warning: format not a string literal and no format arguments dbdimp.c: In function 'mysql_st_internal_execute41': dbdimp.c:3085: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong' dbdimp.c: In function 'mysql_describe': dbdimp.c:3305: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int' dbdimp.c:3309: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' dbdimp.c:3319: warning: assignment from incompatible pointer type dbdimp.c:3320: warning: format not a string literal and no format arguments dbdimp.c: In function 'mysql_st_fetch': dbdimp.c:3504: warning: format not a string literal and no format arguments dbdimp.c:3526: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dbdimp.c:3568: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'struct MYSQL_RES *' dbdimp.c:3570: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'unsigned int' dbdimp.c: In function 'mysql_st_FETCH_attrib': dbdimp.c:4153: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong' dbdimp.c: In function 'mysql_bind_ph': dbdimp.c:4335: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c:4353: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c:4380: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c: In function 'alloc_param': dbdimp.c:113: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_bind': dbdimp.c:131: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_fbind': dbdimp.c:147: warning: format not a string literal and no format arguments dbdimp.c: In function 'alloc_fbuffer': dbdimp.c:162: warning: format not a string literal and no format arguments dbdimp.c: In function 'parse_params': dbdimp.c:477: warning: format not a string literal and no format arguments dbdimp.c: In function 'my_login': dbdimp.c:1796: warning: format not a string literal and no format arguments dbdimp.c: In function 'mysql_st_internal_execute41': dbdimp.c:3085: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong' dbdimp.c: In function 'mysql_describe': dbdimp.c:3305: warning: format '%d' expects type 'int', but argument 5 has type 'long unsigned int' dbdimp.c:3309: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' dbdimp.c:3319: warning: assignment from incompatible pointer type dbdimp.c:3320: warning: format not a string literal and no format arguments dbdimp.c: In function 'mysql_st_fetch': dbdimp.c:3504: warning: format not a string literal and no format arguments dbdimp.c:3526: warning: format '%d' expects type 'int', but argument 3 has type 'long int' dbdimp.c:3568: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'struct MYSQL_RES *' dbdimp.c:3570: warning: format '%llu' expects type 'long long unsigned int', but argument 3 has type 'unsigned int' dbdimp.c: In function 'mysql_st_FETCH_attrib': dbdimp.c:4153: warning: format '%d' expects type 'int', but argument 3 has type 'my_ulonglong' dbdimp.c: In function 'mysql_bind_ph': dbdimp.c:4335: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c:4353: warning: format '%d' expects type 'int', but argument 3 has type 'IV' dbdimp.c:4380: warning: format '%d' expects type 'int', but argument 3 has type 'IV' gcc-4.2 -c -I/System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level/auto/DBI -I/usr/local/mysql/include -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"4.013\" -DXS_VERSION=\"4.013\" "-I/System/Library/Perl/5.10.0/darwin-thread-multi-2level/CORE" mysql.c mysql.xs: In function 'XS_DBD__mysql__db_do': mysql.xs:329: warning: format not a string literal and no format arguments mysql.xs:330: warning: format not a string literal and no format arguments mysql.xs:331: warning: format not a string literal and no format arguments mysql.xs:490: warning: format not a string literal and no format arguments mysql.xs: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info': mysql.xs:741: warning: format '%i' expects type 'int', but argument 2 has type 'struct SV *' mysql.xs: In function 'XS_DBD__mysql__db_do': mysql.xs:329: warning: format not a string literal and no format arguments mysql.xs:330: warning: format not a string literal and no format arguments mysql.xs:331: warning: format not a string literal and no format arguments mysql.xs:490: warning: format not a string literal and no format arguments mysql.xs: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info': mysql.xs:741: warning: format '%i' expects type 'int', but argument 2 has type 'struct SV *' mysql.xs: In function 'XS_DBD__mysql__db_do': mysql.xs:329: warning: format not a string literal and no format arguments mysql.xs:330: warning: format not a string literal and no format arguments mysql.xs:331: warning: format not a string literal and no format arguments mysql.xs:490: warning: format not a string literal and no format arguments mysql.xs: In function 'XS_DBD__mysql__GetInfo_dbd_mysql_get_info': mysql.xs:741: warning: format '%i' expects type 'int', but argument 2 has type 'struct SV *' Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.bundle /usr/bin/perl myld gcc-4.2 -mmacosx-version-min=10.6 -arch x86_64 -arch i386 -arch ppc -bundle -undefined dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.bundle \ \ chmod 755 blib/arch/auto/DBD/mysql/mysql.bundle cp mysql.bs blib/arch/auto/DBD/mysql/mysql.bs chmod 644 blib/arch/auto/DBD/mysql/mysql.bs Manifying blib/man3/DBD::mysql.3pm Manifying blib/man3/DBD::mysql::INSTALL.3pm Manifying blib/man3/Bundle::DBD::mysql.3pm Executing 'make test' then yields: netcetera:DBD-mysql-4.013-SmqECn admin$ sudo make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.t .................. 1/6 Bailout called. Further testing stopped: Unable to load DBD::mysql # Failed test 'use DBD::mysql;' # at t/00base.t line 21. # Tried to use 'DBD::mysql'. # Error: Can't load '/private/var/root/.cpan/build/DBD-mysql-4.013-SmqECn/blib/arch/auto/DBD/mysql/mysql.bundle' for module DBD::mysql: dlopen(/private/var/root/.cpan/build/DBD-mysql-4.013-SmqECn/blib/arch/auto/DBD/mysql/mysql.bundle, 2): Symbol not found: _is_prefix # Referenced from: /private/var/root/.cpan/build/DBD-mysql-4.013-SmqECn/blib/arch/auto/DBD/mysql/mysql.bundle # Expected in: flat namespace # in /private/var/root/.cpan/build/DBD-mysql-4.013-SmqECn/blib/arch/auto/DBD/mysql/mysql.bundle at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm line 207. # at (eval 7) line 2 # Compilation failed in require at (eval 7) line 2. # BEGIN failed--compilation aborted at (eval 7) line 2. FAILED--Further testing stopped: Unable to load DBD::mysql make: *** [test_dynamic] Error 255 Thank you for your help. Sincerely, Dave Martin -- ------------------------------------------------------------------------ Dave Martin Netcetera, Inc. dpm@netcetera.com ------------------------------------------------------------------------

Message body is not shown because it is too large.

Since I have no feedback on this issue, I assume this is working for the user. I cannot reproduce this myself, although I'm running 10.5.8. I need to know if the version of MySQL is a binary provided from Sun/Oracle. Often, the development libraries are compiled with incompatible flags that the compiler on your machine will not compile a proper DBD with.