[Python-bugs-list] trouble building under Solaris 7 (PR#260)

lipman@helix.nih.gov lipman@helix.nih.gov
Fri, 31 Mar 2000 18:03:58 -0500 (EST)


Full_Name: Everett Lipman
Version: 1.5.2
OS: Solaris 7 106541-08
Submission from: sphere.niddk.nih.gov (128.231.4.194)


When I built Python on my machine:

SunOS 5.7 Generic_106541-08 sun4u sparc SUNW,Ultra-5_10

Python's internal symbols (for instance PySequence_Length) were not
included in the dynamic symbol table of the python executable.  This
prevented the Numerical-15.2 extensions from importing properly.  My
machine has both the Sun linker (in /usr/ccs/bin) and the GNU linker
installed.  I use the GNU linker, which is first in the $PATH under
which Python was built.

A workaround for this problem is to change the following line in
Modules/Makefile.pre from

LDFLAGS=

to

LDFLAGS= -export-dynamic

This will only work for the GNU linker.