#19889: build error / musl / libnetfilter_queue
--------------------------+--------------------------------------
Reporter: anonymous | Owner: developers
Type: defect | Status: new
Priority: high | Milestone:
Component: base system | Version: Trunk
Resolution: | Keywords: musl, libnetfilter_queue
--------------------------+--------------------------------------
Comment (by toofishes):
It looks like musl guards all these fields in the `netinet/tcp.h` header
file with `_GNU_SOURCE`.
This is definitely not the preferred fix, but I was able to get this
package building by tweaking the Makefile slightly:
{{{
diff --git a/libs/libnetfilter-queue/Makefile b/libs/libnetfilter-
queue/Makefile
index e979340..aa20fe9 100644
--- a/libs/libnetfilter-queue/Makefile
+++ b/libs/libnetfilter-queue/Makefile
@@ -40,7 +40,7 @@ define Package/libnetfilter-queue/description
that have been queued by the kernel packet filter.
endef
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -D_GNU_SOURCE
CONFIGURE_ARGS += \
--enable-static \
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/19889#comment:1>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets