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...
cschilbe
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
> We recently discovered the DBD::mysql problem as well. The patch is
> to edit
> /System/Library/Perl/5.8.1/darwin-thread-multi-2level/Config.pm,
> replacing:
>
> 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.
Is there a patch that could go into the Perl sources themselves?
Regards,
David
--
David Wheeler AIM: dwTheory
da...@kineticode.com ICQ: 15726394
http://www.kineticode.com/ Yahoo!: dew7e
Jabber: The...@jabber.org
Kineticode. Setting knowledge in motion.[sm]
*) ld="MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
with
*) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
Hopefully, this will go into 5.8.2.
Ed
I edited /System/Library/Perl/5.8.1/darwin-thread-multi-2level/Config.pm,
switched perl back to the apple install and had no problems building
DBD::mysql.
Your information is greatly appreciated!
c
I also just discovered that this fixes a build problem with Data::Dumper...
Or so it would appear. It's possible this will effect several packages. The
patch should not be put in all the perl sources should it?
C
A demonstration of when to leave things up to those who know what they are
talking about...
C.
On 10/15/03 6:28 PM, "Edward Moy" <em...@apple.com> wrote: