This page is not a bug tracker. If you run into a problem not listed here, please file a bug. |
List of common errors for the module NetworkManager.
Contents
- Error - cc1: all warnings being treated as errors
- Error - Attribute "foo" is invalid on <node> element
- Error - cannot create regular file `/lib/udev/nm-modem-probe': Permission denied
- Error - No rule to make target `/libdeprecated-nm-glib.la'
- Error - couldn't find pppd.h. pppd development headers are required.
- Error - couldn't find wireless.h. during wireless-tool check
Error - cc1: all warnings being treated as errors
System details: 2012 February 11 - Debian 7.0 "Squeeze"
- moduleset = 'gnome-apps-3.4'
- modules = [ 'meta-gnome-core', 'meta-gnome-apps-tested' ]
Stage: Compile
The build stage fails due to compiler warnings, and --disable-Werror flag doesn't work.
Cause:
The build is set to fail, perhaps when built from a development environment (e.g. building a git version).
Solution:
$ echo 'module_autogenargs["NetworkManager"] = "--enable-more-warnings=no"' >> ~/.jhbuildrc
Error - Attribute "foo" is invalid on <node> element
Stage: build
Unable to load "%s": Attribute "xmlns:tp" is invalid on <node> element in this context
Explanation: Due to a bug in dbus-glib
Solution:
- Update jhbuild and rebuild dbus-glib with 'jhbuild build -a dbus-glib'. A patch has been added addressing this issue.
Error - cannot create regular file `/lib/udev/nm-modem-probe': Permission denied
Stage: build
install: cannot create regular file `/lib/udev/nm-modem-probe': Permission denied
Explanation: nm-modem-probe feature probably does not work
Solution:
Add to .jhbuildrc:
module_autogenargs['NetworkManager'] = autogenargs + \ ' --with-dbus-sys-dir=' + prefix + '/etc/dbus-1/system.d' + \ ' --with-udev-dir=' + prefix + '/lib/udev'
Error - No rule to make target `/libdeprecated-nm-glib.la'
System details: "October 19th, 2010 - GNOME 3.0 GIT - Gentoo
Stage: Compile
make[3]: *** No rule to make target `/libdeprecated-nm-glib.la', needed by `libnm-glib.la'. Stop.
Cause: Target should be "libdeprecated-nm-glib.la" insteadn of "/libdeprecated-nm-glib.la"
Workaround: Change ".../NetworkManager/libnm-glib/Makefile.am" line 128 from:
$(builddir)/libdeprecated-nm-glib.la \
to
libdeprecated-nm-glib.la \
Error - couldn't find pppd.h. pppd development headers are required.
System details: December 18th, 2010 - GNOME 3.0 GIT - Ubuntu 10.10
Stage: Configure
checking for pppd/pppd.h... no configure: error: couldn't find pppd.h. pppd development headers are required.
Cause: ppp development headers are missing
Solution: Install the ppp development package. On Debian/Ubuntu it is called ppp-dev; on Fedora it is called ppp-devel.
Error - couldn't find wireless.h. during wireless-tool check
System details: August 11th, 2011 - GNOME 3.0 GIT - Ubuntu 10.04
Stage: Configure
checking for Linux Wireless Extensions >= xxx... no
Cause: libiw-dev needs to be installed.
Solution: Install the libiw development package. On Debian/Ubuntu it is called libiw-dev.