Mailing List Archive

mod_perl2 on CentOS 6 compile issue
I'm trying to compile mod_perl2 (v2.0.7 and have also tried the SVN tree)
on CentOS 6 64-bit against Perl 5.16.3 and Apache 2.2.24 (latest stable APR
and APR-util packages, as well). I keep hitting this error:

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/usr/local/lib/perl5/5.16.3/x86_64-linux/CORE -lperl -lnsl -ldl -lm
-lcrypt -lutil -lc \
-o mod_perl.so
/usr/bin/ld: /usr/local/lib/perl5/5.16.3/x86_64-linux/CORE/libperl.a(op.o):
relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a
shared object; recompile with -fPIC
/usr/local/lib/perl5/5.16.3/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 `/root/mod_perl-2.0.7/src/modules/perl'
make: *** [modperl_lib] Error 2

I've revised the Makefile in the appropriate directory to do the final link
with -fPIC, and it -still- comes up with the same error.

I'm migrating from a CentOS 5 box, and have never had troubles compiling
mod_perl before.

The libperl.a -will- respond to an `nm -s`, so I'm not sure exactly what
the problem is.

Both the official stable version and the SVN tree react identically.

Could I please get some assistance in getting this compile working. It's
just about the last step in my [forced, time-constrained] VPS migration.

Thanks!

mark->

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_perl2 on CentOS 6 compile issue [ In reply to ]
Hi Fairlight

There is currently no mod_perl release that's compatible with Apache
2.2.24 yet.

However, the errors you are getting are not the typical ones that one
gets compiling with Apache 2.2.24.

If you compile with an version of Apache lower than 2.2.24 and still have
problems, you should follow the procedures as below:

http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems


Regards,

Jie

* Fairlight <fairlite@iglou.com> wrote:

> Date: Wed, 3 Apr 2013 13:03:37 -0400
> From: Fairlight <fairlite@iglou.com>
> To: dev@perl.apache.org
> Subject: mod_perl2 on CentOS 6 compile issue
> User-Agent: Mutt/1.5.21 (2010-09-15)
>
> I'm trying to compile mod_perl2 (v2.0.7 and have also tried the SVN tree)
> on CentOS 6 64-bit against Perl 5.16.3 and Apache 2.2.24 (latest stable APR
> and APR-util packages, as well). I keep hitting this error:
>
> 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/usr/local/lib/perl5/5.16.3/x86_64-linux/CORE -lperl -lnsl -ldl -lm
> -lcrypt -lutil -lc \
> -o mod_perl.so
> /usr/bin/ld: /usr/local/lib/perl5/5.16.3/x86_64-linux/CORE/libperl.a(op.o):
> relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a
> shared object; recompile with -fPIC
> /usr/local/lib/perl5/5.16.3/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 `/root/mod_perl-2.0.7/src/modules/perl'
> make: *** [modperl_lib] Error 2
>
> I've revised the Makefile in the appropriate directory to do the final link
> with -fPIC, and it -still- comes up with the same error.
>
> I'm migrating from a CentOS 5 box, and have never had troubles compiling
> mod_perl before.
>
> The libperl.a -will- respond to an `nm -s`, so I'm not sure exactly what
> the problem is.
>
> Both the official stable version and the SVN tree react identically.
>
> Could I please get some assistance in getting this compile working. It's
> just about the last step in my [forced, time-constrained] VPS migration.
>
> Thanks!
>
> mark->
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_perl2 on CentOS 6 compile issue [ In reply to ]
On Wed, Apr 3, 2013 at 8:42 PM, Jie Gao <J.Gao@sydney.edu.au> wrote:
> There is currently no mod_perl release that's compatible with Apache
> 2.2.24 yet.

I built 5.14.12/2.2.24/2.08-dev yesterday on a Centos 6.2 box.

Thinking Perl needs to be recompiled with -fPIC. Your httpd loads a
certain mod_perl via PerlRequire in httpd.conf, which grabs the
appropriate mod_perl.so, which is linked to the version of Perl it was
compiled with. If you get undefined symbol errors, you probably need
to recompile your httpd, but I've seen this before and a Perl
recompilation resolved the issue.

