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

Bug 715994

Summary: net-analyzer/cutter-1.04 : /.../if_ether.h: error: redefinition of struct ethhdr
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: netmon
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-analyzer:cutter-1.04:20200403-053850.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-03 07:27:54 UTC
In file included from /usr/include/net/ethernet.h:10,
                 from cutter.c:50:
/usr/include/netinet/if_ether.h:113:8: error: redefinition of struct ethhdr
  113 | struct ethhdr {
      |        ^~~~~~
In file included from cutter.c:47:

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl_hardened-20200328-201618

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

  Please see the tracker bug for details.

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.42.0 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Fri Apr  3 04:37:44 UTC 2020
/var/db/repos/musl	Thu Apr  2 19:02:24 UTC 2020

emerge -qpvO net-analyzer/cutter
[ebuild  N    ] net-analyzer/cutter-1.04
Comment 1 Toralf Förster gentoo-dev 2020-04-03 07:27:57 UTC
Created attachment 629312 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-03 07:28:00 UTC
Created attachment 629314 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-03 07:28:02 UTC
Created attachment 629316 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-03 07:28:07 UTC
Created attachment 629318 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-03 07:28:09 UTC
Created attachment 629320 [details]
net-analyzer:cutter-1.04:20200403-053850.log
Comment 6 Toralf Förster gentoo-dev 2020-04-03 07:28:12 UTC
Created attachment 629322 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2021-12-30 09:47:56 UTC
The bug has been closed via the following commit(s):

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

commit 0cd78596917a0e12644793e8b5ba5f3da3d1e496
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-30 09:47:42 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-30 09:47:42 +0000

    net-analyzer/cutter: fix build on musl
    
    Closes: https://bugs.gentoo.org/715994
    Signed-off-by: Sam James <sam@gentoo.org>

 net-analyzer/cutter/cutter-1.04.ebuild                    |  1 +
 net-analyzer/cutter/files/cutter-1.04-musl-if-ether.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)