compile python-ldap on macosx
J. Scholtes
scholtes at fh-aachen.de
Fri Oct 25 14:21:03 CEST 2002
Am Freitag, 25.10.02, um 13:51 Uhr (Europe/Budapest) schrieb Michael
Ströder:
> J. Scholtes wrote:
>> I'm trying to set up ZOPE with the LDAPuserFolder on a macosx-system
>> and therefor I need python-ldap. But I#m not able to compile it on
>> MacOsX 10.2
>> Is anyone on the List who did it successfull ?
>
> It's more likely that you get help if you provide more information
> about what you're trying to do and what went wrong.
>
> - OpenLDAP libs, version
> - python-ldap version
> - log of build with error messages
>
- 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