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

Bug 712694

Summary: net-analyzer/dhcpdump-1.8 : dhcpdump.c: error: struct udphdr has no member named len
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: netmon
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: mixed kernel/userspace headers?
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
net-analyzer:dhcpdump-1.8:20200315-122654.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-15 12:54:46 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_STRSEP -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c -o dhcpdump.o dhcpdump.c
dhcpdump.c: In function pcap_callback:
dhcpdump.c:169:58: error: struct udphdr has no member named len
  169 |  if (hmask && check_ch((u_char *)(sp + offset), ntohs(udp->len)))
      |                                                          ^~
dhcpdump.c:172:46: error: struct udphdr has no member named len

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.2.0 *
 [2] 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-bin-1.41.1
  [2]   rust-1.41.1 *
The following VMs are available for generation-2:

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Sun, 15 Mar 2020 11:38:50 +0000
emerge -qpvO net-analyzer/dhcpdump
[ebuild  N    ] net-analyzer/dhcpdump-1.8
Comment 1 Toralf Förster gentoo-dev 2020-03-15 12:54:49 UTC
Created attachment 619766 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-15 12:54:52 UTC
Created attachment 619768 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-15 12:54:54 UTC
Created attachment 619770 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-15 12:54:57 UTC
Created attachment 619772 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-15 12:55:00 UTC
Created attachment 619774 [details]
net-analyzer:dhcpdump-1.8:20200315-122654.log
Comment 6 Toralf Förster gentoo-dev 2020-03-15 12:55:03 UTC
Created attachment 619776 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-16 14:29:34 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 Toralf Förster gentoo-dev 2020-03-16 16:12:27 UTC
The first attempt to tinderbox a musl image failed at all.

I'll mass close therefore all filed bug reports of the last days related to this tinderbox image.

Please feel free to re-open if you think that the bug is real in musl and not fixed by the musl overlay.