Summary: | net-libs/libnftnl-1.2.3 fails tests on MUSL: nft-rule-add.c:112:21: error: struct tcphdr has no member named dest | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | musl |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 768464 [details]
build.log
build log and emerge --info
tinderbox_musl has reproduced this issue with version 1.2.3 - Updating summary. struct tcphdr comes from netinet/tcp.h. On musl, tcphdr.dest is hidden behind _GNU_SOURCE. On glibc, it is always available. I'm not sure if we need to fix libnftnl or musl here. (In reply to Mike Gilbert from comment #3) > struct tcphdr comes from netinet/tcp.h. > > On musl, tcphdr.dest is hidden behind _GNU_SOURCE. On glibc, it is always > available. > > I'm not sure if we need to fix libnftnl or musl here. netinet_tcp.h(0P) is very light on what netinet/tcp.h must provide, so I think it's right that it's guarded behind GNU_SOURCE. |