Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 536190 - net-firewall/nftables-0.4 - netlink.c:1053:31: error: ‘NFT_SET_ATTR_POLICY’ undeclared (first use in this function)
Summary: net-firewall/nftables-0.4 - netlink.c:1053:31: error: ‘NFT_SET_ATTR_POLICY’ u...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Manuel Rüger (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-10 11:17 UTC by Markus Rathgeb
Modified: 2015-10-06 14:33 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,18.84 KB, text/plain)
2015-01-10 11:18 UTC, Markus Rathgeb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rathgeb 2015-01-10 11:17:27 UTC
Cannot merge (compile) nftables v0.4 with gentoo-sources 3.17.2 caused by missing NFT_EXPR_LOG_LEVEL (and some more).

After updating the kernel to 3.18.2 and the linux-headers to v18 the undeclared NFT_EXPOR_LOG_LEVEL error is gone. But there are still some more undefined macros e.g. NFT_SET_ATTR_POLICY and NFT_SET_ATTR_DESC_SIZE (and some more).
The mailing list http://comments.gmane.org/gmane.comp.security.firewalls.netfilter.devel/54291 indicates that there is a patch for the new macros.

Perhaps nftables v0.4 should depend on a more recent kernel version (headers) that contains all that defines.



Reproducible: Always
Comment 1 Markus Rathgeb 2015-01-10 11:18:35 UTC
Created attachment 393598 [details]
build.log
Comment 2 Markus Rathgeb 2015-01-10 11:21:13 UTC
I grepped the include directory of tag 'v3.19-rc3' of repo 'https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git'.

git checkout v3.19-rc3
grep -r NFT_SET_ATTR_ include/
<nothing found>
Comment 3 Markus Rathgeb 2015-01-10 11:29:11 UTC
The problem is solved after updating net-libs/libnftnl from 1.0.2 to 1.0.3, too.

So, the dependencies should be changed to fit at least:
* sys-kernel/linux-headers-3.18
* net-libs/libnftnl-1.0.3

Is this correct or do I something completely wrong?
Comment 4 Markus Rathgeb 2015-01-11 12:43:26 UTC
Is the missing log level macro (NFT_EXPR_LOG_LEVEL) for <linux-headers-3.18 something that should be fixed, too?
Is this also solved using net-libs/libnftnl-1.0.3?
Comment 5 Sven 2015-02-07 23:34:46 UTC
nftables 0.4 emerged fine after an upgrade of libnftnl to 1.0.3. linux-headers remained at version 3.9. The actualy kernel in /usr/src/linux however is 3.18.x.
Comment 6 Ivan Leong 2015-02-28 15:18:37 UTC
nftables 0.4 emerged fine after an upgrade of libnftnl to 1.0.3 from 1.0.2. My linux-headers is version 3.16. The actualy kernel in /usr/src/linux however is 3.18.7.
Comment 7 Manuel Rüger (RETIRED) gentoo-dev 2015-10-06 13:26:59 UTC
Please test again with nftables-0.5
Comment 8 Markus Rathgeb 2015-10-06 14:33:56 UTC
WFM (merging)