ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc'
with
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc'
Unfortunately, this change is too late to get into Panther. --------------------------------------------------------------- Edward Moy Apple
On Oct 15, 2003, at 1:52 PM, Conrad Schilbe wrote:
I was encountering the same errors as you in my quest to install DBD::mysql
and discovered that under the following setup:
Custom installed Perl 5.8.1 RC3 - No multi-threading ggc 2.95 - via /usr/sbin/gcc_select 2
Removing /sw/lib/perl5/Storable.pm & /sw/lib/perl5/auto/Storable
I was able to compile and install Bundle::Msql which installs DBD::mysql.
I cannot isolate wich of the above steps actually fixed the problem but I
noted this difference in the make procedure:
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f ../blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/lib" MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined
dynamic_lookup -L/usr/local/lib dbdimp.o mysql.o -L/usr/local/mysql/lib -o
../blib/arch/auto/DBD/mysql/mysql.bundle -L/usr/local/mysql/lib
-lmysqlclient -lm -lz
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
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.bundle
LD_RUN_PATH="/usr/lib" /usr/local/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/lib -lz
As you can see the first one carried on past the previous error point.
I have a feeling that Bundle::Msql would successfully install under the
default apple environment without switching gcc, without recompiling perl,
and without removing Storable... I simply combined the methods of previous
posts and hoped for the best. Later resorting to a memory of installing
Bundle::Msql elsewhere.
Someone should likely attempt to install Bundle::Msql under a clean OSX (Panther) install and report back on the outcome...