On 07/08/2010 04:36 PM, Stopp, Bryan wrote: > 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
What really stumps me (and you too, I expect) about this is the two different error messages. Above, it looks like collect2 simply doesn't find a -lpython2.6 anywhere. Adding . to LIBPATH does make sense. > 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 But what on earth is this? It looks like collect2 found the library, and told it's mate ld, which can't open it. collect2 thinks it find a file, ld hits "No such file or directory" on the same file. Maybe it's a dead symlink? Looking for a file with the right name and location would find it, while opening it would hit a dead end, and probably return "No such file " -- http://mail.python.org/mailman/listinfo/python-list