I was able to successfully build APR on Red Hat EL 4.  I have a shared library I am trying to build that is linking in APR statically.  I get the following error:
 
/usr/bin/ld: /usr/local/apr/lib/libapr-1.a(apr_strings.o): relocation R_X86_64_32 against `a local symbol' can not  be used when making a shared object;
recompile with -fPIC
/usr/local/apr/lib/libapr-1.a: could not read symbols: Bad value
 
If I link against the shared APR lib it works fine.  I included -fPIC in my make, but it did not help.
 
Any Ideas ?
 
Daniel May
daniel@may.com