Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582368 - 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'
Summary: net-analyzer/net-snmp-5.7.3-r4 with dev-lang/perl-5.24.0 - ../include/net-snm...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL: http://www.nntp.perl.org/group/perl.p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-07 19:38 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2016-11-05 19:15 UTC (History)
7 users (show)

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


Attachments
emerge --info (einfo,8.31 KB, text/plain)
2016-05-07 19:38 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
Remove U64 typedef (net-snmp-5.7.3-perl524.patch,91.73 KB, patch)
2016-05-15 20:29 UTC, Andreas K. Hüttel
Details | Diff
patch 2 for Perl 5.24 (net-snmp-5.7.3-perl524-2.patch,2.13 KB, patch)
2016-05-15 20:29 UTC, Andreas K. Hüttel
Details | Diff

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