Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 712700 - net-firewall/pglinux-2.3.1_p20171006-r1 : src/pgld.c: error: struct tcphdr has no member named source
Summary: net-firewall/pglinux-2.3.1_p20171006-r1 : src/pgld.c: error: struct tcphdr ha...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard: mixed kernel/userspace headers?
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-15 14:11 UTC by Toralf Förster
Modified: 2022-01-31 09:49 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.54 KB, text/plain)
2020-03-15 14:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,131.97 KB, text/plain)
2020-03-15 14:11 UTC, Toralf Förster
Details
environment (environment,131.58 KB, text/plain)
2020-03-15 14:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.56 KB, application/x-bzip)
2020-03-15 14:11 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,10.68 KB, application/x-bzip)
2020-03-15 14:11 UTC, Toralf Förster
Details
net-firewall:pglinux-2.3.1_p20171006:20200315-130727.log (net-firewall:pglinux-2.3.1_p20171006:20200315-130727.log,18.49 KB, text/plain)
2020-03-15 14:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,35.42 KB, application/x-bzip)
2020-03-15 14:11 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-15 14:11:03 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I..  -DVERSION=\2.3.1+git\ -DPACKAGE_NAME=\pgl\  -DHAVE_ZLIB -DPIDFILE=\/var/run/pgld.pid\    -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -c -o src/pgld.o src/pgld.c
src/pgld.c: In function setipinfo:
src/pgld.c:358:67: error: struct tcphdr has no member named source
  358 |         sprintf(src, %u.%u.%u.%u:%u,NIPQUAD(ip->saddr),ntohs(tcp->source));
      |                                                                   ^~
src/pgld.c:359:67: 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-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-firewall/pglinux
[ebuild  N    ] net-firewall/pglinux-2.3.1_p20171006  USE="zlib -cron -dbus -logrotate -networkmanager -qt5"
Comment 1 Toralf Förster gentoo-dev 2020-03-15 14:11:06 UTC
Created attachment 619792 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-15 14:11:09 UTC
Created attachment 619794 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-15 14:11:12 UTC
Created attachment 619796 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-15 14:11:16 UTC
Created attachment 619798 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-15 14:11:19 UTC
Created attachment 619800 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-15 14:11:22 UTC
Created attachment 619802 [details]
net-firewall:pglinux-2.3.1_p20171006:20200315-130727.log
Comment 7 Toralf Förster gentoo-dev 2020-03-15 14:11:25 UTC
Created attachment 619804 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-16 14: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 9 Toralf Förster gentoo-dev 2020-03-16 16:12:15 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.
Comment 10 Agostino Sarubbo gentoo-dev 2022-01-31 09:49:33 UTC
tinderbox_musl has reproduced this issue with version 2.3.1_p20171006-r1 - Updating summary.