I want to use log4cxx with an app that is already using apr-0.

The windows version of my app seems to work just fine.
The linux version of my app segfaults as
#0 0x40e7c1ea in apr_atomic_add32 (mem=0x8051944, val=1) at atomic/unix/apr_atomic.c:213
#1 0x40e7c378 in apr_atomic_inc32 (mem=0x0) at atomic/unix/apr_atomic.c:273
#2 0x405c48f2 in log4cxx::helpers::ObjectImpl::addRef() const (this=0x8051940) at objectimpl.cpp:34
#3 0x405b50df in log4cxx::Level::getOff() () at objectptr.h:72
#4 0x405b5e63 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at objectptr.h:76
#5 0x405b620b in _GLOBAL__I__ZNK7log4cxx5Level8getClassEv () at level.cpp:206
#6 0x405f9e85 in __do_global_ctors_aux () from /usr/local/lib/liblog4cxx.so.9
#7 0x40584005 in _init () from /usr/local/lib/liblog4cxx.so.9
#8 0x4000c0de in call_init () from /lib/ld-linux.so.2
#9 0x4000c1ca in _dl_init_internal () from /lib/ld-linux.so.2
#10 0x40000c5d in _dl_start_user () from /lib/ld-linux.so.2


I noticed that my windows app doesn't load a apr-1 dll.
Does log4cxx statically link against the apr on windows?
If so can I build log4cxx on linux that statically links against the apr?
How would I do that?

Kevin

Reply via email to