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.

Reply via email to