Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 494986 - cannot build networkmanager after moving to systemd
Summary: cannot build networkmanager after moving to systemd
Status: RESOLVED DUPLICATE of bug 494890
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-21 23:50 UTC by piruthiviraj natarajan
Modified: 2013-12-22 17:35 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,247.27 KB, text/plain)
2013-12-21 23:50 UTC, piruthiviraj natarajan
Details
environment (environment,131.04 KB, text/plain)
2013-12-21 23:50 UTC, piruthiviraj natarajan
Details
emerge --info (file_494986.txt,5.22 KB, text/plain)
2013-12-21 23:51 UTC, piruthiviraj natarajan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description piruthiviraj natarajan 2013-12-21 23:50:12 UTC
Created attachment 365858 [details]
build.log

I moved to systemd today in my Gentoo unstable amd64. But network mananger doesn't build after that.  How to solve this and build networkmanager? This is the compile error report.

m-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 '/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 '/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 '/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 '/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
 [31;01m*[0m ERROR: net-misc/networkmanager-0.9.8.8::gentoo failed (compile phase):
 [31;01m*[0m   emake failed
Comment 1 piruthiviraj natarajan 2013-12-21 23:50:42 UTC
Created attachment 365860 [details]
environment
Comment 2 piruthiviraj natarajan 2013-12-21 23:51:44 UTC
Created attachment 365862 [details]
emerge --info
Comment 3 piruthiviraj natarajan 2013-12-21 23:57:05 UTC
Previously I did move from openRC to systemd and back again to openRC without any build issues. Now moving to systemd this time makes it fail to compile networkmanager.
Comment 4 Joseph Booker 2013-12-22 03:26:40 UTC
I am also hit by this bug as I'm looking to get back into Gentoo on a fresh install today. I changed to the desktop/kde/systemd profile, added several use flags, and network manager is the only thing left on an 'emerge -vaDuN system'.

Would it be helpful to attach the outputs of my environment, build.log, emerge --info ..., or emerge -pqv ... ? I have the same error as piruthiviraj (down to the same line numbers in the header files)
Comment 5 randy 2013-12-22 05:48:43 UTC
I also have this problem. Can't remove anything either since I can't complete a depclean until it installs. With everything I've tried, and failed, I'm stuck without a UI. Is there any way to work around such a predicament?
Comment 6 Marek Sapota 2013-12-22 08:43:30 UTC
Downgrading `libnl` to `3.2.23` fixed the problem for me.
Comment 7 randy 2013-12-22 10:34:53 UTC
I can confirm that downgrading libnl allows networkmanager to build. Thanks, Marek.
Comment 9 piruthiviraj natarajan 2013-12-22 14:39:37 UTC
Downgrading does work.
Comment 10 Alex Barker 2013-12-22 17:17:42 UTC
This is a duplicate of bug #494890
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2013-12-22 17:35:34 UTC

*** This bug has been marked as a duplicate of bug 494890 ***