-----Original Message----- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 15, 2008 5:12 AM To: Log4CXX User Subject: Re: log4cxx 0.10.0 Solaris build problem
On Apr 14, 2008, at 8:37 AM, Chakravarthula, Krishnamurthy wrote: > Experts, > > When I am building log4cxx 0.10.0 on Solaris and I get the > following errors. Please advice. > > [cc] __divdi3 0x174 ../ > static/libapr-1.a(thread_cond.o) > [cc] __divdi3 0x3c ../ > static/libapr-1.a(waitio.o) > [cc] __divdi3 0x74 ../ > static/libapr-1.a(waitio.o) > [cc] __divdi3 0x8cc ../ > static/libapr-1.a(apr_strings.o) > [cc] __divdi3 0x120 ../ > static/libapr-1.a(proc_mutex.o) > [cc] ld: fatal: relocations remain against allocatable but > non-writable sections > [cc] collect2: ld returned 1 exit status > > BUILD FAILED > /u/zztstkqa/jen/apache-log4cxx-0.10.0/build.xml:548: gcc failed with > return code 1 > > Regards, > Krishna Try adding a -Duse-pic=true to your command line or use the autotools build. The Ant build does not attempt to detect whether the compiler needs an explicit instruction to create relocatable code. Hi, I get the following error with -Duse-pic=true option. [cc] h_errno ./liblog4cxx.so [cc] libiconv ./liblog4cxx.so [cc] shutdown ./liblog4cxx.so [cc] ld: fatal: Symbol referencing errors. No output written to testsuite [cc] collect2: ld returned 1 exit status BUILD FAILED /u/zztstkqa/jen/apache-log4cxx-0.10.0/build.xml:704: gcc failed with return code 1 Total time: 12 minutes 13 seconds Regards, Krishna