* What is the deal with gcc and shared libs?
@ 1999-11-06 21:03 Justin F. Knotzke
1999-11-06 21:42 ` Arthur Gold
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Justin F. Knotzke @ 1999-11-06 21:03 UTC (permalink / raw)
To: help-gcc
Hi,
I have checked high and low on this and everyone seems to point to
the -fPIC compiler flag as a fix to:
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
tried compiling and install three separate versions of gcc all with the
same results. The -fPIC does not fix this problem for me.
Is gcc broken in creating .so's under Solaris because I can create
then without problem under Linux.
Thanks
Justin Knotzke.
p.s please email any responses.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What is the deal with gcc and shared libs?
1999-11-06 21:03 What is the deal with gcc and shared libs? Justin F. Knotzke
@ 1999-11-06 21:42 ` Arthur Gold
1999-11-30 23:28 ` Arthur Gold
1999-11-08 1:58 ` Joerg Faschingbauer
1999-11-30 23:28 ` Justin F. Knotzke
2 siblings, 1 reply; 6+ messages in thread
From: Arthur Gold @ 1999-11-06 21:42 UTC (permalink / raw)
To: help-gcc
Important question: what version of `ld' are you using?
I seem to remember some potential problems in using gcc and Sun ld.
Perhaps this is a clue?
HTH,
--ag
[BTW, in general the rule is "post here, READ here"...]
"Justin F. Knotzke" wrote:
>
> Hi,
>
> I have checked high and low on this and everyone seems to point to
> the -fPIC compiler flag as a fix to:
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
>
> I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
> tried compiling and install three separate versions of gcc all with the
> same results. The -fPIC does not fix this problem for me.
>
> Is gcc broken in creating .so's under Solaris because I can create
> then without problem under Linux.
>
>
> Thanks
>
> Justin Knotzke.
>
> p.s please email any responses.
--
Artie Gold, Austin, TX
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
"If you come to a fork in the road, take it." L. P. Berra
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What is the deal with gcc and shared libs?
1999-11-06 21:03 What is the deal with gcc and shared libs? Justin F. Knotzke
1999-11-06 21:42 ` Arthur Gold
@ 1999-11-08 1:58 ` Joerg Faschingbauer
1999-11-30 23:28 ` Joerg Faschingbauer
1999-11-30 23:28 ` Justin F. Knotzke
2 siblings, 1 reply; 6+ messages in thread
From: Joerg Faschingbauer @ 1999-11-08 1:58 UTC (permalink / raw)
To: help-gcc
"Justin F. Knotzke" <shampoo@cam.org> writes:
> Hi,
>
>
> I have checked high and low on this and everyone seems to point to
> the -fPIC compiler flag as a fix to:
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
>
> I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
> tried compiling and install three separate versions of gcc all with the
> same results. The -fPIC does not fix this problem for me.
>
> Is gcc broken in creating .so's under Solaris because I can create
> then without problem under Linux.
You have to build gcc itself with -fPIC. Configure as usual, and
make bootstrap CFLAGS=-fPIC CXXFLAGS=-fPIC
Joerg
^ permalink raw reply [flat|nested] 6+ messages in thread
* What is the deal with gcc and shared libs?
1999-11-06 21:03 What is the deal with gcc and shared libs? Justin F. Knotzke
1999-11-06 21:42 ` Arthur Gold
1999-11-08 1:58 ` Joerg Faschingbauer
@ 1999-11-30 23:28 ` Justin F. Knotzke
2 siblings, 0 replies; 6+ messages in thread
From: Justin F. Knotzke @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
Hi,
I have checked high and low on this and everyone seems to point to
the -fPIC compiler flag as a fix to:
ld: fatal: relocations remain against allocatable but non-writable
sections
collect2: ld returned 1 exit status
I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
tried compiling and install three separate versions of gcc all with the
same results. The -fPIC does not fix this problem for me.
Is gcc broken in creating .so's under Solaris because I can create
then without problem under Linux.
Thanks
Justin Knotzke.
p.s please email any responses.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What is the deal with gcc and shared libs?
1999-11-06 21:42 ` Arthur Gold
@ 1999-11-30 23:28 ` Arthur Gold
0 siblings, 0 replies; 6+ messages in thread
From: Arthur Gold @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
Important question: what version of `ld' are you using?
I seem to remember some potential problems in using gcc and Sun ld.
Perhaps this is a clue?
HTH,
--ag
[BTW, in general the rule is "post here, READ here"...]
"Justin F. Knotzke" wrote:
>
> Hi,
>
> I have checked high and low on this and everyone seems to point to
> the -fPIC compiler flag as a fix to:
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
>
> I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
> tried compiling and install three separate versions of gcc all with the
> same results. The -fPIC does not fix this problem for me.
>
> Is gcc broken in creating .so's under Solaris because I can create
> then without problem under Linux.
>
>
> Thanks
>
> Justin Knotzke.
>
> p.s please email any responses.
--
Artie Gold, Austin, TX
mailto:agold@bga.com or mailto:agold@cs.utexas.edu
--
"If you come to a fork in the road, take it." L. P. Berra
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: What is the deal with gcc and shared libs?
1999-11-08 1:58 ` Joerg Faschingbauer
@ 1999-11-30 23:28 ` Joerg Faschingbauer
0 siblings, 0 replies; 6+ messages in thread
From: Joerg Faschingbauer @ 1999-11-30 23:28 UTC (permalink / raw)
To: help-gcc
"Justin F. Knotzke" <shampoo@cam.org> writes:
> Hi,
>
>
> I have checked high and low on this and everyone seems to point to
> the -fPIC compiler flag as a fix to:
>
> ld: fatal: relocations remain against allocatable but non-writable
> sections
> collect2: ld returned 1 exit status
>
> I am running gcc-2.95.2 built from scratch on a Solaris 7 box. I have
> tried compiling and install three separate versions of gcc all with the
> same results. The -fPIC does not fix this problem for me.
>
> Is gcc broken in creating .so's under Solaris because I can create
> then without problem under Linux.
You have to build gcc itself with -fPIC. Configure as usual, and
make bootstrap CFLAGS=-fPIC CXXFLAGS=-fPIC
Joerg
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~1999-11-30 23:28 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-06 21:03 What is the deal with gcc and shared libs? Justin F. Knotzke
1999-11-06 21:42 ` Arthur Gold
1999-11-30 23:28 ` Arthur Gold
1999-11-08 1:58 ` Joerg Faschingbauer
1999-11-30 23:28 ` Joerg Faschingbauer
1999-11-30 23:28 ` Justin F. Knotzke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).