In file included from libnfnetlink.c:40:
/usr/include/linux/netlink.h:22: error: syntax error before "__u32"
/usr/include/linux/netlink.h:28: error: syntax error before "__u32"
/usr/include/linux/netlink.h:30: error: syntax error before "nlmsg_flags"
/usr/include/linux/netlink.h:31: error: syntax error before "nlmsg_seq"
/usr/include/linux/netlink.h:32: error: syntax error before "nlmsg_pid"
/usr/include/linux/netlink.h:82: error: field `msg' has incomplete type
In file included from libnfnetlink.c:42:
../include/libnfnetlink/libnfnetlink.h:36: error: field `nlh' has
incomplete type
libnfnetlink.c:73: error: field `local' has incomplete type
libnfnetlink.c:74: error: field `peer' has incomplete type
libnfnetlink.c: In function `nfnl_dump_packet':
libnfnetlink.c:84: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:85: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:86: error: dereferencing pointer to incomplete type
libnfnetlink.c:86: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:96: error: dereferencing pointer to incomplete type
libnfnetlink.c:96: error: dereferencing pointer to incomplete type
libnfnetlink.c:97: error: dereferencing pointer to incomplete type
libnfnetlink.c:97: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_send':
libnfnetlink.c:288: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_fill_hdr':
libnfnetlink.c:337: error: dereferencing pointer to incomplete type
libnfnetlink.c:339: error: dereferencing pointer to incomplete type
libnfnetlink.c:339: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:340: error: dereferencing pointer to incomplete type
libnfnetlink.c:341: error: dereferencing pointer to incomplete type
libnfnetlink.c:342: error: dereferencing pointer to incomplete type
libnfnetlink.c:343: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_parse_hdr':
libnfnetlink.c:355: error: dereferencing pointer to incomplete type
libnfnetlink.c:355: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:358: error: dereferencing pointer to incomplete type
libnfnetlink.c:358: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:367: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c: In function `nfnl_recv':
libnfnetlink.c:376: error: storage size of 'peer' isn't known
libnfnetlink.c:379: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:395: error: dereferencing pointer to incomplete type
libnfnetlink.c:376: warning: unused variable `peer'
libnfnetlink.c: In function `nfnl_listen':
libnfnetlink.c:422: error: storage size of 'nladdr' isn't known
libnfnetlink.c:465: error: dereferencing pointer to incomplete type
libnfnetlink.c:467: error: dereferencing pointer to incomplete type
libnfnetlink.c:468: error: dereferencing pointer to incomplete type
libnfnetlink.c:480: error: dereferencing pointer to incomplete type
libnfnetlink.c:485: error: dereferencing pointer to incomplete type
libnfnetlink.c:486: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:422: warning: unused variable `nladdr'
libnfnetlink.c: In function `nfnl_talk':
libnfnetlink.c:519: error: storage size of 'nladdr' isn't known
libnfnetlink.c:524: error: dereferencing pointer to incomplete type
libnfnetlink.c:538: error: dereferencing pointer to incomplete type
libnfnetlink.c:541: error: dereferencing pointer to incomplete type
libnfnetlink.c:569: error: dereferencing pointer to incomplete type
libnfnetlink.c:570: error: dereferencing pointer to incomplete type
libnfnetlink.c:571: error: dereferencing pointer to incomplete type
libnfnetlink.c:583: error: dereferencing pointer to incomplete type
libnfnetlink.c:584: error: dereferencing pointer to incomplete type
libnfnetlink.c:593: error: dereferencing pointer to incomplete type
libnfnetlink.c:594: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:601: error: dereferencing pointer to incomplete type
libnfnetlink.c:609: error: dereferencing pointer to incomplete type
libnfnetlink.c:519: warning: unused variable `nladdr'
libnfnetlink.c: In function `nfnl_addattr_l':
libnfnetlink.c:645: error: dereferencing pointer to incomplete type
libnfnetlink.c:646: error: dereferencing pointer to incomplete type
libnfnetlink.c:651: error: dereferencing pointer to incomplete type
libnfnetlink.c:655: error: dereferencing pointer to incomplete type
libnfnetlink.c:655: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_get_msg_first':
libnfnetlink.c:829: error: dereferencing pointer to incomplete type
libnfnetlink.c:829: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:829: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_get_msg_next':
libnfnetlink.c:853: error: dereferencing pointer to incomplete type
libnfnetlink.c:854: error: dereferencing pointer to incomplete type
libnfnetlink.c:862: error: dereferencing pointer to incomplete type
libnfnetlink.c:862: error: dereferencing pointer to incomplete type
libnfnetlink.c:862: warning: left-hand operand of comma expression has
no effect
libnfnetlink.c:864: error: dereferencing pointer to incomplete type
libnfnetlink.c:864: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:864: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `nfnl_check_attributes':
libnfnetlink.c:900: error: dereferencing pointer to incomplete type
libnfnetlink.c:901: error: dereferencing pointer to incomplete type
libnfnetlink.c:917: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:918: error: dereferencing pointer to incomplete type
libnfnetlink.c:923: error: dereferencing pointer to incomplete type
libnfnetlink.c:924: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:925: error: dereferencing pointer to incomplete type
libnfnetlink.c: In function `__nfnl_handle_msg':
libnfnetlink.c:950: error: dereferencing pointer to incomplete type
libnfnetlink.c:951: error: dereferencing pointer to incomplete type
libnfnetlink.c:959: error: dereferencing pointer to incomplete type
libnfnetlink.c:959: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c: In function `nfnl_handle_packet':
libnfnetlink.c:980: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:984: error: dereferencing pointer to incomplete type
libnfnetlink.c:985: error: invalid application of `sizeof' to
incomplete type `nlmsghdr'
libnfnetlink.c:985: error: dereferencing pointer to incomplete type
libnfnetlink.c:988: error: dereferencing pointer to incomplete type
make[1]: *** [libnfnetlink.lo] Error 1
make[1]: Leaving directory `/root/Desktop/libnfnetlink-0.0.16/src'
make: *** [all-recursive] Error 1