[Patches] [ python-Patches-403655 ] configure changes for Solaris

nobody nobody@sourceforge.net
Sun, 04 Mar 2001 15:59:10 -0800


Patches #403655, was updated on 2001-02-07 05:30
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=403655&group_id=5470

Category: Build
Group: None
Status: Closed
Priority: 5
Submitted By: Scott Griggs
Assigned to: Martin v. Löwis
Summary: configure changes for Solaris

Initial Comment:
Configure was setting gcc -shared to build shared libraries on SunOS. Changed it back to gcc -G. The -shared option does not work on Solaris

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

Comment By: Jeffrey Chang
Date: 2001-03-04 15:59

Message:
Logged In: YES 
user_id=12576

I'm sorry to see this patch backed out, since it solves my
problem.  I'm using SunOS 5.6 with gcc 2.8.1.  When gcc
-shared tries to link against .a files, I get a slew of
errors such as:
[...]
<unknown>            0x94   /usr/local/lib/libz.a(deflate.o)
<unknown>            0xa0   /usr/local/lib/libz.a(deflate.o)
<unknown>            0xac   /usr/local/lib/libz.a(deflate.o)
ld: fatal: relocations remain against allocatable but
non-writable sections
WARNING: building of extension "zlib" failed: command 'gcc'
failed with exit status 1

These messages, and the error, goes away when using gcc -G.

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

Comment By: Jeffrey Chang
Date: 2001-03-04 15:57

Message:
Logged In: YES 
user_id=12576

I'm sorry to see this patch backed out, since it solves my
problem.  I'm using SunOS 5.6 with gcc 2.8.1.  When gcc
-shared tries to link against .a files, I get a slew of
errors such as:
[...]
<unknown>            0x94   /usr/local/lib/libz.a(deflate.o)
<unknown>            0xa0   /usr/local/lib/libz.a(deflate.o)
<unknown>            0xac   /usr/local/lib/libz.a(deflate.o)
ld: fatal: relocations remain against allocatable but
non-writable sections
WARNING: building of extension "zlib" failed: command 'gcc'
failed with exit status 1

These messages, and the error, goes away when using gcc -G.

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

Comment By: Martin v. Löwis
Date: 2001-03-01 14:44

Message:
Logged In: YES 
user_id=21627

Assigned to None.

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

Comment By: Martin v. Löwis
Date: 2001-03-01 14:42

Message:
Logged In: YES 
user_id=21627

Since Scott did not provide any rationale or indication of a
problem being solved with this patch, I'll reject it.

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

Comment By: Neil Schemenauer
Date: 2001-02-19 10:24

Message:
Okay, I've reverted the patch.  Sorry Martin.

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

Comment By: Martin v. Löwis
Date: 2001-02-19 09:56

Message:
Why was this patch approved? Why does the -shared option not work on Solaris? -shared does the following things:
- invoke the linker with -G -dy -z text (the latter only if -mimpure-text was not given)
- drop crt1.o from the list of objects being linked
- drop -lc from the list of libraries being linked
OTOH, -G is just passed through to the linker.

The things that -shared does are necessary: crt1.o defines _start, and requires main, so it should not be present in a shared library. Likewise, -z text should be used to detect position-dependent code at compile time.

Unless some explicit rationale can be given, I think this patch should be reversed.

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

Comment By: Neil Schemenauer
Date: 2001-02-18 20:47

Message:
Checked in.

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

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