How to build shared Python binaries under Solaris 7 (sparc) ?

Joe Van Andel vanandel at
Mon Apr 3 23:38:27 CEST 2000

I've discovered a problem with the configure script for Python 1.5.2
under Solaris 7 with gcc 2.95 .  configure should set the make variable
LINKFORSHARED=-Xlinker --export-dynamic

Until I made this change, I could not load any dynamicly linked library
into Python.  imports would fail - I would get errors like:

ImportError: python: fatal: relocation error: file
symbol PyExc_RuntimeError: referenced symbol not found

Once I manually set this variable in
Modules/Makefile, I could build a Python executable that could load
shared library extensions ( .

Joe VanAndel  	          
National Center for Atmospheric Research
Internet: vanandel at

More information about the Python-list mailing list