I've seen other threads on this issue, but the resolution still doesn't
seem to exist for me. 

 

I'm running the configure script with these parameters:

 

./configure --prefix=/build/tools \

            --exec-prefix=/build/tools \

            --enable-shared \

            --enable-ipv6 \

            --with-gcc \

            --with-pth 

 

I also want to state that I already edited all of the configure &
config.guess scripts to comprehend AIX6.1 (they're not updated yet). And
as you can see, I'm running this using the "-with-gcc" option.

 

The configure seems to have no problems; so I run a:

 

make clean && make

 

This results in a completed compile. If I go back and look I see a lot
of this:

 

building '_struct' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/build/tools/src/Python-2.6.5/./Include
-I/build/tools/include -I. -IInclude -I./Include -I/usr/local/include
-I/build/tools/src/Python-2.6.5/Include -I/build/tools/src/Python-2.6.5
-c /build/tools/src/Python-2.6.5/Modules/_struct.c -o
build/temp.aix-6.1-2.6/build/tools/src/Python-2.6.5/Modules/_struct.o

./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp
build/temp.aix-6.1-2.6/build/tools/src/Python-2.6.5/Modules/_struct.o
-L/build/tools/lib -L/usr/local/lib -lpython2.6 -o
build/lib.aix-6.1-2.6/_struct.so

collect2: library libpython2.6 not found

 

 

Notice that it can't find the Python lib.. well, it's not installed yet.
It's built and in the current directory I'm working out of, but that's
not in my LiBPATH. I'll come back to that.

 

If I don't do anything and try to "make install" it pushes the python &
libpython libraries to the appropriate locations, and then it appears it
tries to re-make the modules:

 

building '_struct' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/build/tools/src/Python-2.6.5/./Include
-I/build/tools/include -I. -IInclude -I./Include -I/usr/local/include
-I/build/tools/src/Python-2.6.5/Include -I/build/tools/src/Python-2.6.5
-c /build/tools/src/Python-2.6.5/Modules/_struct.c -o
build/temp.aix-6.1-2.6/build/tools/src/Python-2.6.5/Modules/_struct.o

./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp
build/temp.aix-6.1-2.6/build/tools/src/Python-2.6.5/Modules/_struct.o
-L/build/tools/lib -L/usr/local/lib -lpython2.6 -o
build/lib.aix-6.1-2.6/_struct.so

 

However this time it results in a mass of:

 

ld: 0711-224 WARNING: Duplicate symbol: <some symbol>

 

I mean I get like 1000+ of these warnings. But they all culminate in:

 

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.

Fatal Python error: Interpreter not initialized (version mismatch?)

make: The signal code from the last command is 6.

 

 

 

Now, I said I'd get back to the LIBPATH issue. I thought that if it was
looking for that libpython file to compile the modules, it just wasn't
finding it. So I executed a:

 

LIBPATH=.:$LIBPATH make

 

This resulted in:

 

building '_struct' extension

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/build/tools/src/Python-2.6.5/./Include
-I/build/tools/include -I. -IInclude -I./Include -I/usr/local/include
-I/build/tools/src/Python-2.6.5/Include -I/build/tools/src/Python-2.6.5
-c /build/tools/src/Python-2.6.5/Modules/_struct.c -o
build/temp.aix-6.1-2.6/build/tools/src/Python-2.6.5/Modules/_struct.o

./Modules/ld_so_aix gcc -pthread -bI:Modules/python.exp
build/temp.aix-6.1-2.6/build/tools/src/Python-2.6.5/Modules/_struct.o
-L/build/tools/lib -L/usr/local/lib -lpython2.6 -o
build/lib.aix-6.1-2.6/_struct.so

ld: 0706-006 Cannot find or open library file: -l python2.6

        ld:open(): No such file or directory

collect2: ld returned 255 exit status

 

Huh? Can't find the library now?

 

In any event, I can't get Python to compile and/or install on my
machine. Does anyone have any insight into what is happening to cause
this problem?

 

-B 




PRIVILEGED AND CONFIDENTIAL
This email transmission contains privileged and confidential information 
intended only for the use of the individual or entity named above.  If the 
reader of the email is not the intended recipient or the employee or agent 
responsible for delivering it to the intended recipient, you are hereby 
notified that any use, dissemination or copying of this email transmission is 
strictly prohibited by the sender.  If you have received this transmission in 
error, please delete the email and immediately notify the sender via the email 
return address or mailto:postmas...@argushealth.com.  Thank you.



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to