Subject: | OSX Tiger 10.4.4 cannot make DBD::mysql |
Have tried installing several versions of module with the same results...
`perl Makefile.PL` shows the following errors...
Unrecognized argument in LIBS ignored: '-arch'
Unrecognized argument in LIBS ignored: 'ppc64'
then `make` show the following errors and dies...
/usr/bin/ld: dbdimp.o bad magic number (not a Mach-O file)
/usr/bin/ld: mysql.o bad magic number (not a Mach-O file)
/usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib
structures in table of contents extends past the end of the table of contents, can't load from
it)
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1
full output below
make
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/ -I/usr/local/mysql/
include -Os -arch ppc64 -fno-common -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -g -pipe -
fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -
Os -DVERSION=\"3.0002_1\" -DXS_VERSION=\"3.0002_1\" "-I/System/Library/Perl/5.8.6/
darwin-thread-multi-2level/CORE" dbdimp.c
/usr/bin/perl -p -e "s/~DRIVER~/mysql/g" /Library/Perl/5.8.6/darwin-thread-multi-2level/
auto/DBI//Driver.xst > mysql.xsi
/usr/bin/perl /System/Library/Perl/5.8.6/ExtUtils/xsubpp -typemap /System/Library/Perl/
5.8.6/ExtUtils/typemap mysql.xs > mysql.xsc && mv mysql.xsc mysql.c
Warning: duplicate function definition 'do' detected in mysql.xs, line 224
Warning: duplicate function definition 'rows' detected in mysql.xs, line 557
cc -c -I/Library/Perl/5.8.6/darwin-thread-multi-2level/auto/DBI/ -I/usr/local/mysql/
include -Os -arch ppc64 -fno-common -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -g -pipe -
fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -
Os -DVERSION=\"3.0002_1\" -DXS_VERSION=\"3.0002_1\" "-I/System/Library/Perl/5.8.6/
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/bin/perl myld env 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
/usr/bin/ld: dbdimp.o bad magic number (not a Mach-O file)
/usr/bin/ld: mysql.o bad magic number (not a Mach-O file)
/usr/bin/ld: truncated or malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib
structures in table of contents extends past the end of the table of contents, can't load from
it)
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/DBD/mysql/mysql.bundle] Error 1