[Bug 914] New: nft configure does not use --prefix as include/lib search path

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Sun Apr 13 09:34:28 CEST 2014


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

           Summary: nft configure does not use --prefix as include/lib
                    search path
           Product: nftables
           Version: unspecified
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: nft
        AssignedTo: pablo at netfilter.org
        ReportedBy: laurent at guerby.net
   Estimated Hours: 0.0


After compiling and installing libmnl and libnftnl in /root/test I tried nft :

$ ./configure --prefix=/root/test
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for a BSD-compatible install... /usr/bin/install -c
checking for a sed that does not truncate output... /bin/sed
checking for docbook2x-man... n
configure: WARNING: docbookx2-man not found, no manpages will be built
checking for db2pdf... n
configure: WARNING: db2pdf not found, no PDF manpages will be built
checking for flex... /usr/bin/flex
checking for bison... /usr/bin/bison
checking for mnl_socket_open in -lmnl... yes
checking for nft_rule_alloc in -lnftnl... no
configure: error: No suitable version of libnftnl found

$ ls -l /root/test/lib
total 592
-rwxr-xr-x 1 root root    919 Apr 13 03:01 libmnl.la
lrwxrwxrwx 1 root root     15 Apr 13 03:01 libmnl.so -> libmnl.so.0.1.0
lrwxrwxrwx 1 root root     15 Apr 13 03:01 libmnl.so.0 -> libmnl.so.0.1.0
-rwxr-xr-x 1 root root  65436 Apr 13 03:01 libmnl.so.0.1.0
-rwxr-xr-x 1 root root    937 Apr 13 03:07 libnftnl.la
lrwxrwxrwx 1 root root     17 Apr 13 03:07 libnftnl.so -> libnftnl.so.0.1.0
lrwxrwxrwx 1 root root     17 Apr 13 03:07 libnftnl.so.0 -> libnftnl.so.0.1.0
-rwxr-xr-x 1 root root 525452 Apr 13 03:07 libnftnl.so.0.1.0
drwxr-xr-x 2 root root   4096 Apr 13 03:07 pkgconfig

I had to explicitely define CFLAGS and LDFLAGS to make it work:

$ export CFLAGS=-I/root/test/include
$ export LDFLAGS=-L/root/test/lib
$ ./configure --prefix=/root/test
...
configure: creating ./config.status
config.status: creating Makefile
....
$ make
...

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