GCC problem on Solaris
Alexandre Oliva
aoliva@redhat.com
Tue Mar 13 04:30:00 GMT 2001
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
More information about the Gcc-help
mailing list