GNOME Bugzilla – Bug 720902
net-misc/networkmanager-0.9.8.8 with dev-libs/libnl-3.2.24_rc1 - nm-ip6-manager.c:1262:26: error: static declaration of 'link_policy' follows non-static declaration
Last modified: 2014-01-03 20:46:00 UTC
networkmanager-0.9.8.8 builds find against libnl-3.2.23 but not against libnl.3.2.24_rc1, gentoo bug report: https://bugs.gentoo.org/show_bug.cgi?id=494890 nm-ip6-manager.c:1262:26: error: static declaration of 'link_policy' follows non-static declaration static struct nla_policy link_policy[IFLA_MAX + 1] = { ^ In file included from /usr/include/libnl3/netlink/route/addr.h:20:0, from nm-ip6-manager.c:28: /usr/include/libnl3/netlink/route/link.h:101:26: note: previous declaration of 'link_policy' was here extern struct nla_policy link_policy[]; ^ Makefile:526: recipe for target 'libip6_manager_la-nm-ip6-manager.lo' failed make[4]: *** [libip6_manager_la-nm-ip6-manager.lo] Error 1 make[4]: Leaving directory '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/work/NetworkManager-0.9.8.8/src/ip6-manager' Makefile:1721: recipe for target 'all-recursive' failed make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/work/NetworkManager-0.9.8.8/src' Makefile:813: recipe for target 'all' failed make[2]: *** [all] Error 2 make[2]: Leaving directory '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/work/NetworkManager-0.9.8.8/src' Makefile:650: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/work/NetworkManager-0.9.8.8' Makefile:542: recipe for target 'all' failed make: *** [all] Error 2 * ERROR: net-misc/networkmanager-0.9.8.8::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-misc/networkmanager-0.9.8.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-misc/networkmanager-0.9.8.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/temp/environment'. * Working directory: '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/work/NetworkManager-0.9.8.8' * S: '/var/tmp/portage/net-misc/networkmanager-0.9.8.8/work/NetworkManager-0.9.8.8'
I am having this same issue. Downgrading `libnl` to `3.2.23` fixed the problem for me. https://bugs.gentoo.org/show_bug.cgi?id=494986
I think this should be considered a libnl bug; all of the rest of its exported symbols start with "nl"; it should not be exporting this object as just "link_policy".
We have a libnl maintainer among NetworkManager developers (adding Thomas to Cc). Also, NetworkManager *depends* on libnl, so not building with latest versions of it should not be taken lightly. I would like to have Thomas's opinion before closing again.
This should be fixed upstream at this time. https://github.com/thom311/libnl/issues/52#issuecomment-31486365
Right.