Re: Cannot get mod_perl 2.0.6 to compile with apache 2.2.22 under perl 5.16.0
Doug Hunt <[email protected]>
| Newsgroups | gmane.comp.apache.mod-perl |
|---|---|
| Message-ID | <[email protected]> |
Thanks, Alex! I figured that patch out separately by looking at perldelta for perl 5.16.0 right after I sent in the email. I've finally got mod_perl to build, but I had to also apply another patch (attached) to get it to work. There was a compile bug in modperl_exports.c in which 'modperl_thx_interp_set' and 'modperl_thx_interp_get' were not defined. I had to apply a similar patch several years ago when I last upgraded my mod_perl configuration. Regards, Doug Hunt [email protected] Software Engineer UCAR - COSMIC, Tel. (303) 497-2611 On Tue, 29 May 2012, Alex Hunsaker wrote: > On Tue, May 29, 2012 at 12:07 PM, Doug Hunt <[email protected]> wrote: >> Hi mod_perl list! >> >> I've been using Apache and mod_perl for a long time on our web site, but I'm >> having troubles getting it to compile under the most recent Apache, mod_perl >> and perl. >> >> I'm working under CentOS 6.2 on an x86_64 system. >> >> I'm trying to do a static Apache/mod_perl compile: > > Try with this patch: https://rt.cpan.org/Public/Bug/Display.html?id=77129 >
mod_perl_thx_interp_2012.patch
(text/x-diff, 628 B)
--- mod_perl-2.0.6/lib/ModPerl/WrapXS.pm.orig 2012-05-29 14:15:45.021241669 -0600
+++ mod_perl-2.0.6/lib/ModPerl/WrapXS.pm 2012-05-29 14:16:44.614201383 -0600
@@ -1382,6 +1382,7 @@
unless (Apache2::Build::PERL_HAS_ITHREADS) {
next if $entry->{name} =~ /^($ithreads_exports)/;
}
+ next if ($entry->{name} =~ /modperl_thx_interp/); # Do not generate modperl_thx_interp_set and modperl_thx_interp_get. Causes failure to build for CDAAC. D. Hunt 2010/11/02 and 2012/05/29
( my $name ) = $entry->{name} =~ /^modperl_(.*)/;
print $fh <<"EOF";
#ifndef modperl_$name