From: Steven G. <sg...@wu...> - 2003-05-08 04:44:25
|
Apple has modifed gcc (and ld) to allow what they call "fat" binaries, essentially binaries/libraries that have the ability to run in both architectures. So the '-arch i386' isn't necessarily wrong, but it shouldn'= t hurt to take it out. Looking at the ld(1) man page, it shows -L is used instead of -R. The configure script might be a little confused about the system (OS X can do that). -Steve On 5/7/03 6:46 PM, "Michael Engelhart" <men...@ka...> wrote: > WEll I successfully built BerkeleyDB 4.1.25, OpenLDAP 2.1.18 and now > I'm trying to get pre11 compiled and am getting errors. No doubt due > to the OS X oddities. I'm not sure if it's distutil that causes this > but this is the error: >=20 > Modules/options.c: In function `LDAP_get_option': > Modules/options.c:151: warning: unused variable `doubleval' > gcc -arch i386 -arch ppc -bundle -flat_namespace -undefined suppress > build/temp.darwin-6.5-Power Macintosh-2.2/LDAPObject.o > build/temp.darwin-6.5-Power Macintosh-2.2/common.o > build/temp.darwin-6.5-Power Macintosh-2.2/constants.o > build/temp.darwin-6.5-Power Macintosh-2.2/errors.o > build/temp.darwin-6.5-Power Macintosh-2.2/functions.o > build/temp.darwin-6.5-Power Macintosh-2.2/schema.o > build/temp.darwin-6.5-Power Macintosh-2.2/ldapmodule.o > build/temp.darwin-6.5-Power Macintosh-2.2/linkedlist.o > build/temp.darwin-6.5-Power Macintosh-2.2/message.o > build/temp.darwin-6.5-Power Macintosh-2.2/version.o > build/temp.darwin-6.5-Power Macintosh-2.2/options.o -L/usr/local/lib > -Wl,-R/usr/local/lib -lldap -llber -o build/lib.darwin-6.5-Power > Macintosh-2.2/_ldap.so > ld: for architecture i386 > ld: unknown flag: -R/usr/local/lib > error: command 'gcc' failed with exit status 1 >=20 >=20 > I don't know why both -arch i1386 & -arch ppc show up > Also not sure why the -R/usr/local/lib is causing trouble >=20 > Any ideas? >=20 > Thanks > Mike > On Wednesday, May 7, 2003, at 05:44 PM, Michael Str=F6der wrote: >=20 >> Michael Engelhart wrote: >>> how do I tell if it's using the "right" libraries? >>=20 >> Under Linux there's ldd. Not sure about Mac OS X though. On my Linux >> system it looks like this: >>=20 >> $ ldd /usr/lib/python2.2/site-packages/_ldap.so >> libldap_r.so.2 =3D> >> /usr/local/openldap-REL_ENG_2_1/lib/libldap_r.so.2 (0x40010000) >> liblber.so.2 =3D> >> /usr/local/openldap-REL_ENG_2_1/lib/liblber.so.2 (0x40059000) >> libsasl2.so.2 =3D> /usr/local/cyrus-sasl/lib/libsasl2.so.2 >> (0x40067000) >> libssl.so.0.9.6 =3D> /usr/lib/libssl.so.0.9.6 (0x4008b000) >> libcrypto.so.0.9.6 =3D> /usr/lib/libcrypto.so.0.9.6 (0x400bc000) >> libc.so.6 =3D> /lib/libc.so.6 (0x40192000) >> libresolv.so.2 =3D> /lib/libresolv.so.2 (0x402b0000) >> libdl.so.2 =3D> /lib/libdl.so.2 (0x402c2000) >> libkrb5.so.17 =3D> /usr/lib/libkrb5.so.17 (0x402c5000) >> libasn1.so.5 =3D> /usr/lib/libasn1.so.5 (0x402fc000) >> libroken.so.9 =3D> /usr/lib/libroken.so.9 (0x4031e000) >> libcom_err.so.1 =3D> /usr/lib/libcom_err.so.1 (0x40330000) >> /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) >> libcrypt.so.1 =3D> /lib/libcrypt.so.1 (0x40334000) >> libdb-4.0.so =3D> /usr/lib/libdb-4.0.so (0x40365000) >>=20 >>> I'm using pre06 >>=20 >> Please always try with latest and greatest (python-ldap 2.0.0pre11 at >> the moment). But I'm pretty sure that's not your problem. >>=20 >>> and built it against the only libraries that are on my Mac OS X box >>> which comes with openldap 2.0.x libs installed. >>=20 >> Exact version of OpenLDAP? Note that OpenLDAP 2.0.x is not actively >> maintained anymore. >>=20 >>> Maybe I did build it incorrectly??? >>=20 >> Please post setup.cfg. >>=20 >> Ciao, Michael. >>=20 >>=20 >>=20 >> ------------------------------------------------------- >> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara >> The only event dedicated to issues related to Linux enterprise >> solutions >> www.enterpriselinuxforum.com >>=20 >> _______________________________________________ >> Python-LDAP-dev mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev >>=20 >=20 >=20 >=20 > ------------------------------------------------------- > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara > The only event dedicated to issues related to Linux enterprise solutions > www.enterpriselinuxforum.com >=20 > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev >=20 ---- Steven Graham sg...@wu... |