Re: [mp2] modperl2 compile error

[prev] [thread] [next] [Date index for 2005/04/27]

From: Stas Bekman
Subject: Re: [mp2] modperl2 compile error
Date: 16:41 on 27 Apr 2005
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:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

(message missing)

[mp2] modperl2 compile error
Tom Caldwell 16:35 on 27 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 16:41 on 27 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 16:36 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 19:46 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 20:55 on 28 Apr 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 18:54 on 29 Apr 2005

Re: [mp2] modperl2 compile error
Stas Bekman 06:25 on 30 Apr 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 07:53 on 02 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 17:05 on 02 May 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:09 on 04 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 15:09 on 04 May 2005

Re: [mp2] modperl2 compile error
Marc =?ISO-8859-1?Q?Gr=E0cia?= 10:26 on 05 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 05:23 on 06 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 20:03 on 09 May 2005

Re: [mp2] modperl2 compile error
Tom Caldwell 22:24 on 02 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 06:40 on 03 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 05:51 on 03 May 2005

Re: [mp2] modperl2 compile error
Stas Bekman 20:46 on 09 May 2005

Generated at 06:56 on 17 May 2005 by mariachi v0.52