Suggest trying with the 2.0.8 release candidate and reporting back on
that email thread.

http://people.apache.org/~phred/mod_perl-2.0.8-rc1.tar.gz

>
> However, the errors you are getting are not the typical ones that one
> gets compiling with Apache 2.2.24.
>
> If you compile with an version of Apache lower than 2.2.24 and still have
> problems, you should follow the procedures as below:
>
> http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
>
>
> Regards,
>
> Jie
>
> * Fairlight <fairlite@iglou.com> wrote:
>
>> Date: Wed, 3 Apr 2013 13:03:37 -0400
>> From: Fairlight <fairlite@iglou.com>
>> To: dev@perl.apache.org
>> Subject: mod_perl2 on CentOS 6 compile issue
>> User-Agent: Mutt/1.5.21 (2010-09-15)
>>
>> I'm trying to compile mod_perl2 (v2.0.7 and have also tried the SVN tree)
>> on CentOS 6 64-bit against Perl 5.16.3 and Apache 2.2.24 (latest stable APR
>> and APR-util packages, as well). I keep hitting this error:
>>
>> 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/usr/local/lib/perl5/5.16.3/x86_64-linux/CORE -lperl -lnsl -ldl -lm
>> -lcrypt -lutil -lc \
>> -o mod_perl.so
>> /usr/bin/ld: /usr/local/lib/perl5/5.16.3/x86_64-linux/CORE/libperl.a(op.o):
>> relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a
>> shared object; recompile with -fPIC
>> /usr/local/lib/perl5/5.16.3/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 `/root/mod_perl-2.0.7/src/modules/perl'
>> make: *** [modperl_lib] Error 2
>>
>> I've revised the Makefile in the appropriate directory to do the final link
>> with -fPIC, and it -still- comes up with the same error.
>>
>> I'm migrating from a CentOS 5 box, and have never had troubles compiling
>> mod_perl before.
>>
>> The libperl.a -will- respond to an `nm -s`, so I'm not sure exactly what
>> the problem is.
>>
>> Both the official stable version and the SVN tree react identically.
>>
>> Could I please get some assistance in getting this compile working. It's
>> just about the last step in my [forced, time-constrained] VPS migration.
>>
>> Thanks!
>>
>> mark->
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
>> For additional commands, e-mail: dev-help@perl.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> For additional commands, e-mail: dev-help@perl.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_perl2 on CentOS 6 compile issue [ In reply to ]
Hi Fred

Sorry, my mistake, for I thought it was thinking 2.4.4!

Regards,

Jie Gao | Systems Administrator
Information and Communications Technology

THE UNIVERSITY OF SYDNEY
316 Abercrombie Street Building G17 | The University of Sydney | NSW | 2006

T +61 2 8627 7824 | E j.gao@sydney.edu.au | W http://sydney.edu.au/ict/

CRICOS 00026A
This email plus any attachments to it are confidential. Any unauthorised
use is strictly prohibited. If you receive this email in error, please
delete it and any attachments.

Please think of our environment and only print this e-mail if necessary.

* Fred Moyer <fred@redhotpenguin.com> wrote:

> Date: Wed, 3 Apr 2013 20:53:06 -0700
> From: Fred Moyer <fred@redhotpenguin.com>
> To: Jie Gao <J.Gao@sydney.edu.au>
> CC: Fairlight <fairlite@iglou.com>, dev@perl.apache.org
> Subject: Re: mod_perl2 on CentOS 6 compile issue
>
> On Wed, Apr 3, 2013 at 8:42 PM, Jie Gao <J.Gao@sydney.edu.au> wrote:
> > There is currently no mod_perl release that's compatible with Apache
> > 2.2.24 yet.
>
> I built 5.14.12/2.2.24/2.08-dev yesterday on a Centos 6.2 box.
>
> Thinking Perl needs to be recompiled with -fPIC. Your httpd loads a
> certain mod_perl via PerlRequire in httpd.conf, which grabs the
> appropriate mod_perl.so, which is linked to the version of Perl it was
> compiled with. If you get undefined symbol errors, you probably need
> to recompile your httpd, but I've seen this before and a Perl
> recompilation resolved the issue.
>
> Suggest trying with the 2.0.8 release candidate and reporting back on
> that email thread.
>
> http://people.apache.org/~phred/mod_perl-2.0.8-rc1.tar.gz
>
> >
> > However, the errors you are getting are not the typical ones that one
> > gets compiling with Apache 2.2.24.
> >
> > If you compile with an version of Apache lower than 2.2.24 and still have
> > problems, you should follow the procedures as below:
> >
> > http://perl.apache.org/docs/2.0/user/help/help.html#Reporting_Problems
> >
> >
> > Regards,
> >
> > Jie
> >
> > * Fairlight <fairlite@iglou.com> wrote:
> >
> >> Date: Wed, 3 Apr 2013 13:03:37 -0400
> >> From: Fairlight <fairlite@iglou.com>
> >> To: dev@perl.apache.org
> >> Subject: mod_perl2 on CentOS 6 compile issue
> >> User-Agent: Mutt/1.5.21 (2010-09-15)
> >>
> >> I'm trying to compile mod_perl2 (v2.0.7 and have also tried the SVN tree)
> >> on CentOS 6 64-bit against Perl 5.16.3 and Apache 2.2.24 (latest stable APR
> >> and APR-util packages, as well). I keep hitting this error:
> >>
> >> 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/usr/local/lib/perl5/5.16.3/x86_64-linux/CORE -lperl -lnsl -ldl -lm
> >> -lcrypt -lutil -lc \
> >> -o mod_perl.so
> >> /usr/bin/ld: /usr/local/lib/perl5/5.16.3/x86_64-linux/CORE/libperl.a(op.o):
> >> relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a
> >> shared object; recompile with -fPIC
> >> /usr/local/lib/perl5/5.16.3/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 `/root/mod_perl-2.0.7/src/modules/perl'
> >> make: *** [modperl_lib] Error 2
> >>
> >> I've revised the Makefile in the appropriate directory to do the final link
> >> with -fPIC, and it -still- comes up with the same error.
> >>
> >> I'm migrating from a CentOS 5 box, and have never had troubles compiling
> >> mod_perl before.
> >>
> >> The libperl.a -will- respond to an `nm -s`, so I'm not sure exactly what
> >> the problem is.
> >>
> >> Both the official stable version and the SVN tree react identically.
> >>
> >> Could I please get some assistance in getting this compile working. It's
> >> just about the last step in my [forced, time-constrained] VPS migration.
> >>
> >> Thanks!
> >>
> >> mark->
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> >> For additional commands, e-mail: dev-help@perl.apache.org
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
> > For additional commands, e-mail: dev-help@perl.apache.org
> >

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: mod_perl2 on CentOS 6 compile issue [ In reply to ]
On Wed, Apr 03, 2013 at 08:53:06PM -0700, Fred Moyer thus spoke:
> On Wed, Apr 3, 2013 at 8:42 PM, Jie Gao <J.Gao@sydney.edu.au> wrote:
> > There is currently no mod_perl release that's compatible with Apache
> > 2.2.24 yet.
>
> I built 5.14.12/2.2.24/2.08-dev yesterday on a Centos 6.2 box.
>
> Thinking Perl needs to be recompiled with -fPIC. Your httpd loads a
> certain mod_perl via PerlRequire in httpd.conf, which grabs the
> appropriate mod_perl.so, which is linked to the version of Perl it was
> compiled with. If you get undefined symbol errors, you probably need
> to recompile your httpd, but I've seen this before and a Perl
> recompilation resolved the issue.

Indeed, recompiling perl with -fPIC fixed the issue. The rest of the
(TONNES of) modules I had installed seem to work yet, too. Which is good.
You have any idea how many modules MojoMojo alone uses? :)

The instructions about -fPIC really need to be more clear. I thought it
was saying recompile mod_perl2 with that option, not perl itself. Glad
someone knew!

Thank you for the quick and accurate help!!!

Bests!

mark->

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org