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

Bug 661726

Summary: dev-perl/Net-Pcap-0.180.0 with net-libs/libpcap-1.9.0 - stubs.inc:357:8: error: redefinition of struct pcap_rmtauth
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED FIXED    
Severity: normal CC: hlein, ikelos, kentnl, leonik375
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://rt.cpan.org/Public/Bug/Display.html?id=127685
https://bugzilla.redhat.com/show_bug.cgi?id=1612860
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 661724    
Attachments: emerge-info.txt
dev-perl:Net-Pcap-0.180.0:20180721-094717.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2
Fix Net-Pcap compilation against libpcap 1.9.x

Description Toralf Förster gentoo-dev 2018-07-21 09:54:56 UTC
 #warning "the function pcap_open() is not available"
  ^~~~~~~
stubs.inc:357:8: error: redefinition of ‘struct pcap_rmtauth’
 struct pcap_rmtauth {
        ^~~~~~~~~~~~
In file included from /usr/include/pcap.h:43:0,

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib-hardened_test_20180718-175402

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)




emerge -qpv dev-perl/Net-Pcap
[ebuild  N    ] dev-perl/Net-Pcap-0.180.0  USE="-examples"
Comment 1 Toralf Förster gentoo-dev 2018-07-21 09:54:59 UTC
Created attachment 540324 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-07-21 09:55:02 UTC
Created attachment 540326 [details]
dev-perl:Net-Pcap-0.180.0:20180721-094717.log
Comment 3 Toralf Förster gentoo-dev 2018-07-21 09:55:05 UTC
Created attachment 540328 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-07-21 09:55:07 UTC
Created attachment 540330 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-07-21 09:55:10 UTC
Created attachment 540332 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-07-21 09:55:13 UTC
Created attachment 540334 [details]
temp.tbz2
Comment 7 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2018-07-21 09:57:50 UTC
Dat timing.
Comment 8 Hank Leininger 2019-01-20 00:03:15 UTC
Net::Pcap needs patches to compile against libpcap 1.9.x.  I found a patch at https://bugzilla.redhat.com/show_bug.cgi?id=1612860 that fixes building for me, I will attach it.
Comment 9 Hank Leininger 2019-01-20 00:03:52 UTC
Created attachment 562224 [details, diff]
Fix Net-Pcap compilation against libpcap 1.9.x
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2019-04-26 07:57:21 UTC
*** Bug 684344 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2019-08-24 11:53:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9af315c8c78839177c0bee41ad17d7a3600d4ab

commit e9af315c8c78839177c0bee41ad17d7a3600d4ab
Author:     Jeroen Roovers <jer@gentoo.org>
AuthorDate: 2019-08-24 11:49:47 +0000
Commit:     Jeroen Roovers <jer@gentoo.org>
CommitDate: 2019-08-24 11:53:07 +0000

    dev-perl/Net-Pcap: Fix building against net-libs/libpcap-1.9.0
    
    Package-Manager: Portage-2.3.72, Repoman-2.3.17
    Fixes: https://bugs.gentoo.org/661726
    Signed-off-by: Jeroen Roovers <jer@gentoo.org>

 dev-perl/Net-Pcap/Net-Pcap-0.180.0-r1.ebuild       | 34 ++++++++++++++++++
 .../files/Net-Pcap-0.18-libpcap-1.9.0.patch        | 41 ++++++++++++++++++++++
 2 files changed, 75 insertions(+)