Coding model error compiling mod_perl.so

Coding model error compiling mod_perl.so

am 07.02.2011 18:13:31 von Ryan.Kogelheide

When compiling mod_perl.so, I get:

ld: fatal: relocation error: R_SPARC_H44: file /dsk01/apache/app/build2064/=
perl-5.12.2/lib/5.12.2/sun4-solaris-thread-multi-64/CORE/lib perl.a(op.o): s=
ymbol : relocations based on the ABS44 coding model can not be use=
d in building a shared object.

I'm using gccfss:

sparc-sun-solaris2.10-gcc (GCC) 4.3.3 (20091210) (gccfss)

My compile options are:

CC=3D"gcc -m64 -mcpu=3Dniagara2 -O3"

I tried adding "-fPIC", but that didn't help. I think the coding model erro=
r may be a false flag.

I'm guessing my perl needs to be rebuilt with different compile options? I =
was thinking I should be able to use elfdump to see if this is the case, bu=
t I'm not sure how.

Any help would be appreciated.

Cheers,

Ryan