FW: Libwww Shared Library Problem on Solaris 2.7

-----Original Message-----
From: Sander Alberink 
Sent: Thursday, October 05, 2000 11:18
To: 'Prasanta Sahoo'
Subject: RE: Libwww Shared Library Problem on Solaris 2.7


Hi!

> I have  problem with LIBWWW on Solaris 2.7. This is related 
> with Shared Object library file.
> I am getting __eprintf symbol not found when I am trying to 
> start my applications.Can you tell me how do I solve this problem?. 
> 
> file my.so: symbol __eprintf: referenced symbol not found
> 
> The symbol __eprintf is referenced in libwwwhtml.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?

Apparently, you tried to link libwww (which has been compiled with gcc) to a
program compiled with the Sun compiler. __eprintf is an internal function of
the GCC compiler and is linked to every executable you compile with it (it
is used for the assert() macro, for example). As the SUN compiler does not
include that symbol, you get a linking error. Try compiling your program
with the gcc compiler, that should work.

HTH,

--
The woods are lovely, dark and deep,
But I have lines to code before I sleep, lines
to code before I sleep.

Received on Thursday, 5 October 2000 05:48:03 UTC