Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 550244 - www-apache/mod_perl: miscompilation w/gcc-5
Summary: www-apache/mod_perl: miscompilation w/gcc-5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL: http://pkgs.fedoraproject.org/cgit/mo...
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-5
  Show dependency tree
 
Reported: 2015-05-23 16:11 UTC by SpanKY
Modified: 2015-05-24 02:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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