FS#9928 - mod_perl has wrong @INC with perl 5.10

Attached to Project: Arch Linux
Opened by Andrea Benazzo (benazzo) - Monday, 24 March 2008, 09:18 GMT
Last edited by Greg (dolby) - Tuesday, 17 June 2008, 20:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Kevin Piche (kpiche)
Architecture All
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

I've just upgraded to perl 5.10 and the lib.pm module is not available anymore to mod_perl.

Here is the relevant part taken from the error_log of apache:


[Sun Mar 23 19:09:07 2008] [error] Can't locate lib.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /etc/httpd) at /home/andy/public_html/twiki/tools/mod_perl_startup.pl line 2.\nBEGIN failed--compilation aborted at /home/andy/public_html/twiki/tools/mod_perl_startup.pl line 2.\nCompilation failed in require at (eval 2) line 1.\n


while the mod_perl_startup.pl is the following:

$ENV{MOD_PERL} =~ /mod_perl/ or die "mod_perl_startup called, but mod_perl not used!";
use lib qw( /home/andy/public_html/twiki/bin /home/andy/public_html/twiki/lib /home/andy/public_html/twiki/lib/CPAN/lib);
require 'setlib.cfg';
1;
This task depends upon

Closed by  Greg (dolby)
Tuesday, 17 June 2008, 20:51 GMT
Reason for closing:  Fixed
Comment by Kevin Piche (kpiche) - Tuesday, 25 March 2008, 03:11 GMT
mod_perl 2.0.3 does not build under perl 5.10.0. Some internals have changed which prevents mod_perl from working. Waiting for a new release of mod_perl is required.
Comment by Andrea Benazzo (benazzo) - Friday, 28 March 2008, 10:34 GMT
I've just published in AUR the svn snapshot of mod_perl, which correctly works with perl 5.10.0.
Comment by Georg Grabler (STiAT) - Friday, 18 April 2008, 10:06 GMT
mod_perl 2.0.4 was released (16th of april 2008) by apache.org
http://perl.apache.org
download:
http://perl.apache.org/dist/mod_perl-2.0.4.tar.gz

// STi
Comment by Dan Stephenson (ispyhumanfly) - Friday, 02 May 2008, 15:37 GMT
Yes, it's clear that @INC currently points to the old Archlinux Perl schema ( 5.8.8 ). In order to fix it, I install using, cpanp -i mod_perl2 then point the installation directly to /usr/sbin/apxs for apache specific directives.
Comment by Glenn Matthys (RedShift) - Tuesday, 17 June 2008, 18:29 GMT
Is this fixed by mod_perl 2.0.4 in extra?

Loading...