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

Joe Van Andel vanandel at atd.ucar.edu
Mon Apr 3 17:38:27 EDT 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: ld.so.1: python: fatal: relocation error: file
/usr/local/lib/python1.5/site-packages/Perp/util/du_SweepUtilc.so:
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 (xxx.so) .


-- 
Joe VanAndel  	          
National Center for Atmospheric Research
http://www.atd.ucar.edu/~vanandel/
Internet: vanandel at ucar.edu



More information about the Python-list mailing list