Python-2.2.1, Solaris7, make test fails...

Hugh Sasse Staff Elec Eng hgs at dmu.ac.uk
Mon Apr 15 09:02:16 EDT 2002


On Sat, 13 Apr 2002, Michael Hudson wrote:

> martin at v.loewis.de (Martin v. Loewis) writes:
>
> > Hugh Sasse Staff Elec Eng <hgs at dmu.ac.uk> writes:
> >
> > > ImportError: ld.so.1: ./python: fatal: relocation error: file /home/hgs/Python-2.2.1/Modules/mathmodule.so: symbol PyExc_OverflowError: referenced symbol not found
> > >
> > > Could someone suggest how to proceed, please?
> >
> > Can you please report the command line option that was used to link
> > the python binary? (delete it, and re-invoke make) PyExc_OverflowError
> > ought to be exported from the Python binary, and there ought to be a
> > gcc command line option to achieve that.
>
> But this is really strange; mathmodule.so must have imported at some
> point, or setup.py would have deleted it...

Hmm.  I don't know.  Anyway, here is the result of re-making the
Python, but not the make test, after removing that file...

Script started on Mon Apr 15 13:57:01 2002
neelix hgs 1 %> gmake
gcc -shared  Modules/mathmodule.o   -o Modules/mathmodule.so
case $MAKEFLAGS in \
*-s*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py -q build;; \
*) CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build;; \
esac
running build
running build_ext
building 'regex' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/regexmodule.c -o build/temp.solaris-2.7-sun4u-2.2/regexmodule.o
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/regexpr.c -o build/temp.solaris-2.7-sun4u-2.2/regexpr.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/regexmodule.o build/temp.solaris-2.7-sun4u-2.2/regexpr.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/regex.so
WARNING: removing "regex" since importing it failed
building 'pcre' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/pcremodule.c -o build/temp.solaris-2.7-sun4u-2.2/pcremodule.o
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/pypcre.c -o build/temp.solaris-2.7-sun4u-2.2/pypcre.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/pcremodule.o build/temp.solaris-2.7-sun4u-2.2/pypcre.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/pcre.so
WARNING: removing "pcre" since importing it failed
building '_hotshot' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/_hotshot.c -o build/temp.solaris-2.7-sun4u-2.2/_hotshot.o
/home/hgs/Python-2.2.1/Modules/_hotshot.c: In function `get_version_string':
/home/hgs/Python-2.2.1/Modules/_hotshot.c:1453: warning: subscript has type `char'
gcc -shared build/temp.solaris-2.7-sun4u-2.2/_hotshot.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/_hotshot.so
WARNING: removing "_hotshot" since importing it failed
building 'strop' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/stropmodule.c -o build/temp.solaris-2.7-sun4u-2.2/stropmodule.o
/home/hgs/Python-2.2.1/Modules/stropmodule.c: In function `strop_atoi':
/home/hgs/Python-2.2.1/Modules/stropmodule.c:769: warning: subscript has type `char'
gcc -shared build/temp.solaris-2.7-sun4u-2.2/stropmodule.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/strop.so
WARNING: removing "strop" since importing it failed
building 'rotor' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/rotormodule.c -o build/temp.solaris-2.7-sun4u-2.2/rotormodule.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/rotormodule.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/rotor.so
WARNING: removing "rotor" since importing it failed
building 'audioop' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/audioop.c -o build/temp.solaris-2.7-sun4u-2.2/audioop.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/audioop.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/audioop.so
WARNING: removing "audioop" since importing it failed
building 'imageop' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/imageop.c -o build/temp.solaris-2.7-sun4u-2.2/imageop.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/imageop.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/imageop.so
WARNING: removing "imageop" since importing it failed
building 'rgbimg' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/rgbimgmodule.c -o build/temp.solaris-2.7-sun4u-2.2/rgbimgmodule.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/rgbimgmodule.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/rgbimg.so
WARNING: removing "rgbimg" since importing it failed
building 'gdbm' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/gdbmmodule.c -o build/temp.solaris-2.7-sun4u-2.2/gdbmmodule.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/gdbmmodule.o -L/usr/local/lib -lgdbm -o build/lib.solaris-2.7-sun4u-2.2/gdbm.so
WARNING: removing "gdbm" since importing it failed
building '_curses' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/_cursesmodule.c -o build/temp.solaris-2.7-sun4u-2.2/_cursesmodule.o
In file included from /usr/include/curses.h:23,
                 from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/include/curses.h:5,
                 from /home/hgs/Python-2.2.1/Include/py_curses.h:8,
                 from /home/hgs/Python-2.2.1/Modules/_cursesmodule.c:116:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of the previous definition
gcc -shared build/temp.solaris-2.7-sun4u-2.2/_cursesmodule.o -L/usr/local/lib -lcurses -ltermcap -o build/lib.solaris-2.7-sun4u-2.2/_curses.so
WARNING: removing "_curses" since importing it failed
building '_curses_panel' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/_curses_panel.c -o build/temp.solaris-2.7-sun4u-2.2/_curses_panel.o
In file included from /usr/include/curses.h:23,
                 from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/2.95.3/include/curses.h:5,
                 from /home/hgs/Python-2.2.1/Include/py_curses.h:8,
                 from /home/hgs/Python-2.2.1/Modules/_curses_panel.c:15:
/usr/include/widec.h:42: warning: `getwc' redefined
/usr/include/wchar.h:326: warning: this is the location of the previous definition
/usr/include/widec.h:43: warning: `putwc' redefined
/usr/include/wchar.h:329: warning: this is the location of the previous definition
/usr/include/widec.h:44: warning: `getwchar' redefined
/usr/include/wchar.h:327: warning: this is the location of the previous definition
/usr/include/widec.h:45: warning: `putwchar' redefined
/usr/include/wchar.h:330: warning: this is the location of the previous definition
gcc -shared build/temp.solaris-2.7-sun4u-2.2/_curses_panel.o -L/usr/local/lib -lpanel -lcurses -ltermcap -o build/lib.solaris-2.7-sun4u-2.2/_curses_panel.so
WARNING: removing "_curses_panel" since importing it failed
building 'fpectl' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/fpectlmodule.c -o build/temp.solaris-2.7-sun4u-2.2/fpectlmodule.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/fpectlmodule.o -L/usr/local/lib -o build/lib.solaris-2.7-sun4u-2.2/fpectl.so
WARNING: removing "fpectl" since importing it failed
building 'zlib' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -I. -I/home/hgs/Python-2.2.1/./Include -I/usr/local/include -IInclude/ -c /home/hgs/Python-2.2.1/Modules/zlibmodule.c -o build/temp.solaris-2.7-sun4u-2.2/zlibmodule.o
gcc -shared build/temp.solaris-2.7-sun4u-2.2/zlibmodule.o -L/usr/local/lib -lz -o build/lib.solaris-2.7-sun4u-2.2/zlib.so
WARNING: removing "zlib" since importing it failed
running build_scripts
not copying /home/hgs/Python-2.2.1/Tools/scripts/pydoc (up-to-date)
neelix hgs 2 %> exit
neelix hgs 3 %>
script done on Mon Apr 15 13:58:14 2002

        Hugh






More information about the Python-list mailing list