I encountered a similar problem compiling nmap ("compiler cannot create
executable") and decided to try upgrading my installation of the Xcode
Tools (which come with 10.3 by default). After registration you can
get the update here:
http://developer.apple.com/tools/download/
That solved the nmap issue and the problems with compiling C code using
CPAN. DBD::mysql here I come
:^D
On Sep 29, 2004, at 3:01 PM, David Jantzen wrote:
Hi Ken, my shrpenv entry is the same as yours:
shrpenv='env
LD_RUN_PATH=/System/Library/Perl/5.8.1/darwin-thread-multi-2level/
CORE'
On Sep 29, 2004, at 2:42 PM, Ken Williams wrote:
Hi David,
Try applying the same fix you applied to 'ld' on the 'shrpenv' entry
in Config.pm.
By the way, my relevant line says:
shrpenv='env
LD_RUN_PATH=/System/Library/Perl/5.8.1/darwin-thread-multi-2level/
CORE'
Does yours say:
shrpenv='LD_RUN_PATH=""'
? Weird.
-Ken
On Sep 29, 2004, at 4:13 PM, David Jantzen wrote:
Hi Folks,
I've been struggling for some time trying to use the CPAN module to
install modules with C components. For example, trying to get DBI
installed yields this:
/usr/bin/perl -p -e "s/~DRIVER~/Perl/g" ./Driver.xst > Perl.xsi
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.8.1/ExtUtils/typemap -typemap typemap
Perl.xs > Perl.xsc && mv Perl.xsc Perl.c
cc -c -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"1.43\"
-DXS_VERSION=\"1.43\"
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"
-Wall -Wno-comment Perl.c
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap
/System/Library/Perl/5.8.1/ExtUtils/typemap -typemap typemap DBI.xs
> DBI.xsc && mv DBI.xsc DBI.c
cc -c -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"1.43\"
-DXS_VERSION=\"1.43\"
"-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE"
-Wall -Wno-comment DBI.c
Running Mkbootstrap for DBI ()
chmod 644 DBI.bs
rm -f blib/arch/auto/DBI/DBI.bundle
LD_RUN_PATH="" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle
-undefined dynamic_lookup -L/usr/local/lib DBI.o -o
blib/arch/auto/DBI/DBI.bundle
ld: can't locate file for: -lbundle1.o
make: *** [blib/arch/auto/DBI/DBI.bundle] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible
Note that I'm attempting to utilize the fix mentioned here:
http://www.mail-archive.com/macosx@xxxxxxxx/msg05736.html
The OS is 10.3.5 with the stock Perl 5.8.1 installation.
TIA,
David
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|