Python 2.5 fails at final linking with this error:
i686-pc-linux-gnu-ranlib libpython2.5.a
i686-pc-linux-gnu-gcc -pthread -Wl,--as-needed -Xlinker
-export-dynamic -o
python \
Modules/python.o \
-L. -lpython2.5 -lpthread -ldl
-lutil -L/usr/lib -lz
-lm
./libpython2.5.so: undefined reference to `inflateEnd'
./libpython2.5.so: undefined reference to `deflate'
./libpython2.5.so: undefined reference to `deflateInit_'
./libpython2.5.so: undefined reference to `inflateInit2_'
./libpython2.5.so: undefined reference to `inflate'
./libpython2.5.so: undefined reference to `crc32'
./libpython2.5.so: undefined reference to `deflateEnd'
./libpython2.5.so: undefined reference to `deflateCopy'
./libpython2.5.so: undefined reference to `deflateInit2_'
./libpython2.5.so: undefined reference to `adler32'
./libpython2.5.so: undefined reference to `inflateCopy'
collect2: ld returned 1 exit status
make: *** [python] Error 1
!!! ERROR: dev-lang/python-2.5_rc1 failed.
Attached patch fixes this, by changing the linking
order from "Modules/python.o -L. -lpython2.5 -lpthread
-ldl -lutil -L/usr/lib -lz -lm" to "Modules/python.o
-lpython2.5 -L. -lpthread -ldl -lutil -L/usr/lib -lz
-lm" , basically swapping "-L. -lpython2.5" around. The
patch edits configure.in and swaps them for Linux, BSD
and SunOS.
|