Mailing List Archive

Error linking mod_perl
Hi,

I have a ubuntu-14.04 system with apache2.4 installed via apt.

uname -a
Linux ubuntu 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Then I have perl-5.22.1 installed from source with

./Configure -des -Dprefix=/opt/perl -Duseithreads
make make install

and try to install mod_perl-2.0.9:
/opt/perl/bin/perl Makefile.PL MP_APXS=/usr/bin/apxs2

and get:

...
cc -shared -O2 -L/usr/local/lib -fstack-protector \
\
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_debug.lo modperl_common_util.lo modperl_common_log.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo modperl_exports.lo -Wl,-E -fstack-protector -L/usr/local/lib -L/opt/perl/lib/5.22.1/x86_64-linux-thread-multi/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc \
-o mod_perl.so
/usr/bin/ld: /opt/perl/lib/5.22.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/opt/perl/lib/5.22.1/x86_64-linux-thread-multi/CORE/libperl.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/home/rs/mod_perl-2.0.9/src/modules/perl'
make: *** [modperl_lib] Error 2

Any idea?

Rolf