dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/lib
Isaac 996b502961 FTBFS with musl libc: Missing includes
Hello,
libnl 3.2.9 does not build with musl libc, without patching.
I' using a current musl libc (http://www.etalabs.net/musl/)
with linux 2.6.32 headers.
At first there were a couple problems on the musl side, but those are
resolved.
However, I found some other issues:
First, two files were missing
#include <byteswap.h>:
lib/netfilter/log_msg.c
lib/netfilter/queue_msg.c
These files used __bswap_64 (which should be bswap_64), a macro
declared in byteswap.h

Second, I got this error after fixing that:

In file included from nf-queue.c:16:
./include/linux/netfilter.h:53: error: field in has incomplete type
./include/linux/netfilter.h:54: error: field in6 has incomplete type

I found that src/nf-queue.c is missing an
#include <netinet/in.h>

Attached is a patch which resolves these issues.  I've tested with both
musl and glibc, and it builds cleanly on both.
2012-05-13 11:18:28 +02:00
..
cli Support plug qdisc - queue traffic until explicit release 2012-02-14 12:02:04 +01:00
fib_lookup doc: documentation restructuring 2012-05-10 12:03:59 +02:00
genl doc: documentation restructuring 2012-05-10 12:03:59 +02:00
netfilter FTBFS with musl libc: Missing includes 2012-05-13 11:18:28 +02:00
route doc: documentation restructuring 2012-05-10 12:03:59 +02:00
.gitignore Build separate libraries for each netilnk family 2008-05-15 18:01:50 +02:00
Makefile.am Support plug qdisc - queue traffic until explicit release 2012-02-14 12:02:04 +01:00
addr.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
attr.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
cache.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
cache_mngr.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
cache_mngt.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
data.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
error.c Support for NLM_F_INTR 2011-07-14 10:51:49 +02:00
handlers.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
msg.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
nl.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
object.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
socket.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00
utils.c doc: documentation restructuring 2012-05-10 12:03:59 +02:00