Tom Caldwell wrote:
-------------8<---------- Start Bug Report ------------8<----------
1. Problem Description:
Modperl2 dynamic module build fails on Red Hat Linux (Intel 64)
with the following error.
gcc -shared \ \ mod_perl.lo modperl_interp.lo modperl_tipool.lo
modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo
[...]
modperl_exports.lo -Wl,-E
/opt/perl/lib/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a
-L/opt/perl/lib/5.8.6/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt
-lutil -lc \ -o mod_perl.so /usr/bin/ld:
/opt/perl/lib/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoader.o):
relocation R_X86_64_32 can not be used when making a shared object;
recompile with -fPIC
^^^^^^^^^^^^^^^^^^^^
/opt/perl/lib/5.8.6/x86_64-linux/auto/DynaLoader/DynaLoader.a: could
not read symbols: Bad value
Tom, the answer is right there: you need to rebuild perl with -fPIC
>> *** /opt/perl/bin/perl -V
>> Dynamic Linking:
>> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
>> cccdlflags='-fpic', lddlflags='-shared'
^^^^^^^^^^^^^^^^^^^
--
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com