W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2000

Using libwww as a static library in a shared object?

From: Bernhardt Juergen <Juergen.Bernhardt@erl9.siemens.de>
Date: Tue, 8 Feb 2000 15:49:24 +0100
Message-ID: <D79BEBBEB1BBD31199FC00805FBED48B0BEC2D@ERLM511A.erl9.siemens.de>
To: "'www-lib@w3.org'" <www-lib@w3.org>
Hi folks!

I build the libwww 5.2.8 under SunOS 5.6 with GCC 2.95.1 as static
and want to use this library in my shared object. I linked the whole www
libraries to my.so.

When the main program wants to load my.so, I've got a error message like:

dlopen() failed with library /opt/apache/htdocs/db4web/bin/www.so
ld.so.1: ./db4web_s: fatal: relocation error
file my.so: symbol __eprintf: referenced symbol not found

The symbol __eprintf is referenced in libwww.html.a (SGML.o):

# nm -A ./Library/src/.libs/* | grep eprint
./Library/src/.libs/libwwwhtml.a:SGML.o:         U __eprintf

Is this a linker problem?
Who knows, where __eprintf is defined, I can't found it?

Thanks in advance,
Received on Tuesday, 8 February 2000 10:01:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC