Subject: | Problem building DBD::Sybase on Mac OSX |
Date: | Wed, 20 Jun 2007 15:36:42 -0400 |
To: | <bug-DBD-Sybase [...] rt.cpan.org> |
From: | Jason Rosenberg <jrosenberg [...] shopzilla.com> |
Hi,
I just recently went through the process of installing the latest
DBD::Sybase (version 1.08).
I am using an Intel Mac, OS X, 10.4.9....
The make¹ failed at first, due to some unrecognized flags:
LD_RUN_PATH="/opt/local/lib:/usr/lib:/usr/local/lib" env
MACOSX_DEPLOYMENT_TARGET=10.3 cc -L/opt/local/lib -bundle -undefined
dynamic_lookup -Wl,-search_paths_first -arch ppc -arch i386
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.3
Sybase.o dbdimp.o -o blib/arch/auto/DBD/Sybase/Sybase.bundle \
-L/opt/local/lib -lct -ltcl -lintl -ldl -lm \
//usr/bin/ld: for architecture i386
/usr/bin/ld: can't locate file for: -lintl
usrcollect2: /bin/ldld returned 1 exit status
: for architecture ppc
/usr/bin/ld: warning /opt/local/lib/libct.dylib cputype (7, architecture
i386) does not match cputype (18) for specified -arch flag: ppc (file not
loaded)
/usr/bin/ld: can't locate file for: -lintl
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc2ApuP8.out (No such file or
directory)
make: *** [blib/arch/auto/DBD/Sybase/Sybase.bundle] Error 1
I was able to fix the problem by editing the generated Makefile to remove
the -arch ppc¹ from the link flags (I only need i386)...
Also, I removed the -lintl¹ flag, and it seems to have built ok after
that....
Just wanted to report this, perhaps it can be made to build a bit cleaner
out the box for Intel macs....
I am building with a thread-enabled perl 5.8, if that is relevant...
Jason