This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
SunOS shared libs ?
- To: egcs at cygnus dot com
- Subject: SunOS shared libs ?
- From: "Munagala V. S. Ramanath" <ram at netcom dot com>
- Date: Tue, 9 Jun 1998 07:48:09 -0700 (PDT)
Hi,
I'm getting the following failure when trying to build a shared library
on SunOS 4.1.2 with egcs-1.0.2:
ld: /usr/tmp/cca08998.o: assert pure-text failed: reference to [offset] at e5c in /usr/tmp/cca08998.o
...[several more messages of the same type] ...
The command was something like this:
gcc -g -shared -o libXX.so *.o
The .o files were all compiled like this:
gcc -g -O2 -ansi -pedantic -fPIC -c xyz.c
Using -fpic instead of -fPIC or using both makes no difference.
This works fine with gcc-2.7.2.
I didn't see anything in the FAQ about this. This problem occurs when
building my own code as well as when trying to build the FreeType
library. Others have reported the same problem to the freetype mailing
lists, so the problem does not appear to be due to any local
peculiarities of my setup.
Is this a known bug in egcs or is there some other linker or compiler
option that is needed ?
Any help is appreciated.
Ram