mod_perl-2.0.4 and 5.10.0 build failure
am 04.06.2008 12:47:25 von Gavin HenryHi All,
I've built and have been running 5.10.0 for a while now and I am trying to
build mod_perl-2.0.4 with it.
Apache is stock Centos 5 x86_64:
rpm -q httpd-devel
httpd-devel-2.2.3-11.el5_1.centos.3
perl was built with:
sh Configure -de
make
make test
make install
mod_perl-2.0.4:
perl Makefile.PL MP_APXS=/usr/sbin/apxs
make
make dies at the end:
cc -I/usr/local/src/mod_perl-2.0.4/src/modules/perl
-I/usr/local/src/mod_perl-2.0.4/xs -I/usr/include/apr-1
-I/usr/include/apr-1 -I/usr/include/httpd -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/include/gdbm
-I/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE -DMOD_PERL -DMP_COMPAT_1X
-DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -O2 -fPIC \
-c modperl_exports.c && mv modperl_exports.o modperl_exports.lo
rm -f mod_perl.so
cc -shared -O2 -L/usr/local/lib \
\
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 -L/usr/local/lib
-L/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE -lperl -lnsl -ldl
-lm -lcrypt -lutil -lc \
-o mod_perl.so
/usr/bin/ld:
/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a(gv.o ): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/usr/local/lib/perl5/5.10.0/x86_64-linux/CORE/libperl.a: could not read
symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make[1]: Leaving directory `/usr/local/src/mod_perl-2.0.4/src/modules/perl'
make: *** [modperl_lib] Error 2
Is this a perl 5.10.0 build error?
I can see -fPIC in config.sh in the perl src tree.
Any help would be greatly appreciated.
Gavin.