Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712456 - net-analyzer/hunt-1.5_p6_p1 : hunt.c: error: struct tcphdr has no member named source
Summary: net-analyzer/hunt-1.5_p6_p1 : hunt.c: error: struct tcphdr has no member name...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: mixed kernel/userspace headers?
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-14 09:40 UTC by Toralf Förster
Modified: 2020-04-02 15:06 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,15.10 KB, text/plain)
2020-03-14 09:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,41.83 KB, text/plain)
2020-03-14 09:40 UTC, Toralf Förster
Details
environment (environment,66.29 KB, text/plain)
2020-03-14 09:40 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.00 KB, application/x-bzip)
2020-03-14 09:40 UTC, Toralf Förster
Details
net-analyzer:hunt-1.5_p6_p1:20200314-020500.log (net-analyzer:hunt-1.5_p6_p1:20200314-020500.log,11.13 KB, text/plain)
2020-03-14 09:40 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,18.61 KB, application/x-bzip)
2020-03-14 09:41 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-14 09:40:43 UTC
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -Wall -D_REENTRANT -std=gnu89  -DSYNC_FAST  -c -o hunt.o hunt.c
hunt.c: In function fill_uci:
hunt.c:163:33: error: struct tcphdr has no member named source
  163 |  uci->src_port = p->p_hdr.p_tcph->source;
      |                                 ^~
hunt.c:164:33: error: struct tcphdr has no member named dest

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

  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-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Fri, 13 Mar 2020 23:39:58 +0000
emerge -qpvO net-analyzer/hunt
[ebuild  N    ] net-analyzer/hunt-1.5_p6_p1
Comment 1 Toralf Förster gentoo-dev 2020-03-14 09:40:47 UTC
Created attachment 618720 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-14 09:40:50 UTC
Created attachment 618722 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-14 09:40:52 UTC
Created attachment 618724 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-14 09:40:55 UTC
Created attachment 618726 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-14 09:40:58 UTC
Created attachment 618728 [details]
net-analyzer:hunt-1.5_p6_p1:20200314-020500.log
Comment 6 Toralf Förster gentoo-dev 2020-03-14 09:41:01 UTC
Created attachment 618730 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-16 14:28:01 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:43 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.