This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC problem on Solaris


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]