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

Bug 715454

Summary: net-misc/etherdfs-20180203 : /.../if_ether.h: error: redefinition of struct ethhdr
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Conrad Kostecki <conikost>
Status: RESOLVED FIXED    
Severity: normal CC: conikost
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: mixed kernel/userspace headers?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-misc:etherdfs-20180203:20200330-131307.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-30 15:00:13 UTC
In file included from /usr/include/net/ethernet.h:10,
                 from ethersrv-linux.c:37:
/usr/include/netinet/if_ether.h:113:8: error: redefinition of struct ethhdr
  113 | struct ethhdr {
      |        ^~~~~~
In file included from ethersrv-linux.c:34:

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

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

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

  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	Mon Mar 30 12:38:57 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO net-misc/etherdfs
[ebuild  N    ] net-misc/etherdfs-20180203  USE="-tsr"
Comment 1 Toralf Förster gentoo-dev 2020-03-30 15:00:16 UTC
Created attachment 627354 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-30 15:00:18 UTC
Created attachment 627356 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-30 15:00:21 UTC
Created attachment 627358 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-30 15:00:24 UTC
Created attachment 627360 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-30 15:00:27 UTC
Created attachment 627362 [details]
net-misc:etherdfs-20180203:20200330-131307.log
Comment 6 Toralf Förster gentoo-dev 2020-03-30 15:00:29 UTC
Created attachment 627364 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-30 15:30:28 UTC
musl upstream has a FAQ entry specifically for this error:
https://wiki.musl-libc.org/faq.html#Q:-Why-am-I-getting-

Suggested workarounds are in the FAQ.
Comment 8 Conrad Kostecki gentoo-dev 2020-05-25 11:19:48 UTC
What's the best way to test musl? Since I am not using it. A stage3 in a chroot?
Comment 9 Jory A. Pratt gentoo-dev 2020-05-25 12:26:42 UTC
(In reply to Conrad Kostecki from comment #8)
> What's the best way to test musl? Since I am not using it. A stage3 in a
> chroot?

A chroot will work fine. This is just a mismatch between the system headers and kernel headers.
Comment 10 Larry the Git Cow gentoo-dev 2020-08-27 18:20:31 UTC
The bug has been closed via the following commit(s):

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

commit a0aacafb66737245439ac8a2fa2d96b4b873f18f
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-08-27 18:18:18 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-08-27 18:18:32 +0000

    net-misc/etherdfs: fix compilation with musl
    
    Closes: https://bugs.gentoo.org/715454
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 net-misc/etherdfs/etherdfs-20180203-r1.ebuild        |  5 ++++-
 net-misc/etherdfs/files/etherdfs-20180203-musl.patch | 10 ++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)