compile python-ldap on macosx

Jens Vagelpohl jens at zope.com
Fri Oct 25 14:31:20 CEST 2002


that error message always shows up for me as well (probably a typo 
somewhere in the build code), but it never made the build process fail 
for me.

as far as OpenLDAP goes, i never use pre-packaged stuff. i use the 
source distribution and build it myself. never had a problem building 
python-ldap with that.

jens


> - I installed an OpenLDAP-Package distributed by Apple. I'ts based on 
> openldap-2.0.18.
> - python-ldap version: python-ldap-2.0.0pre06
>
> log of build:
> ###################
> [Tour1:~/python-ldap-2.0.0pre06] zope% python setup.py build
> running build
> running build_py
> warning: build_py: file Lib/ldap.py (for module ldap) not found
> warning: build_py: file Lib/ldap/schema.py (for module ldap.schema) 
> not found
> not copying Lib/ldap/__init__.py (output up-to-date)
> not copying Lib/ldap/async.py (output up-to-date)
> not copying Lib/ldap/cidict.py (output up-to-date)
> not copying Lib/ldap/functions.py (output up-to-date)
> not copying Lib/ldap/sasl.py (output up-to-date)
> not copying Lib/ldap/schema/__init__.py (output up-to-date)
> not copying Lib/ldap/schema/tokenizer.py (output up-to-date)
> not copying Lib/ldap/schema/models.py (output up-to-date)
> not copying Lib/ldap/schema/subentry.py (output up-to-date)
> not copying Lib/ldap/ldapobject.py (output up-to-date)
> not copying Lib/ldap/modlist.py (output up-to-date)
> not copying Lib/ldapurl.py (output up-to-date)
> not copying Lib/ldif.py (output up-to-date)
> warning: build_py: file Lib/ldap.py (for module ldap) not found
> warning: build_py: file Lib/ldap/schema.py (for module ldap.schema) 
> not found
> running build_ext
> building '_ldap' extension
> skipping Modules/LDAPObject.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/LDAPObject.o up-to-date)
> skipping Modules/common.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/common.o up-to-date)
> skipping Modules/constants.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/constants.o up-to-date)
> skipping Modules/errors.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/errors.o up-to-date)
> skipping Modules/functions.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/functions.o up-to-date)
> skipping Modules/schema.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/schema.o up-to-date)
> skipping Modules/ldapmodule.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/ldapmodule.o up-to-date)
> skipping Modules/linkedlist.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/linkedlist.o up-to-date)
> skipping Modules/message.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/message.o up-to-date)
> skipping Modules/version.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/version.o up-to-date)
> skipping Modules/options.c (build/temp.darwin-6.1-Power 
> Macintosh-2.2/options.o up-to-date)
> gcc -arch i386 -arch ppc -bundle -flat_namespace -undefined suppress 
> build/temp.darwin-6.1-Power Macintosh-2.2/LDAPObject.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/common.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/constants.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/errors.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/functions.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/schema.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/ldapmodule.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/linkedlist.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/message.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/version.o 
> build/temp.darwin-6.1-Power Macintosh-2.2/options.o 
> -L/Library/OpenLDAP/lib -Wl,-R/Library/OpenLDAP/lib -lldap -llber 
> -lresolv -o build/lib.darwin-6.1-Power Macintosh-2.2/_ldap.so
> ld: for architecture i386
> ld: unknown flag: -R/Library/OpenLDAP/lib
> error: command 'gcc' failed with exit status 1
> #####################################
>
> I did a 'man ld' , but cannot find something about a flag or option -R 
> !
>
> Please be kind with me if I did something very stupid. I'm not a 
> "kernel-hacker" but more like one of those script-kiddies ;)
>
>






More information about the python-ldap mailing list