|There's more than one way to do things|
ModPerl not happy with libperl.aby RachunZero (Novice)
|on Feb 07, 2011 at 19:18 UTC||Need Help??|
RachunZero has asked for the
wisdom of the Perl Monks concerning the following question:
I've been meditating unsuccessfully on a perplexing problem oh wise ones. When I try to compile modperl.so against 5.12.2 libperl.a, I get a PIC error:
When I check libperl.a using elfdump, it has no GOT.
My compiler is sparc-sun-solaris2.10-gcc (GCC) 4.3.3 (20091210) (gccfss)
My perl is built as:
Most of the links I can find on this problem relate it to the Solaris compiler cc option -xcode, but I'm using gcc. I assumed that meant I needed to add the -fPIC option to gcc; however, that did not create a GOT either.
Actually my compile just finished and libperl.a still doesn't have a GOT, but by adding the -fPIC flag to my perl compile, mod_perl.so was able to link. I'm now thoroughly confused...