still probs to compile python-ldap on macosx

Steven Graham sgraham at wugaa.com
Tue Nov 5 04:28:06 CET 2002


I disagree, under normal operation the command is failing and exiting with a
status of 1 (Under OS X)

31% ld -R; echo $?
ld: unknown flag: -R
1

The compile process is failing at the linker phase which means that there is
an error in the build script (specifically the -Wl,-R/usr/bin option)

On 11/4/02 6:06 PM, "Jens Vagelpohl" <jens at zope.com> wrote:

> the -R is not the problem. under normal operation all it does is
> generate a warning. the problem is with the built-in python2.1
> 
> jens
> 
> On Monday, Nov 4, 2002, at 13:15 US/Eastern, Steven Graham wrote:
> 
>> 
>> Running ld -R tells me its an invalid option...:
>> 34% ld -R
>> ld: unknown flag: -R
>> 
>> I would suggest one of two things, find where this -Wl option is being
>> defined and get rid of the -R/usr/lib option. Or try compiling the
>> source
>> without i386 support, but having  not compiled this yet I don't know
>> if this
>> -R option is specific to the i386 architecture linker flags or not.
>> 
>> 
>> On 11/4/02 9:39 AM, "Jens Vagelpohl" <jens at zope.com> wrote:
>> 
>>> well, i saw the same error trying to compile with the built-in
>>> python2.2. some people claim they got it done, but i went back to a
>>> self-compiled python and it was fine for me after that.
>>> 
>>> jens
>>> 
>>> 
>>> On Monday, Nov 4, 2002, at 07:48 US/Eastern, J.Scholtes wrote:
>>> 
>>>> 
>>>> Am Montag, 04.11.02, um 13:27 Uhr (Europe/Budapest) schrieb Jens
>>>> Vagelpohl:
>>>> 
>>>>> what is the actual error that you get... ?
>>>>> 
>>>>> 
>>>> 
>>>> Here is the complete output:
>>>> 
>>>> #####
>>>> 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
>>>> creating build/temp.darwin-6.1-Power Macintosh-2.2
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/LDAPObject.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/LDAPObject.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/common.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/common.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/constants.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/constants.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/errors.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/errors.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/functions.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/functions.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/schema.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/schema.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/ldapmodule.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/ldapmodule.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/linkedlist.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/linkedlist.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/message.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/message.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/version.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/version.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -no-cpp-precomp
>>>> -DLDAPMODULE_VERSION=2.0.0pre06 -IModules -I/usr/include
>>>> -I/usr/include/python2.2 -c Modules/options.c -o
>>>> build/temp.darwin-6.1-Power Macintosh-2.2/options.o
>>>> cc1: warning: changing search order for system directory
>>>> "/usr/include"
>>>> cc1: warning:   as it has already been specified as a non-system
>>>> directory
>>>> 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.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/usr/lib
>>>> -Wl,-R/usr/lib -lldap -llber -o build/lib.darwin-6.1-Power
>>>> Macintosh-2.2/_ldap.so
>>>> ld: for architecture i386
>>>> ld: unknown flag: -R/usr/lib
>>>> error: command 'gcc' failed with exit status 1
>>>> #######
>>>> 
>>>> after that, all xxx.o files are create in
>>>> "build/temp.darwin-6.1-Power
>>>> Macintosh-2.2/"
>>>> but no _ldap.so is created in "build/lib.darwin-6.1-Power
>>>> Macintosh-2.2/" nor somewhere else.
>>>> 
>>>> cu Juergen
>>> 
>>> 
>>> 
>>> 


More information about the python-ldap mailing list