You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Vinayak Mithbaokar <Vi...@geometricsoftware.com> on 2006/03/11 16:00:14 UTC

Link errors on Solaris with HEAD

Hi,
 
I have downloaded the latest log4cxx version from
http://littletux.homelinux.org/log4cxx/
<http://littletux.homelinux.org/log4cxx/>  (log4cxx-.9.8.tar.gz
<http://littletux.homelinux.org/log4cxx/log4cxx-0.9.8.tar.gz>
11-Mar-2006 12:32   716k). When I tried to build the source on Solaris
5.8 with APR-1.2.2 & apr-util-1.2.2 using configure script, i got the
following link errors
 
------------------------------------------------------------------------
--------
CC -g -o .libs/simplesocketserver simplesocketserver.o -xarch=v8plus
-L/home/vinayakm/source/bkp/tools/apr-1.2.2
-L/home/vinayakm/source/bkp/tools/apr-util-1.2.2
-L/home/vinayakm/source/bkp/tools/apr-util-1.2.2/xml/expat/lib
../src/.libs/liblog4cxx.so
/home/vinayakm/source/bkp/tools/apr-util-1.2.2/.libs/libaprutil-1.so
/home/vinayakm/source/bkp/tools/apr-util-1.2.2/xml/expat/lib/.libs/libex
pat.so -L/usr/local/lib /usr/local/lib/libxml2.so -lz -lm
/home/vinayakm/source/bkp/tools/apr-1.2.2/.libs/libapr-1.so -luuid
-lsendfile -lsocket -lnsl -ldl -lpthread -lrt -R/usr/local/lib
-R/usr/local/apr/lib
Undefined                       first referenced
 symbol                             in file
int log4cxx::helpers::UnicodeHelper::lengthUTF8(wchar_t)
../src/.libs/liblog4cxx.so
int log4cxx::helpers::UnicodeHelper::encodeWide(unsigned,wchar_t*)
../src/.libs/liblog4cxx.so
unsigned log4cxx::helpers::UnicodeHelper::decodeWide(const
wchar_t*&,const wchar_t*) ../src/.libs/liblog4cxx.so
ld: fatal: Symbol referencing errors. No output written to
.libs/simplesocketserver
make[1]: *** [simplesocketserver] Error 1
make[1]: Leaving directory
`/home/vinayakm/source/bkp/log4cxx-11Mar06-liitletux-02/log4cxx-0.9.8/si
mplesocketserver'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
--------
 
I got the same linking error when I tried to link the log4cxx lib with
my application. 
Is there any problem related to tar ball available at liitletux?
Is there any other way by which I can get the older tar balls of
log4cxx?
 
 
Best regards,

Vinayak Mithbaokar

 

Re: Link errors on Solaris with HEAD

Posted by Andreas Fester <af...@apache.org>.
Hi,

this is an issue which still occurs when compiling with
the SUN compiler, see

http://marc.theaimsgroup.com/?l=log4cxx-user&m=113473025221990&w=2

The #define __STDC_ISO_10646__ is  not defined in this case.
You can try to remove lines 143 and 166 from src/unicodehelper.cpp

143: #if defined(__STDC_ISO_10646__)
166: #endif

Regards,

	Andreas


Vinayak Mithbaokar wrote:
[...]
> 11-Mar-2006 12:32   716k). When I tried to build the source on Solaris
> 5.8 with APR-1.2.2 & apr-util-1.2.2 using configure script, i got the
> following link errors
[...]
>  symbol                             in file
> int log4cxx::helpers::UnicodeHelper::lengthUTF8(wchar_t)
> ../src/.libs/liblog4cxx.so
> int log4cxx::helpers::UnicodeHelper::encodeWide(unsigned,wchar_t*)
> ../src/.libs/liblog4cxx.so
> unsigned log4cxx::helpers::UnicodeHelper::decodeWide(const
> wchar_t*&,const wchar_t*) ../src/.libs/liblog4cxx.so
> ld: fatal: Symbol referencing errors. No output written to
> .libs/simplesocketserver
> make[1]: *** [simplesocketserver] Error 1
> make[1]: Leaving directory
> `/home/vinayakm/source/bkp/log4cxx-11Mar06-liitletux-02/log4cxx-0.9.8/si
> mplesocketserver'
> make: *** [all-recursive] Error 1
[...]