[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
Thu Aug 15 21:01:28 CEST 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=845

--- Comment #5 from donnjohn at us.ibm.com 2013-08-15 21:01:27 CEST ---
1. If I copy the pc file to /usr/share I get farther:

[root at RH63-x86 libnfnetlink]# cp /usr/local/lib/pkgconfig/libnfnetlink.pc
/usr/share/pkgconfig/

2. I get to this ./configure step:


checking pkg-config is at least version 0.9.0... yes
checking for LIBNFNETLINK... yes
checking for LIBMNL... configure: error: Package requirements (libmnl >= 1.0.3)
were not met:

No package 'libmnl' found

3. So I get libmnl:

[root at RH63-x86 ntest]# git clone git://git.netfilter.org/libmnl
Initialized empty Git repository in /root/ntest/libmnl/.git/
remote: Counting objects: 1060, done.
remote: Compressing objects: 100% (497/497), done.
remote: Total 1060 (delta 652), reused 882 (delta 549)
Receiving objects: 100% (1060/1060), 179.90 KiB | 63 KiB/s, done.

4. the ./autogen.sh and ./configure step finishes:

config.status: executing depfiles commands
config.status: executing libtool commands


5. libmnl build fails 

[root at RH63-x86 libmnl]# make install
Making install in src
make[1]: Entering directory `/root/ntest/libmnl/src'
  CC     socket.lo
In file included from ../include/libmnl/libmnl.h:9,
                 from socket.c:10:
../include/linux/netlink.h:35: error: expected specifier-qualifier-list before
‘__kernel_sa_family_t’
socket.c: In function ‘mnl_socket_get_portid’:
socket.c:102: error: ‘const struct sockaddr_nl’ has no member named ‘nl_pid’
socket.c: In function ‘mnl_socket_bind’:
socket.c:146: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’
socket.c:147: error: ‘struct sockaddr_nl’ has no member named ‘nl_groups’
socket.c:148: error: ‘struct sockaddr_nl’ has no member named ‘nl_pid’
socket.c:163: error: ‘struct sockaddr_nl’ has no member named ‘nl_family’
socket.c: In function ‘mnl_socket_sendto’:
socket.c:184: error: unknown field ‘nl_family’ specified in initializer
socket.c:185: warning: excess elements in struct initializer
socket.c:185: warning: (near initialization for ‘snl’)
make[1]: *** [socket.lo] Error 1
make[1]: Leaving directory `/root/ntest/libmnl/src'
make: *** [install-recursive] Error 1
[root at RH63-x86 libmnl]# ls
aclocal.m4   config.log     doxygen.cfg     libmnl.pc.in  Makefile.in
autogen.sh   config.status  doxygen.cfg.in  libtool       Make_global.am
build-aux    configure      examples        m4            README
config.h     configure.ac   include         Makefile      src
config.h.in  COPYING        libmnl.pc   


The platform is 2.6.32 RH.

-- 
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