I get a compile error trying to compile on Solaris . I've replaced the problem asm code with simple (and non-threadsafe C++) because our application is single-threaded. Is this OK, or does log4cxx go multithreaded on its own?
First some info on the build environment:
uname -a SunOS dev1 5.8 Generic_117000-03 sun4u sparc SUNW,Ultra-4
CC -V CC: Sun WorkShop 6 update 2 C++ 5.3 2001/05/15
And now the last part of the build:
CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c timezone.cpp -KPIC -DPIC -o .libs/timezone.o "../include/log4cxx/helpers/object.h", line 105: Warning: object hides log4cxx::helpers::synchronized::object. "../include/log4cxx/helpers/criticalsection.h", line 64: Warning: cs hides log4cxx::helpers::WaitAccess::cs. "timezone.cpp", line 64: Warning: ID hides log4cxx::helpers::TimeZone::ID. "timezone.cpp", line 203: Warning: year hides log4cxx::helpers::TimeZone::Rule::year. "../include/log4cxx/helpers/objectptr.h", line 162: Warning: p hides log4cxx::helpers::ObjectPtrT<log4cxx::helpers::TimeZone>::p. "../include/log4cxx/helpers/objectptr.h", line 33: Where: While instantiating "log4cxx::helpers::ObjectPtrT<log4cxx::helpers::TimeZone>::cast<log4cxx::helpers::TimeZone*>(log4cxx::helpers::TimeZone*const&)". "../include/log4cxx/helpers/objectptr.h", line 33: Where: Instantiated from non-template code. 5 Warning(s) detected. CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c timezone.cpp -o timezone.o >/dev/null 2>&1 source='transform.cpp' object='transform.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../depcomp \ /bin/bash ../libtool --mode=compile --tag=CXX CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c -o transform.lo transform.cpp CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c transform.cpp -KPIC -DPIC -o .libs/transform.o CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c transform.cpp -o transform.o >/dev/null 2>&1 source='thread.cpp' object='thread.lo' libtool=yes \ DEPDIR=.deps depmode=none /bin/bash ../depcomp \ /bin/bash ../libtool --mode=compile --tag=CXX CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c -o thread.lo thread.cpp CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -D_REENTRANT -g -c thread.cpp -KPIC -DPIC -o .libs/thread.o "../include/log4cxx/helpers/object.h", line 105: Warning: object hides log4cxx::helpers::synchronized::object. "../include/log4cxx/helpers/criticalsection.h", line 64: Warning: cs hides log4cxx::helpers::WaitAccess::cs. "thread.cpp", line 94: Warning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to pthread_create(unsigned*, const _pthread_attr*, extern "C" void*(*)(void*), void*) is being passed void*(*)(void*). "../include/log4cxx/helpers/objectptr.h", line 155: Warning: p hides log4cxx::helpers::ObjectPtrT<log4cxx::helpers::Runnable>::p. "thread.cpp", line 112: Where: While instantiating "log4cxx::helpers::ObjectPtrT<log4cxx::helpers::Runnable>::operator!=(const log4cxx::helpers::Runnable*) const". "thread.cpp", line 112: Where: Instantiated from non-template code. /opt/SUNWspro/bin/../WS6U2/bin/fbe: "/tmp/yabeAAA27ayLj", line 2139: error: cannot use v8plus instructions in a non-v8plus target binary /opt/SUNWspro/bin/../WS6U2/bin/fbe: "/tmp/yabeAAA27ayLj", line 2145: error: cannot use v8plus instructions in a non-v8plus target binary /opt/SUNWspro/bin/../WS6U2/bin/fbe: "/tmp/yabeAAA27ayLj", line 2155: error: cannot use v8plus instructions in a non-v8plus target binary Failure in /opt/SUNWspro/bin/../WS6U2/bin/fbe, status = 0x100 Fatal Error exec'ing /opt/SUNWspro/bin/../WS6U2/bin/fbe make[1]: *** [thread.lo] Error 1 make[1]: Leaving directory `/home/users/ja3536/log4cxx-0.9.7/src' make: *** [all-recursive] Error 1
