Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701976 - net-firewall/nftables-0.9.3 : netlink.c:423:38: error: NFTNL_CHAIN_DEVICES undeclared (first use in this function)
Summary: net-firewall/nftables-0.9.3 : netlink.c:423:38: error: NFTNL_CHAIN_DEVICES un...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-12-04 17:16 UTC by Toralf Förster
Modified: 2019-12-05 02:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.12 KB, text/plain)
2019-12-04 17:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,270.64 KB, text/plain)
2019-12-04 17:16 UTC, Toralf Förster
Details
environment (environment,135.88 KB, text/plain)
2019-12-04 17:16 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,16.07 KB, application/x-bzip)
2019-12-04 17:16 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,18.75 KB, application/x-bzip)
2019-12-04 17:16 UTC, Toralf Förster
Details
net-firewall:nftables-0.9.3:20191204-003456.log (net-firewall:nftables-0.9.3:20191204-003456.log,30.66 KB, text/plain)
2019-12-04 17:16 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,35.42 KB, application/x-bzip)
2019-12-04 17:17 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-12-04 17:16:42 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DDEFAULT_INCLUDE_PATH=\"/etc\" -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wdeclaration-after-statement -Wsign-compare -Winit-self -Wformat-nonliteral -Wformat-security -Wmissing-format-attribute -Wcast-align -Wundef -Wbad-function-cast -Waggregate-return -Wunused -Wwrite-strings -fvisibility=hidden -O2 -pipe -march=native -c netlink.c  -fPIC -DPIC -o .libs/netlink.o
netlink.c: In function ‘netlink_delinearize_chain’:
netlink.c:423:38: error: ‘NFTNL_CHAIN_DEVICES’ undeclared (first use in this function); did you mean ‘NFTNL_CHAIN_DEV’?
  423 |   } else if (nftnl_chain_is_set(nlc, NFTNL_CHAIN_DEVICES)) {
      |                                      ^~~~~~~~~~~~~~~~~~~
      |                                      NFTNL_CHAIN_DEV

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no-multilib-20191128-123931

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

clang:
clang version 9.0.0 (tags/RELEASE_900/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/9/bin
llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.39.0 *



repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 04 Dec 2019 00:06:32 +0000

emerge -qpvO net-firewall/nftables
[ebuild     U ] net-firewall/nftables-0.9.3 [0.9.2-r1] USE="doc gmp modern-kernel%* readline -debug -json -python -static-libs -xtables (-modern_kernel%*)" PYTHON_TARGETS="python3_6 -python3_5 -python3_7"
Comment 1 Toralf Förster gentoo-dev 2019-12-04 17:16:44 UTC
Created attachment 598428 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-12-04 17:16:47 UTC
Created attachment 598430 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-12-04 17:16:50 UTC
Created attachment 598432 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-12-04 17:16:53 UTC
Created attachment 598434 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-12-04 17:16:56 UTC
Created attachment 598436 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-12-04 17:16:59 UTC
Created attachment 598438 [details]
net-firewall:nftables-0.9.3:20191204-003456.log
Comment 7 Toralf Förster gentoo-dev 2019-12-04 17:17:01 UTC
Created attachment 598440 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2019-12-05 02:19:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2bce2a7f66efe4b6152e4d0cbefd5fe148e5deec

commit 2bce2a7f66efe4b6152e4d0cbefd5fe148e5deec
Author:     Francisco Blas (klondike) Izquierdo Riera <klondike@gentoo.org>
AuthorDate: 2019-12-05 02:09:51 +0000
Commit:     Matthew Thode <prometheanfire@gentoo.org>
CommitDate: 2019-12-05 02:19:38 +0000

    net-firewall/nftables: Depend on >=net-libs/libnftnl-1.1.5
    
    Although upstreams reports that nftables 0.9.3 depends on
    libnftnl 1.1.4 or higher. Using said version results on the
    following errors:
    netlink.c: In function ‘netlink_delinearize_chain’:
    netlink.c:423:38: error: ‘NFTNL_CHAIN_DEVICES’ undeclared
    (first use in this function); did you mean ‘NFTNL_CHAIN_DEV’?
       } else if (nftnl_chain_is_set(nlc, NFTNL_CHAIN_DEVICES)) {
                                          ^~~~~~~~~~~~~~~~~~~
                                          NFTNL_CHAIN_DEV
    netlink.c:423:38: note: each undeclared identifier is reported
    only once for each function it appears in
    netlink.c: In function ‘netlink_delinearize_obj’:
    netlink.c:1049:27: error: ‘NFTNL_OBJ_SYNPROXY_MSS’ undeclared
    (first use in this function); did you mean ‘NFTNL_EXPR_SYNPROXY_MSS’?
        nftnl_obj_get_u16(nlo, NFTNL_OBJ_SYNPROXY_MSS);
                               ^~~~~~~~~~~~~~~~~~~~~~
                               NFTNL_EXPR_SYNPROXY_MSS
    netlink.c:1051:26: error: ‘NFTNL_OBJ_SYNPROXY_WSCALE’ undeclared
    (first use in this function); did you mean ‘NFTNL_EXPR_SYNPROXY_WSCALE’?
        nftnl_obj_get_u8(nlo, NFTNL_OBJ_SYNPROXY_WSCALE);
                              ^~~~~~~~~~~~~~~~~~~~~~~~~
                              NFTNL_EXPR_SYNPROXY_WSCALE
    netlink.c:1053:27: error: ‘NFTNL_OBJ_SYNPROXY_FLAGS’ undeclared (first
    use in this function); did you mean ‘NFTNL_EXPR_SYNPROXY_FLAGS’?
        nftnl_obj_get_u32(nlo, NFTNL_OBJ_SYNPROXY_FLAGS);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
                               NFTNL_EXPR_SYNPROXY_FLAGS
    netlink.c: In function ‘netlink_delinearize_flowtable’:
    netlink.c:1137:3: warning: implicit declaration of function
    ‘nftnl_flowtable_get_u64’; did you mean ‘nftnl_flowtable_get_u32’?
    [-Wimplicit-function-declaration]
       nftnl_flowtable_get_u64(nlo, NFTNL_FLOWTABLE_HANDLE);
       ^~~~~~~~~~~~~~~~~~~~~~~
       nftnl_flowtable_get_u32
    netlink.c:1137:32: error: ‘NFTNL_FLOWTABLE_HANDLE’ undeclared (first
    use in this function); did you mean ‘NFTA_FLOWTABLE_HANDLE’?
       nftnl_flowtable_get_u64(nlo, NFTNL_FLOWTABLE_HANDLE);
                                    ^~~~~~~~~~~~~~~~~~~~~~
                                    NFTA_FLOWTABLE_HANDLE
    
    Depend instead on version 1.1.5 or higher with which the
    compilation suceeds.
    
    Closes: https://bugs.gentoo.org/701976
    Signed-off-by: Francisco Blas Izquierdo Riera (klondike) <klondike@gentoo.org>
    Package-Manager: Portage-2.3.76, Repoman-2.3.11
    Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>

 net-firewall/nftables/nftables-0.9.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 9 Francisco Blas Izquierdo Riera (RETIRED) gentoo-dev 2019-12-05 02:30:11 UTC
Just for the record, I have contacted Pablo about this. The issue is caused by using libnftnl 1.1.4 as stated by the release notes, and is solved when using 1.1.5.

Hopefully the new -r1 version will solve the problem for you Toralf.