[Bug 845] checking for LIBNFNETLINK... configure: error: Package requirements (libnfnetlink >= 0.0.41) were not met:

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Fri Aug 16 16:54:25 CEST 2013


--- Comment #7 from donnjohn at us.ibm.com 2013-08-16 16:54:25 CEST ---
Is this feature for 3.xx kernels only ? I am on 2.6.32 release. 

 I fixed the  /usr/include/linux/socket.h to include the following line:

#ifndef __kernel_sa_family_t
typedef unsigned short __kernel_sa_family_t;

And libmnl builds. 

I had to fix : 

config.status: executing libtool commands
Making install in src
make[1]: Entering directory `/root/ntest/libnetfilter_queue/src'
  CC     libnetfilter_queue.lo
libnetfilter_queue.c:908: warning: ‘nfq_set_verdict_mark’ is deprecated
(declared at libnetfilter_queue.c:901)
  CC     nlmsg.lo
  CC     extra/checksum.lo
  CC     extra/ipv6.lo
  CC     extra/tcp.lo
  CC     extra/ipv4.lo
extra/ipv4.c: In function ‘nfq_ip_snprintf’:
extra/ipv4.c:141: error: ‘tos’ undeclared (first use in this function)
extra/ipv4.c:141: error: (Each undeclared identifier is reported only once
extra/ipv4.c:141: error: for each function it appears in.)
make[1]: *** [extra/ipv4.lo] Error 1
make[1]: Leaving directory `/root/ntest/libnetfilter_queue/src'
make: *** [install-recursive] Error 1


        ret = snprintf(buf, size, "SRC=%s DST=%s LEN=%u TOS=0x%X "
                                  "PREC=0x%X TTL=%u ID=%u PROTO=%u ",
                        inet_ntoa(src), inet_ntoa(dst),
                        ntohs(iph->tot_len), IPTOS_TOS(iph->tos),
                        IPTOS_PREC(iph->tos), iph->ttl, ntohs(iph->id),
        ret = snprintf(buf, size, "SRC=%s DST=%s LEN=%u "
                                  "TTL=%u ID=%u PROTO=%u ",
                        inet_ntoa(src), inet_ntoa(dst),
                        iph->ttl, ntohs(iph->id),

( I removed tos  reference )

Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the netfilter-buglog mailing list