W3C home > Mailing lists > Public > www-lib@w3.org > October to December 2000

FW: Libwww Shared Library Problem on Solaris 2.7

From: Sander Alberink <sander.alberink@cmg.nl>
Date: Thu, 5 Oct 2000 11:48:53 +0200
Message-ID: <11A760648FE3D211BE5200A0C9F2A194888F61@NL-ENS-MAIL01>
To: www-lib@w3c.org


-----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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:38 GMT