Subject: | error in generated Makefile for DBD::mysql |
DBD-mysql-2.9002
ran cpan install DBD-mysql-2.9002 on Clean install of Mac OS X, 10.3 (Panther) (comes with perl v5.8.1-RC3) after running prerequisites (DBI)
uname -a gives:
Darwin exarchate1.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
cpan output failed at:
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
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
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
/usr/bin/make -- NOT OK
the Makefile line has:
476 LD_RUN_PATH="$(LD_RUN_PATH)" $(PERL) myld $(LD) $(LDDLFLAGS) $(LDFROM) $(OTHERLDFLAGS) -o $@ $(MYEXTLIB) $(PERL_ARCHIVE) $(LDLOADLIBS) $(PERL_ARCHIVE_AFTER) $(EXPORT_LIST) $(INST_DYNAMIC_FIX)
where $(LD) is:
LD: MACOSX_DEPLOYMENT_TARGET=10.3 cc
myld then gets a result of -1 on:
10 $retval = system @ARGV;
trying to execute "MACOSX_DEPLOYMENT_TARGET=10.3" instead of "cc".
I worked around this by:
(1) setting the environment variable MACOSX_DEPLOYMENT_TARGET=10.3
(2) running this cc command (minus the MACOSX_DEPLOYMENT_TARGET=10.3) manually
(3) commenting out the 4 lines in the makefile related to executing myld (lines 470-473)
(4) make
(5) make install