#19889: build error / musl / libnetfilter_queue
--------------------------------------+------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: high | Milestone:
Component: base system | Version: Trunk
Keywords: musl, libnetfilter_queue |
--------------------------------------+------------------------
latest trunk r46020 fails building with this error:
make[4]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_musl-1.1.10/libnetfilter_queue-1.0.2'
make all-recursive
make[5]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_musl-1.1.10/libnetfilter_queue-1.0.2'
Making all in src
make[6]: Entering directory `/mnt/storage/openwrt-cc/trunk/build_dir
/target-mips_34kc_musl-1.1.10/libnetfilter_queue-1.0.2/src'
CC extra/tcp.lo
extra/tcp.c: In function 'nfq_tcp_get_payload':
extra/tcp.c:62:26: error: 'struct tcphdr' has no member named 'doff'
unsigned int doff = tcph->doff * 4;
^
extra/tcp.c: In function 'nfq_tcp_compute_checksum_ipv4':
extra/tcp.c:93:6: error: 'struct tcphdr' has no member named 'check'
tcph->check = 0;
^
extra/tcp.c:94:6: error: 'struct tcphdr' has no member named 'check'
tcph->check = checksum_tcpudp_ipv4(iph);
^
extra/tcp.c: In function 'nfq_tcp_compute_checksum_ipv6':
extra/tcp.c:107:6: error: 'struct tcphdr' has no member named 'check'
tcph->check = 0;
^
extra/tcp.c:108:6: error: 'struct tcphdr' has no member named 'check'
tcph->check = checksum_tcpudp_ipv6(ip6h, tcph);
^
extra/tcp.c: In function 'nfq_tcp_snprintf':
extra/tcp.c:140:14: error: 'const struct tcphdr' has no member named
'source'
ntohs(tcph->source), ntohs(tcph->dest),
^
extra/tcp.c:140:35: error: 'const struct tcphdr' has no member named
'dest'
ntohs(tcph->source), ntohs(tcph->dest),
^
extra/tcp.c:141:14: error: 'const struct tcphdr' has no member named 'seq'
ntohl(tcph->seq), ntohl(tcph->ack_seq),
^
extra/tcp.c:141:32: error: 'const struct tcphdr' has no member named
'ack_seq'
ntohl(tcph->seq), ntohl(tcph->ack_seq),
^
extra/tcp.c:142:14: error: 'const struct tcphdr' has no member named
'window'
ntohs(tcph->window),
^
extra/tcp.c:147:10: error: 'const struct tcphdr' has no member named 'urg'
if (tcph->urg) {
^
extra/tcp.c:151:10: error: 'const struct tcphdr' has no member named 'ack'
if (tcph->ack) {
^
extra/tcp.c:155:10: error: 'const struct tcphdr' has no member named 'psh'
if (tcph->psh) {
^
extra/tcp.c:159:10: error: 'const struct tcphdr' has no member named 'rst'
if (tcph->rst) {
^
extra/tcp.c:163:10: error: 'const struct tcphdr' has no member named 'syn'
if (tcph->syn) {
^
extra/tcp.c:167:10: error: 'const struct tcphdr' has no member named 'fin'
if (tcph->fin) {
^
extra/tcp.c: In function 'nfq_tcp_mangle_ipv4':
extra/tcp.c:198:43: error: 'struct tcphdr' has no member named 'doff'
if (!nfq_ip_mangle(pkt, iph->ihl*4 + tcph->doff*4,
^
make[6]: *** [extra/tcp.lo] Error 1
--
Ticket URL: <https://dev.openwrt.org/ticket/19889>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets