error compiling 2.5

jonsoons jonsoons at
Tue Mar 10 14:32:51 CET 2009

I am compiling 2.5 on Solaris 10 SPARC.
I edited Modules/Setup to try and enable tkinter. ranlib claims that
it cannot find even though I have a -L option pointing to it.

ranlib libpython2.5.a
/usr/sfw/bin/gcc   -o python \
                        Modules/python.o \
                        libpython2.5.a -lsocket -lnsl -lrt -ldl  -L/
opt/csw/lib -ltk8.4 -ltcl8.4 -L/usr/openwin/lib -lX11    -L/home/
jonsoons/lib -lz   -lm
case $MAKEFLAGS in \
        *-s*)  CC='/usr/sfw/bin/gcc' LDSHARED='/usr/sfw/bin/gcc -
shared' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./
python -E ./ -q build;; \
        *)  CC='/usr/sfw/bin/gcc' LDSHARED='/usr/sfw/bin/gcc -shared'
OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./ build;; \
        esac python: fatal: open failed: No such file or
make: *** [sharedmods] Error 137
mis /home/jonsoons/Python-2.5.4 # glocate

mis /home/jonsoons/Python-2.5.4 # file /opt/csw/lib/
/opt/csw/lib/       ELF 32-bit MSB dynamic lib SPARC
Version 1, dynamically linked, stripped

mis /home/jonsoons/Python-2.5.4 #

Did I screw up Modules/Setup?
jon soons

More information about the Python-list mailing list