|
From: J.Scholtes <sch...@fh...> - 2002-11-04 12:14:12
|
Hi Folks.
I still have problems to compile python-ldap on macosx.
When I took a closer look to the output of the build-script I might
have found one Problem.
Here is the line of the gcc-call:
##
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/local/openldap-REL_ENG_2_1/lib
-Wl,-R/usr/local/openldap-REL_ENG_2_1/lib -lldap -llber -o
build/lib.darwin-6.1-Power Macintosh-2.2/_ldap.so
##
I think the Problem is the space in the path:
build/temp.darwin-6.1-Power Macintosh-2.2/xxxx
^^^^
Where can I find the gcc-call to modify the path to something without a
space ?
best regards
juergen
|
|
From: Jens V. <je...@zo...> - 2002-11-04 12:28:54
|
what is the actual error that you get... ? jens On Monday, Nov 4, 2002, at 07:13 US/Eastern, J.Scholtes wrote: > Hi Folks. > > I still have problems to compile python-ldap on macosx. > When I took a closer look to the output of the build-script I might > have found one Problem. > Here is the line of the gcc-call: > > ## > 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/local/openldap-REL_ENG_2_1/lib > -Wl,-R/usr/local/openldap-REL_ENG_2_1/lib -lldap -llber -o > build/lib.darwin-6.1-Power Macintosh-2.2/_ldap.so > ## > > I think the Problem is the space in the path: > build/temp.darwin-6.1-Power Macintosh-2.2/xxxx > ^^^^ > Where can I find the gcc-call to modify the path to something without > a space ? > > best regards > juergen > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ApacheCon, November 18-21 in > Las Vegas (supported by COMDEX), the only Apache event to be > fully supported by the ASF. http://www.apachecon.com > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: J.Scholtes <sch...@fh...> - 2002-11-04 12:48:24
|
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 |
|
From: Jens V. <je...@zo...> - 2002-11-04 17:40:56
|
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 |
|
From: Steven G. <sg...@wu...> - 2002-11-04 18:15:28
|
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" <je...@zo...> 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 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ApacheCon, November 18-21 in > Las Vegas (supported by COMDEX), the only Apache event to be > fully supported by the ASF. http://www.apachecon.com > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > ---- Steven Graham sg...@wu... |
|
From: Jens V. <je...@zo...> - 2002-11-05 02:06:45
|
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" <je...@zo...> 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 >> >> >> >> ------------------------------------------------------- >> This SF.net email is sponsored by: ApacheCon, November 18-21 in >> Las Vegas (supported by COMDEX), the only Apache event to be >> fully supported by the ASF. http://www.apachecon.com >> _______________________________________________ >> Python-LDAP-dev mailing list >> Pyt...@li... >> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev >> > > ---- > Steven Graham > sg...@wu... > > > |
|
From: Steven G. <sg...@wu...> - 2002-11-05 03:28:15
|
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" <je...@zo...> 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" <je...@zo...> 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 >>> >>> >>> >>> ------------------------------------------------------- >>> This SF.net email is sponsored by: ApacheCon, November 18-21 in >>> Las Vegas (supported by COMDEX), the only Apache event to be >>> fully supported by the ASF. http://www.apachecon.com >>> _______________________________________________ >>> Python-LDAP-dev mailing list >>> Pyt...@li... >>> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev >>> >> >> ---- >> Steven Graham >> sg...@wu... >> >> >> > > ---- Steven Graham sg...@wu... |
|
From: Jens V. <je...@zo...> - 2002-11-05 05:48:43
|
well, the build script does not fail using a self-built python 2.1.3. it gives a warning but the extension is being built. it fails with the built-in python. you get the warning about -R as well. my conclusion: the -R is not the real problem. jens On Monday, Nov 4, 2002, at 22:28 US/Eastern, Steven Graham wrote: > > 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" <je...@zo...> 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" <je...@zo...> 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 >>>> >>>> >>>> >>>> ------------------------------------------------------- >>>> This SF.net email is sponsored by: ApacheCon, November 18-21 in >>>> Las Vegas (supported by COMDEX), the only Apache event to be >>>> fully supported by the ASF. http://www.apachecon.com >>>> _______________________________________________ >>>> Python-LDAP-dev mailing list >>>> Pyt...@li... >>>> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev >>>> >>> >>> ---- >>> Steven Graham >>> sg...@wu... >>> >>> >>> >> >> > > ---- > Steven Graham > sg...@wu... > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ApacheCon, November 18-21 in > Las Vegas (supported by COMDEX), the only Apache event to be > fully supported by the ASF. http://www.apachecon.com > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |
|
From: Peter H. <pe...@ha...> - 2002-11-05 07:01:39
|
Hi... On Tue, 5 Nov 2002 02:28 pm, Steven Graham wrote: > 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 -R takes an argument on other UNIXes. , and you'd expect ld to fail on=20 that command line anyway since you haven't given it any input files. On linux: peterh@warpcore:~$ ld -R; echo $? ld: unrecognized option '-R' ld: use the --help option for usage information 1 peterh@warpcore:~$ ld -R/tmp; echo $? ld: no input files 1 peterh@warpcore:~$ =3D) Peter --=20 pe...@ha... aka pe...@de... GPG key fingerprint: C746 38A9 D3E4 A171 FB6A 56D4 5E30 DFCC BE11 F437 |
|
From: Steven G. <sg...@wu...> - 2002-11-05 09:55:13
|
ld -R/filename does error out also, and after finding what was wrong it only
issued a warning as Jens said earlier.
For some reason gcc doesn't like the space in the filename when linking.
This might not be gcc, it could be the shell that gcc is calling to exec ld.
In any case I modified util.py in the distutils package to strip out spaces
in the machine name ('Power Macintosh-2.2') when the osname is 'darwin'.
The patch is as follows:
--- util.py Tue Nov 5 01:29:27 2002
+++ util.py.osx Tue Nov 5 01:26:22 2002
@@ -67,6 +67,8 @@
m = rel_re.match(release)
if m:
release = m.group()
+ elif osname[:6] == "darwin":
+ machine = machine.replace(' ','')
return "%s-%s-%s" % (osname, release, machine)
----end patch (don't include this in file)----
You can patch util.py (after making a backup) like so:
# cd /path/to/python/lib/distutils/
# cp util.py util.py.orig
# patch -u -p0 < patch_filename
Where patch_filename is the file you save the patch into.
If you don't want to use patch you can add the two line fix by hand :)
This will cause the output_dir variable to be set to
'build/temp.darwin-6.1-PowerMacintosh-2.2/'
I'm sure there is an easier way to set the build directory through options
in either setup.py or through the command line but I can't find any. This
fix seemed to work for me.
-Steve
Note: I have python2.2 installed on my system but it was showing the same
problems.
On 11/4/02 11:01 PM, "Peter Hawkins" <pe...@ha...> wrote:
> Hi...
>
>
> On Tue, 5 Nov 2002 02:28 pm, Steven Graham wrote:
>> 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
>
> -R takes an argument on other UNIXes. , and you'd expect ld to fail on
> that command line anyway since you haven't given it any input files.
>
> On linux:
> peterh@warpcore:~$ ld -R; echo $?
> ld: unrecognized option '-R'
> ld: use the --help option for usage information
> 1
> peterh@warpcore:~$ ld -R/tmp; echo $?
> ld: no input files
> 1
> peterh@warpcore:~$
>
> =)
> Peter
----
Steven Graham
sg...@wu...
|
|
From: Michael E. <men...@ka...> - 2002-11-05 13:55:29
|
Just curious, does this now build without any errors on the python2.2
that is installed by the developer tools?
I'm one of the ones who was able to build the library with my stock
10.2 OS X and Dev Tools. It errored out during the build phase but
build install still installed the library and it works fine.
Mike
On Tuesday, November 5, 2002, at 04:55 AM, Steven Graham wrote:
>
>
> ld -R/filename does error out also, and after finding what was wrong
> it only
> issued a warning as Jens said earlier.
>
> For some reason gcc doesn't like the space in the filename when
> linking.
> This might not be gcc, it could be the shell that gcc is calling to
> exec ld.
> In any case I modified util.py in the distutils package to strip out
> spaces
> in the machine name ('Power Macintosh-2.2') when the osname is
> 'darwin'.
>
> The patch is as follows:
> --- util.py Tue Nov 5 01:29:27 2002
> +++ util.py.osx Tue Nov 5 01:26:22 2002
> @@ -67,6 +67,8 @@
> m = rel_re.match(release)
> if m:
> release = m.group()
> + elif osname[:6] == "darwin":
> + machine = machine.replace(' ','')
>
> return "%s-%s-%s" % (osname, release, machine)
> ----end patch (don't include this in file)----
>
> You can patch util.py (after making a backup) like so:
>
> # cd /path/to/python/lib/distutils/
> # cp util.py util.py.orig
> # patch -u -p0 < patch_filename
>
> Where patch_filename is the file you save the patch into.
> If you don't want to use patch you can add the two line fix by hand :)
>
> This will cause the output_dir variable to be set to
> 'build/temp.darwin-6.1-PowerMacintosh-2.2/'
>
> I'm sure there is an easier way to set the build directory through
> options
> in either setup.py or through the command line but I can't find any.
> This
> fix seemed to work for me.
>
> -Steve
>
> Note: I have python2.2 installed on my system but it was showing the
> same
> problems.
|
|
From: Juergen S. <sch...@fh...> - 2002-11-12 19:40:11
|
Hi.
It works !!!
Without the space in the path and compiled with the Zope-included Python 2.1
i'm able to use the LDAPuserfolder with Zope 2.5.1.
Thanks to all for your help.
Best Regards
Juergen
----- Original Message -----
From: "Steven Graham" <sg...@wu...>
To: "Peter Hawkins" <pe...@ha...>
Cc: <pyt...@li...>
Sent: Tuesday, November 05, 2002 10:55 AM
Subject: Re: still probs to compile python-ldap on macosx
>
> ld -R/filename does error out also, and after finding what was wrong it
only
> issued a warning as Jens said earlier.
>
> For some reason gcc doesn't like the space in the filename when linking.
> This might not be gcc, it could be the shell that gcc is calling to exec
ld.
> In any case I modified util.py in the distutils package to strip out
spaces
> in the machine name ('Power Macintosh-2.2') when the osname is 'darwin'.
>
> The patch is as follows:
> --- util.py Tue Nov 5 01:29:27 2002
> +++ util.py.osx Tue Nov 5 01:26:22 2002
> @@ -67,6 +67,8 @@
> m = rel_re.match(release)
> if m:
> release = m.group()
> + elif osname[:6] == "darwin":
> + machine = machine.replace(' ','')
>
> return "%s-%s-%s" % (osname, release, machine)
> ----end patch (don't include this in file)----
>
> You can patch util.py (after making a backup) like so:
>
> # cd /path/to/python/lib/distutils/
> # cp util.py util.py.orig
> # patch -u -p0 < patch_filename
>
> Where patch_filename is the file you save the patch into.
> If you don't want to use patch you can add the two line fix by hand :)
>
> This will cause the output_dir variable to be set to
> 'build/temp.darwin-6.1-PowerMacintosh-2.2/'
>
> I'm sure there is an easier way to set the build directory through options
> in either setup.py or through the command line but I can't find any. This
> fix seemed to work for me.
>
> -Steve
>
> Note: I have python2.2 installed on my system but it was showing the same
> problems.
>
> On 11/4/02 11:01 PM, "Peter Hawkins" <pe...@ha...> wrote:
>
> > Hi...
> >
> >
> > On Tue, 5 Nov 2002 02:28 pm, Steven Graham wrote:
> >> 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
> >
> > -R takes an argument on other UNIXes. , and you'd expect ld to fail on
> > that command line anyway since you haven't given it any input files.
> >
> > On linux:
> > peterh@warpcore:~$ ld -R; echo $?
> > ld: unrecognized option '-R'
> > ld: use the --help option for usage information
> > 1
> > peterh@warpcore:~$ ld -R/tmp; echo $?
> > ld: no input files
> > 1
> > peterh@warpcore:~$
> >
> > =)
> > Peter
>
> ----
> Steven Graham
> sg...@wu...
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> Python-LDAP-dev mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
>
>
|
|
From: Juergen S. <sch...@fh...> - 2002-11-12 19:40:33
|
Hi.
It works !!!
Without the space in the path and compiled with the Zope-included Python 2.1
i'm able to use the LDAPuserfolder with Zope 2.5.1.
Thanks to all for your help.
Best Regards
Juergen
----- Original Message -----
From: "Steven Graham" <sg...@wu...>
To: "Peter Hawkins" <pe...@ha...>
Cc: <pyt...@li...>
Sent: Tuesday, November 05, 2002 10:55 AM
Subject: Re: still probs to compile python-ldap on macosx
>
> ld -R/filename does error out also, and after finding what was wrong it
only
> issued a warning as Jens said earlier.
>
> For some reason gcc doesn't like the space in the filename when linking.
> This might not be gcc, it could be the shell that gcc is calling to exec
ld.
> In any case I modified util.py in the distutils package to strip out
spaces
> in the machine name ('Power Macintosh-2.2') when the osname is 'darwin'.
>
> The patch is as follows:
> --- util.py Tue Nov 5 01:29:27 2002
> +++ util.py.osx Tue Nov 5 01:26:22 2002
> @@ -67,6 +67,8 @@
> m = rel_re.match(release)
> if m:
> release = m.group()
> + elif osname[:6] == "darwin":
> + machine = machine.replace(' ','')
>
> return "%s-%s-%s" % (osname, release, machine)
> ----end patch (don't include this in file)----
>
> You can patch util.py (after making a backup) like so:
>
> # cd /path/to/python/lib/distutils/
> # cp util.py util.py.orig
> # patch -u -p0 < patch_filename
>
> Where patch_filename is the file you save the patch into.
> If you don't want to use patch you can add the two line fix by hand :)
>
> This will cause the output_dir variable to be set to
> 'build/temp.darwin-6.1-PowerMacintosh-2.2/'
>
> I'm sure there is an easier way to set the build directory through options
> in either setup.py or through the command line but I can't find any. This
> fix seemed to work for me.
>
> -Steve
>
> Note: I have python2.2 installed on my system but it was showing the same
> problems.
>
> On 11/4/02 11:01 PM, "Peter Hawkins" <pe...@ha...> wrote:
>
> > Hi...
> >
> >
> > On Tue, 5 Nov 2002 02:28 pm, Steven Graham wrote:
> >> 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
> >
> > -R takes an argument on other UNIXes. , and you'd expect ld to fail on
> > that command line anyway since you haven't given it any input files.
> >
> > On linux:
> > peterh@warpcore:~$ ld -R; echo $?
> > ld: unrecognized option '-R'
> > ld: use the --help option for usage information
> > 1
> > peterh@warpcore:~$ ld -R/tmp; echo $?
> > ld: no input files
> > 1
> > peterh@warpcore:~$
> >
> > =)
> > Peter
>
> ----
> Steven Graham
> sg...@wu...
>
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: See the NEW Palm
> Tungsten T handheld. Power & Color in a compact size!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
> _______________________________________________
> Python-LDAP-dev mailing list
> Pyt...@li...
> https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
>
>
|