[Bug 1230] New: checking for libmnl... no in cross-compile

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Thu Feb 22 03:28:37 CET 2018


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

            Bug ID: 1230
           Summary: checking for libmnl... no in cross-compile
           Product: iptables
           Version: 1.6.x
          Hardware: All
                OS: Ubuntu
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: iptables
          Assignee: netfilter-buglog at lists.netfilter.org
          Reporter: torque at gmail.com

Hi, I am trying to cross-compile iptables on Ubuntu for Raspberry Pi because I
need it to cross-compile miniupnpd. I realized that I also need libmnl so I
compiled and `make install` that. It is obviously present in my
/raspi/usr/include/libmnl and /raspi/usr/bin folders. I configured iptables
with

 ./configure --host=arm-linux-gnueabihf -prefix=/home/tim/raspi/usr
-exec-prefix=/home/tim/raspi/usr --with-tools=no --with-tests=no
--enable-static

this fails with 

checking for libmnl... no
*** Error: No suitable libmnl found. ***
    Please install the 'libmnl' package
    Or consider --disable-nftables to skip
    iptables-compat over nftables support.

but the check is not even compiling code, I think the check is checking the
pkg-config. 

configure:13029: checking for libmnl
configure:13036: $PKG_CONFIG --exists --print-errors "libmnl >= 1.0"
Package libmnl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmnl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmnl' found
configure:13039: $? = 1
configure:13053: $PKG_CONFIG --exists --print-errors "libmnl >= 1.0"
Package libmnl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libmnl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libmnl' found

I'm sure this is done all the time, so it might not be a real bug, just my
ignorance. But any assistance would be much appreciated.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20180222/dca3a05c/attachment.html>


More information about the netfilter-buglog mailing list