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 "Madan, Hatinder" <ha...@gs.com> on 2005/03/28 16:57:03 UTC

Probelms with SimpleSocketServer on Solaris 8.

I have been trying to use Simple Socket Server on Solaris 8.
I'm able to compile & build the executable. Here is the output of the ldd
command on this executable
---------------
        libCstd.so.1 =>  /lib/libCstd.so.1
        liblog4cxx.so =>
/home/hatinder/projects/c++_logging/log4cxx-0.9.7/lib/liblog4cxx.so
        libCrun.so.1 =>  /lib/libCrun.so.1
        libc.so.1 =>     /lib/libc.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        librt.so.1 =>    /lib/librt.so.1
        libpthread.so.1 =>       /lib/libpthread.so.1
        libw.so.1 =>     /lib/libw.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libaio.so.1 =>   /lib/libaio.so.1
        /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
        /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
        libthread.so.1 =>        /lib/libthread.so.1
--------------------
But I get the following error on executing it:
------------
$%> simpleSocketServer
Illegal Instruction (core dumped)
-----------
I built the executable using the following command:
-----
/opt/forte-6.2/bin/CC -KPIC -xs -xildoff -mt -g -I.
-I/home/hatinder/projects/c++_logging/log4cxx-0.9.7/include -G -o
simpleSocketServer -L/home/hatinder/projects/c++_logging/log4cxx-0.9.7/lib
-lCstd -L/home/hatinder/projects/c++_logging/log4cxx-0.9.7/lib -llog4cxx
simplesocketserver.cpp
-----

Is there something wrong that I'm doing?

Thanks in advance for your suggestions/help,
Hatinder

Re: Probelms with SimpleSocketServer on Solaris 8.

Posted by Curt Arnold <ca...@apache.org>.
The 0.9.7 version used a lot of non-local static variables which would 
result in access violations and other faults during default 
initialization on some platforms since the order of initialization was 
platform specific.  This has been resolved in the CVS 
(http://issues.apache.org/jira/browse/LOGCXX-4).  I haven't reviewed 
and tested the network appenders on the CVS HEAD since some major 
surgery, so it is likely that they would not work at the moment.

If you want to try a snapshot after the static initialization fixes but 
before the Apache Portable Runtime and Unicode rework, you could do:

cvs -d:pserver:anoncvs@cvs.apache.org:/home/cvspublic login
cvs -d:pserver:anoncvs@cvs.apache.org:/home/cvspublic -z3 co -D 
2004-11-05 logging-log4cxx


On Mar 28, 2005, at 8:57 AM, Madan, Hatinder wrote:

> I have been trying to use Simple Socket Server on Solaris 8.
> I'm able to compile & build the executable. Here is the output of the 
> ldd command on this executable
> ---------------
>         libCstd.so.1 =>  /lib/libCstd.so.1
>         liblog4cxx.so =>         
> /home/hatinder/projects/c++_logging/log4cxx-0.9.7/lib/liblog4cxx.so
>         libCrun.so.1 =>  /lib/libCrun.so.1
>         libc.so.1 =>     /lib/libc.so.1
>         libsocket.so.1 =>        /lib/libsocket.so.1
>         libnsl.so.1 =>   /lib/libnsl.so.1
>         librt.so.1 =>    /lib/librt.so.1
>         libpthread.so.1 =>       /lib/libpthread.so.1
>         libw.so.1 =>     /lib/libw.so.1
>         libdl.so.1 =>    /lib/libdl.so.1
>         libmp.so.2 =>    /lib/libmp.so.2
>         libaio.so.1 =>   /lib/libaio.so.1
>         /usr/lib/cpu/sparcv8plus/libCstd_isa.so.1
>         /usr/platform/SUNW,Ultra-80/lib/libc_psr.so.1
>         libthread.so.1 =>        /lib/libthread.so.1
> --------------------
> But I get the following error on executing it:
> ------------
> $%> simpleSocketServer
> Illegal Instruction (core dumped)
> -----------
> I built the executable using the following command:
> -----
> /opt/forte-6.2/bin/CC -KPIC -xs -xildoff -mt -g -I. 
> -I/home/hatinder/projects/c++_logging/log4cxx-0.9.7/include -G -o 
> simpleSocketServer 
> -L/home/hatinder/projects/c++_logging/log4cxx-0.9.7/lib -lCstd 
> -L/home/hatinder/projects/c++_logging/log4cxx-0.9.7/lib -llog4cxx 
> simplesocketserver.cpp
>
> -----
>
> Is there something wrong that I'm doing?
>
> Thanks in advance for your suggestions/help,
> Hatinder