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

Bug 548294

Summary: dev-lang/perl-5.20.2 breaks with gcc-5
Product: Gentoo Linux Reporter: Martin Väth <martin>
Component: [OLD] GCC PortingAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Add option -P to cpp to fix compilation with gcc-5

Description Martin Väth 2015-05-01 06:14:09 UTC
Created attachment 402366 [details, diff]
Add option -P to cpp to fix compilation with gcc-5

Since -P is not passed to the cpp preprocessor in perl-5.20.2, errno constants are calculated false with gcc-5, causing e.g. Socket.pm to fail to compile with use strict;

The attached fix is a backport of the upstream fix
https://github.com/Perl/perl5/commit/3bea78d24634e630b610f59957e7a019205a67b2
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2015-05-01 06:20:35 UTC
This is a duplicate of bug #548094 , can you append your patch/comments there? Thanks =)

*** This bug has been marked as a duplicate of bug 548094 ***