Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 550244

Summary: www-apache/mod_perl: miscompilation w/gcc-5
Product: Gentoo Linux Reporter: SpanKY <vapier>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: idl0r
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://pkgs.fedoraproject.org/cgit/mod_perl.git/tree/mod_perl-2.0.4-inline.patch?h=f22
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=459351
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 915000, 536984    

Description SpanKY gentoo-dev 2015-05-23 16:11:10 UTC
when building mod_perl w/gcc-5, trying to load it fails:
apache2: Syntax error on line 148 of /etc/apache2/httpd.conf: Syntax error on line 2 of /etc/apache2/modules.d/75_mod_perl.conf: Cannot load modules/mod_perl.so into server: /usr/lib64/apache2/modules/mod_perl.so: undefined symbol: modperl_handler_name

this is because mod_perl has labeled that symbol inline even though it makes no sense at all -- it's defined in a .c file and other .c files are expected to call it.  it has no definition in the header file.

Fedora fixed it by disabling all of mod_perl's use of inline:
https://bugzilla.redhat.com/show_bug.cgi?id=459351
http://pkgs.fedoraproject.org/cgit/mod_perl.git/tree/mod_perl-2.0.4-inline.patch?h=f22

that patch fixes things for me
Comment 1 SpanKY gentoo-dev 2015-05-24 02:47:10 UTC
should be all set now in the tree

Commit message: Use inline patch from Fedora to fix build w/gcc-5
http://sources.gentoo.org/www-apache/mod_perl/files/mod_perl-2.0.4-inline.patch?rev=1.1
http://sources.gentoo.org/www-apache/mod_perl/mod_perl-2.0.8-r2.ebuild?rev=1.1