This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC problem on Solaris
- To: steve_wong at macroview dot com dot hk (Steve Wong)
- Subject: Re: GCC problem on Solaris
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 13 Mar 2001 09:29:51 -0300
- Cc: <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <000701c0aba1$197ab390$5201a8c0@STEVE>
On Mar 13, 2001, steve_wong@macroview.com.hk (Steve Wong) wrote:
> Text relocation remains referenced
> against symbol offset in file
> omapi_listener_trace_setup 0x4e4
> /export/home/steve/dhcp-3.0b2p
> 8/work.sunos5/omapip/libomapi.a(support.o)
It means this library wasn't built with -fPIC. You can manage to add
it to a SO by using gcc -mimpure-text.
> If I remove -shared and add -static, it prompts me :
> ld: fatal: library -ldl: not found
-ldl isn't available as a static library. Note that -static has a
meaning totally unrelated to that of -shared. You use the latter to
*create* a shared library, whereas you use the former to *link with*
static libraries.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me