[Python-bugs-list] [ python-Bugs-814544 ] AIX configure;make fails
SourceForge.net
noreply at sourceforge.net
Fri Oct 3 09:35:48 EDT 2003
Bugs item #814544, was opened at 2003-09-29 18:27
Message generated for change (Comment added) made by loewis
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=814544&group_id=5470
Category: Build
>Group: 3rd Party
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: John Ruttenberg (rutt)
Assigned to: Nobody/Anonymous (nobody)
Summary: AIX configure;make fails
Initial Comment:
Standard ./configure and make fails for me with both
2.2.3 and 2.3.1 on AIX.
On AIX-5.1 with IBM's visualage compiler installed the
build fails with the following:
./Modules/ld_so_aix cc_r -bI:Modules/python.exp
build/temp.aix-5.1-2.2/cryptmodule.o -L/usr/local/lib
-lcrypt -o \
build/lib.aix-5.1-2.2/crypt.so
building '_socket' extension
cc_r -DNDEBUG -O -DUSE_SSL=1 -I/usr/local/ssl/include
-I. -I/home/rutt/src/Python-2.2.3/./Include
-I/usr/local/in\
clude -I/home/rutt/src/Python-2.2.3/Include
-I/home/rutt/src/Python-2.2.3 -c
/home/rutt/src/Python-2.2.3/Modules/\
socketmodule.c -o build/temp.aix-5.1-2.2/socketmodule.o
./Modules/ld_so_aix cc_r -bI:Modules/python.exp
build/temp.aix-5.1-2.2/socketmodule.o
-L/usr/local/ssl/lib -L/usr\
/local/lib -lssl -lcrypto -o
build/lib.aix-5.1-2.2/_socket.so
ld: 0711-317 ERROR: Undefined symbol: .__umoddi3
ld: 0711-317 ERROR: Undefined symbol: .__udivdi3
ld: 0711-345 Use the -bloadmap or -bnoquiet option to
obtain more information.
*** WARNING: renaming "_socket" since importing it
failed: from module build/lib.aix-5.1-2.2/_socket.so No
such f\
ile or directory
error: No such file or directory
make: *** [sharedmods] Error 1
----------------------------------------------------------------------
>Comment By: Martin v. Löwis (loewis)
Date: 2003-10-03 15:35
Message:
Logged In: YES
user_id=21627
As yet another alternative: build the socket module without
SSL, by editing Modules/Setup.
There is no bug in Python here AFAICT, so closing this as
third-party.
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-10-01 18:08
Message:
Logged In: YES
user_id=29957
Aha! Those missing symbols are from libgcc.a. So, it looks
like the SSL libraries in /usr/local/lib were built with
gcc, while you're trying to link them with the IBM compiler.
A couple of approaches you could try:
Build both Python and the OpenSSL libraries with the same
compiler (either GCC or IBM's)
Try adding -lgcc (plus the appropriate -L line to where-ever
gcc has stashed it - usually somewhere like
/usr/local/lib/gcc-lib/<platform>/version/) to the end of
the link line for socketmodule.so
----------------------------------------------------------------------
Comment By: Anthony Baxter (anthonybaxter)
Date: 2003-10-01 17:58
Message:
Logged In: YES
user_id=29957
Hm. Could it be that socketmodule needs to be linked with
libm on this platform? If you try the link stage of the code
by hand, and add -lm after -lcrypto, does it help?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=814544&group_id=5470
More information about the Python-bugs-list
mailing list