After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
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
net-misc/networkmanager-0.9.8.8 with dev-libs/libnl-3.2.24_rc1 - nm-ip6-manag...
Status: RESOLVED NOTGNOME
Product: NetworkManager
Classification: Platform
Component: general
0.9.8
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-12-21 19:51 UTC by Alex Barker
Modified: 2014-01-03 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alex Barker 2013-12-21 19:51:23 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'
Comment 1 piruthiviraj natarajan 2013-12-22 14:39:04 UTC
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
Comment 2 piruthiviraj natarajan 2013-12-22 14:47:02 UTC
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
Comment 3 Dan Winship 2013-12-23 18:04:27 UTC
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".
Comment 4 Pavel Simerda 2013-12-30 09:22:33 UTC
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.
Comment 5 Alex Barker 2014-01-02 21:33:08 UTC
This should be fixed upstream at this time.

https://github.com/thom311/libnl/issues/52#issuecomment-31486365
Comment 6 Dan Winship 2014-01-03 20:46:00 UTC
Right.