35 messages in org.apache.perl.modperlRE: compile problems
FromSent OnAttachments
BeberleDec 13, 2004 2:43 am 
Tom SchindlDec 13, 2004 4:02 am 
Reenen C KroukampDec 13, 2004 4:44 am 
BeberleDec 14, 2004 5:32 pm 
Joe SchaeferDec 14, 2004 6:49 pm 
BeberleDec 16, 2004 6:42 pm 
Joe SchaeferDec 16, 2004 8:44 pm 
Matthew BerkDec 16, 2004 11:05 pm 
Stas BekmanDec 17, 2004 8:11 am 
Barksdale, RayDec 17, 2004 8:57 am 
Joe SchaeferDec 17, 2004 10:27 am 
Stas BekmanDec 17, 2004 10:38 am 
Barksdale, RayDec 17, 2004 11:04 am 
Stas BekmanDec 17, 2004 11:25 am 
Barksdale, RayDec 17, 2004 1:04 pm 
Stas BekmanDec 17, 2004 1:19 pm 
Barksdale, RayDec 17, 2004 3:37 pm 
Stas BekmanDec 17, 2004 3:44 pm 
Matthew BerkDec 20, 2004 6:43 am 
Barksdale, RayDec 22, 2004 7:19 am 
Stas BekmanDec 22, 2004 12:27 pm 
Barksdale, RayDec 22, 2004 12:37 pm 
Stas BekmanDec 22, 2004 1:16 pm 
Barksdale, RayDec 22, 2004 2:01 pm 
Stas BekmanDec 22, 2004 2:22 pm 
Barksdale, RayDec 22, 2004 3:06 pm 
Stas BekmanDec 22, 2004 4:01 pm 
Barksdale, RayDec 28, 2004 2:50 pm 
Stas BekmanDec 28, 2004 3:01 pm 
Barksdale, RayDec 28, 2004 3:14 pm 
Stas BekmanDec 28, 2004 3:17 pm 
Barksdale, RayDec 28, 2004 3:50 pm 
Joe SchaeferDec 28, 2004 5:29 pm 
Barksdale, RayDec 29, 2004 8:59 am 
Stas BekmanDec 29, 2004 9:21 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: compile problemsActions...
From:Barksdale, Ray (bark@mdot.state.ms.us)
Date:Dec 17, 2004 8:57:31 am
List:org.apache.perl.modperl

Matthew, you're not alone.

I was going to send a report (my first one ever :) about this but anyhow..... same problem here => Fedora Core 2 (AMD64), perl 5.8.5, Apache 2.0.52, mod_perl 1.99_17. perl built with -fPIC instead of -fpic. Same result regardless. A grep shows mod_perl picking up on -fPIC so maybe it is a problem with perl. I did also build/test/install the DBD::mysql and DBD::Pg drivers with no problems.

cc -shared \ \ 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 /usr/local/lib/perl5/5.8.5/x86_64-linux/auto/DynaLoader/DynaLoader.a -L/usr/local/lib/perl5/5.8.5/x86_64-linux/CORE -lperl -lnsl -ldl -lm -lcrypt -lutil -lc \ -o mod_perl.so /usr/bin/ld: /usr/local/lib/perl5/5.8.5/x86_64-linux/auto/DynaLoader/DynaLoader.a(DynaLoa der.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/perl5/5.8.5/x86_64-linux/auto/DynaLoader/DynaLoader.a: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [mod_perl.so] Error 1 make[1]: Leaving directory `/home/jrb/apache2/mod_perl-1.99_17/src/modules/perl' make: *** [modperl_lib] Error 2

On a side note everything works fine for a static build. Modules (Apache::Scoreboard and Apache::VMonitor) required a little tweaking but worked. It seems fast ...but with our normal collection of modules loaded it is HUGE.

-----Original Message----- From: Stas Bekman [mailto:st@stason.org] Sent: Friday, December 17, 2004 10:12 AM To: Matthew Berk Cc: modp@perl.apache.org Subject: Re: compile problems

Matthew Berk wrote:

Apologies if I'm posting in the wrong place, but here goes:

AMD Opteron, Suse 9.1, perl 5.8.6, Apache 2.0.52, mod_perl 1.99_17

Apache compiles fine. When compiling mod_perl, I execute "/usr/local/bin/perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs" and then make, and get:

/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.3/../../../../x86_64-suse- linux/bin/ld: /usr/local/lib/perl5/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

/usr/local/lib/perl5/5.8.6/x86_64-linux/auto/DynaLoader/DynaLo ader.a:

could not read symbols: Bad value collect2: ld returned 1 exit status

You mean, it fails to load Dynaloader? what was the last console before this error?

Can you compile any other CPAN module that has XS code included? Looks like it could be a broken perl.