logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Liu \(allliu\)" <all...@cisco.com>
Subject Error running log4cxx on Solaris 2.8
Date Tue, 17 Oct 2006 22:59:54 GMT
Hi,
 
I compiled and installed log4cxx from the SVN repository by doing the
following:
 
./autogen.sh
./configure --with-apr-/usr/local/apr --with-apr-util=/usr/local/apr
make
make check
sudo make install
Making all in examples

During make, I got the following error and had to comment out line 74
and 76 of console.cpp to avoid wcerr and wcout:
 
===================================================
make[1]: Entering directory `/usr/dklemer/test/log4cxx/examples'
if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\"
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"log4cxx\"
-DVERSION=\"0.10.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ALLOCA_H=1
-DHAVE_SWPRINTF=1 -DHAVE_SYSLOG=1 -DHAVE_PTHREAD=1 -DHAVE_THREAD=1
-DHAVE_GETHOSTBYNAME=1 -DHAVE_SETSOCKOPT=1 -DHAVE_GETTIMEOFDAY=1
-DHAVE_FTIME=1  -I. -I. -I../include -I../include  -DLOG4CXX
-DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-D_LARGEFILE64_SOURCE  -I/usr/local/apr/include/apr-1
-I/usr/local/apr/include/apr-1 -I/usr/local/include -D_REENTRANT  -g -O2
-MT console.o -MD -MP -MF ".deps/console.Tpo" -c -o console.o
console.cpp; \
then mv -f ".deps/console.Tpo" ".deps/console.Po"; else rm -f
".deps/console.Tpo"; exit 1; fi
console.cpp: In function 'int main(int, char**)':
console.cpp:74: error: 'wcerr' is not a member of 'std'
console.cpp:76: error: 'wcout' is not a member of 'std'
make[1]: *** [console.o] Error 1
make[1]: Leaving directory `/usr/dklemer/test/log4cxx/examples'
make: *** [all-recursive] Error 1
===================================================
 
Then it compied. 
During 'make check', I got the following error:
 
===================================================
make[2]: Leaving directory
`/usr/dklemer/downloads/log4cxx/tests/witness'
Making check in src
make[2]: Entering directory `/usr/dklemer/downloads/log4cxx/tests/src'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/usr/dklemer/downloads/log4cxx/tests/src'
make[2]: Entering directory `/usr/dklemer/downloads/log4cxx/tests'
make[2]: Leaving directory `/usr/dklemer/downloads/log4cxx/tests'
terminate called after throwing an instance of
'log4cxx::helpers::IllegalArgumentException'
  what():  UTF-8
/bin/sh: line 1: 17579 Abort                   src/testsuite +TestCase1
make[1]: *** [run-unittest] Error 134
make[1]: Leaving directory `/usr/dklemer/downloads/log4cxx/tests'
make: *** [check-recursive] Error 1
===================================================
 
I ignored it and went ahead with 'sudo make install'.
Then I wrote a very simple test program to use -llog4cxx. However, I got
the following error at run time:

===================================================
terminate called after throwing an instance of
'log4cxx::helpers::IllegalArgumentException'
  what():  UTF-8
Abort
===================================================
 
 
Could you tell me what this error mean? Is there a fix for it?
 
Thanks!
Allen
 

Mime
View raw message