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

Bug 582368

Summary: net-analyzer/net-snmp-5.7.3-r4 with dev-lang/perl-5.24.0 - ../include/net-snmp/library/int64.h:8:30: error: conflicting types for 'U64'
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: candrews, gentoo, holger, ikelos, klausman, perl, reuben-gentoo-bugzilla
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.nntp.perl.org/group/perl.perl5.porters/2016/02/msg234150.html
See Also: https://bugs.gentoo.org/show_bug.cgi?id=598030
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Remove U64 typedef
patch 2 for Perl 5.24

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2016-05-07 19:38:51 UTC
Created attachment 433546 [details]
emerge --info

Perl 5.24.0 is not yet in tree, but this issue cropped up in preparation.

../include/net-snmp/library/int64.h:8:30: error: conflicting types for 'U64'
     typedef struct counter64 U64;

Will probably affect other versions.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2016-05-07 23:13:33 UTC
I've changed the perl dep to <dev-lang/perl-5.24.0:=
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2016-05-15 20:28:16 UTC
Two patches are needed to build successfully on 5.24.0, will follow as attachments. Please consider a revbump where the perl dep is relaxed again. 

* patch 1: from net-snmp upstream git, removes the U64 definition that clashes with Perl

* patch 2: from freebsd, encapsulates the Makefile.pl files in the subdirectories so an ugly Perl bug is not triggered anymore (see links in the patch)
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2016-05-15 20:29:03 UTC
Created attachment 434368 [details, diff]
Remove U64 typedef
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2016-05-15 20:29:31 UTC
Created attachment 434370 [details, diff]
patch 2 for Perl 5.24
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-05-16 05:18:11 UTC
Comment on attachment 434370 [details, diff]
patch 2 for Perl 5.24

This patch lacks a description.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2016-05-16 11:40:58 UTC
(In reply to Jeroen Roovers from comment #5)
> Comment on attachment 434370 [details, diff] [details, diff]
> patch 2 for Perl 5.24
> 
> This patch lacks a description.

https://rt.perl.org/Public/Bug/Display.html?id=125907#txn-1363270
my best summary following ^ is:

Encapsulate subdirectory Makefile.pl files as separate packages, such that buggy behaviour in core perl is not hit (which leads to a Perl panic (abort due to caught freed-pointer access) since Perl 5.24.0).
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2016-05-21 01:16:40 UTC
This seems to be hitting ~arch users hard, and breaking the whole Perl dep resolution... Shout at me if you must.

commit bbb99092d27c92491db9f84b3ea34933a5bff2f1
Author: Andreas K. Hüttel <dilfridge@gentoo.org>
Date:   Sat May 21 03:14:59 2016 +0200

    net-analyzer/net-snmp: Add revbump with fixes for Perl 5.24, bug 582368
    
    Package-Manager: portage-2.3.0_rc1

 net-analyzer/net-snmp/Manifest                 |   2 ++
 net-analyzer/net-snmp/net-snmp-5.7.3-r5.ebuild | 192 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 194 insertions(+)