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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 15 Sep 2000 12:14:28 -0700


Bug #110625, was updated on 2000-Jul-31 14:08
Here is a current snapshot of the bug.

Project: Python
Category: Build
Status: Closed
Resolution: None
Bug Group: Platform-specific
Priority: 6
Summary: trouble building under Solaris 7 (PR#260)

Details: Jitterbug-Id: 260
Submitted-By: lipman@helix.nih.gov
Date: Fri, 31 Mar 2000 18:03:56 -0500 (EST)
Version: 1.5.2
OS: Solaris 7 106541-08


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.



====================================================================
Audit trail:
Mon May 22 17:39:59 2000	guido	changed notes
Mon May 22 17:39:59 2000	guido	moved from incoming to open

Follow-Ups:

Date: 2000-Aug-06 14:25
By: twouters

Comment:
This might be fixed by newer autoconf ?
-------------------------------------------------------

Date: 2000-Aug-30 05:39
By: akuchling

Comment:
Reassigning to Jeremy, since I lack the time.
-------------------------------------------------------

Date: 2000-Sep-05 13:41
By: loewis

Comment:
I believe this is fixed in Python 2. I had the same problem in 1.5.2, as
GNU ld suddenly started printing its -V output to stderr instead of
stdout. Then, 

$CC -Xlinker -V 2>/dev/null | grep BFD >/dev/null

of 1.5.2 would not consider the linker as GNU ld. In 2.0,  the line is

$CC -Xlinker -V 2>&1 | grep BFD >/dev/null

so stderr is grepped as well and the bug is fixed.
-------------------------------------------------------

Date: 2000-Sep-15 12:14
By: jhylton

Comment:
I will believe Martin about this bug being fixed.

-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110625&group_id=5470