Using libwww as a static library in a shared object?

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,
Juergen

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