Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: jsull [...] cs.umb.edu
Cc:
AdminCc:

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



Subject: make breaks (in myld) on Mac OS X 10.3
distro is DBD-mysql-2.9003 Perl version is "v5.8.1-RC3 built for darwin-thread-multi-2level" OS is "Darwin John-Sullivans-Computer.local 7.0.0 Darwin Kernel Version 7.0.0: Wed Sep 24 15:48:39 PDT 2003; root:xnu/xnu-517.obj~1/RELEASE_PPC Power Macintosh powerpc" To get this install to work, I had to make a minor edit in myld script, found in the root install dir. At about line 13, I changed: my $retval = system @ARGV; To: my $retval = system "@ARGV"; Before making this change, the make was failing, without giving any error. The command that was causing the failure looked like this, for me: LD_RUN_PATH="/usr/lib" /usr/bin/perl myld MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.bundle -L/usr/local/mysql/lib -lmysqlclient -lz -lm (I imagine this was a make rule for mysql.bundle, but I didn't look into the Makefile.)
From: john [...] johnharveyphoto.com
[guest - Sun Nov 23 11:07:36 2003]: Similar experience - 10.3, breaks the same way, fix works as described. Thanks for the fix. John
[guest - Sun Nov 23 19:43:03 2003]: Another work-around is to pass the --nocatchstderr option to Makefile.PL. Niall O'Reilly
the fix works as long as you are building from source on the command line. i had a problem with the interactive CPAN shell since the myld script continued to be reverted to the original package file when "install Bundle::DBD::mysql" command is given in the CPAN shell. [guest - Sun Nov 23 11:07:36 2003]: Show quoted text
> distro is DBD-mysql-2.9003 > Perl version is "v5.8.1-RC3 built for darwin-thread-multi-2level" > OS is "Darwin John-Sullivans-Computer.local 7.0.0 Darwin Kernel > Version 7.0.0: Wed Sep 24 15:48:39 PDT 2003; root:xnu/xnu- > 517.obj~1/RELEASE_PPC Power Macintosh powerpc" > > To get this install to work, I had to make a minor edit in myld > script, found in the root install dir. At about line 13, I changed: > > my $retval = system @ARGV; > > To: > > my $retval = system "@ARGV"; > > Before making this change, the make was failing, without giving any > error. The command that was causing the failure looked like this, > for me: > > LD_RUN_PATH="/usr/lib" /usr/bin/perl myld > MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup > -L/usr/local/lib dbdimp.o mysql.o -o > blib/arch/auto/DBD/mysql/mysql.bundle -L/usr/local/mysql/lib > -lmysqlclient -lz -lm > > (I imagine this was a make rule for mysql.bundle, but I didn't look > into the Makefile.)
[guest - Wed Mar 31 02:39:31 2004]: Yep, same problem for me. (Whole original output of the make failure is below). I am on Mac OS X 10.3.4. And the same fix worked for me. Boy I'm glad I found this cpan bugs site! Thanks for finding and reporting the bug/fix. -Jesse cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm cp lib/Mysql.pm blib/lib/Mysql.pm cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI -I'/opt/local/include/ mysql' -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" "-I/System/ Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" dbdimp.c /usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /Library/Perl/5.8.1/darwin-thread-multi-2level/ auto/DBI/Driver.xst > mysql.xsi /usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap /System/Library/Perl/ 5.8.1/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c Warning: duplicate function definition 'do' detected in mysql.xs, line 192 Warning: duplicate function definition 'rows' detected in mysql.xs, line 290 cc -c -I/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/DBI -I'/opt/local/include/ mysql' -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.9003\" -DXS_VERSION=\"2.9003\" "-I/System/ Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" mysql.c Running Mkbootstrap for DBD::mysql () chmod 644 mysql.bs rm -f blib/arch/auto/DBD/mysql/mysql.bundle LD_RUN_PATH="/usr/lib:/opt/local/lib/mysql" /usr/bin/perl myld MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr/local/ lib dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.bundle -L/opt/local/lib -lncurses -L/opt/local/lib/mysql -lmysqlclient -lz -lm make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
Fixed two years back 2.9004