[Python-bugs-list] [ python-Bugs-417481 ] Python 2.1 build issues on Solaris 8/x86

noreply@sourceforge.net noreply@sourceforge.net
Thu, 19 Apr 2001 16:25:31 -0700


Bugs item #417481, was updated on 2001-04-19 16:25
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417481&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Fazal Majid (majid)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.1 build issues on Solaris 8/x86

Initial Comment:
I am building Python 2.1 final on Solaris 8 x86 with gcc 2.95.3 configured to use Solaris ld and GNU 
as.

The new autodetect build process fails to build some dynamically loaded modules such as _socket, 
at least when the OpenSSL autodetection kicks in. I am attaching a compilation build log 
py21log.txt (keep in mind stderr is not buffered, so sometimes the error message precedes the 
command-line).

This linker error message is something that is usually fixed by compiling with -fpic or -fPIC (the two 
are equivalent on x86), but in this case it does not resolve the problem with OpenSSL. Some 
versions of egcs were known to generate incorrect code when -fpic and -O were used together, 
this might be a survival of this bug.

The link process using gcc -shared fails with ld reporting unresolved relocations.

I managed to work around the problem by using LDSHARED="gcc -G" instead of "gcc -shared" ("ld 
-G" builds and installs successfully, but leaves relocations against libgcc). Once again, I am 
attaching the successful build log py21ok.txt.

FYI, this problem didn't occur with Python 2.0 and earlier with the manual Modules/Setup build 
process. This is probably related to:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403655&group_id=5470


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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=417481&group_id=5470