parent (GUdevDevice) uninitialized in _update_s390_subchannels
- From: Mathieu Trudel-Lapierre <mathieu-tl ubuntu com>
- To: networkmanager-list gnome org
- Subject: parent (GUdevDevice) uninitialized in _update_s390_subchannels
- Date: Thu, 04 Nov 2010 15:40:08 -0400
Hi,
I noticed NM fails to build on Ubuntu Natty:
gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../include -I../marshallers
-I../src/logging -I../src/dns-manager -I../src/vpn-manager
-I../src/dhcp-manager -I../src/ip6-manager -I../src/supplicant-manager
-I../src/dnsmasq-manager -I../src/modem-manager -I../src/bluez-manager
-I../src/system-settings -I../libnm-util -I../libnm-glib -I../callouts
-pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread
-I/usr/include/gudev-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -pthread -I/usr/include/polkit-1
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-DG_DISABLE_DEPRECATED -DBINDIR=\"/usr/bin\" -DSBINDIR=\"/usr/sbin\"
-DLIBEXECDIR=\"/usr/lib/NetworkManager\" -DDATADIR=\"/usr/share\"
-DSYSCONFDIR=\"/etc\" -DLOCALSTATEDIR=\"/var\" -DNM_RUN_DIR=
\"/var/run/NetworkManager\" -DNMLOCALEDIR=\"/usr/share/locale\"
-DARP_DEBUG -Wall -Werror -std=gnu89 -g -O2 -g -Wall -O2 -Wshadow
-Wmissing-declarations -Wmissing-prototypes
-Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter
-Wno-sign-compare -fno-strict-aliasing -c -o
NetworkManager-nm-device-ethernet.o `test -f 'nm-device-ethernet.c' ||
echo './'`nm-device-ethernet.c
cc1: warnings being treated as errors
nm-device-ethernet.c: In function ‘constructor’:
nm-device-ethernet.c:400:5: error: ‘parent’ may be used uninitialized in
this function
nm-device-ethernet.c:311:15: note: ‘parent’ was declared here
make[5]: *** [NetworkManager-nm-device-ethernet.o] Erreur 1
make[5]: quittant le répertoire
« /home/mtrudel/Projects/ubuntu/build-area/network-manager-0.8.2/src »
make[4]: *** [all-recursive] Erreur 1
make[4]: quittant le répertoire
« /home/mtrudel/Projects/ubuntu/build-area/network-manager-0.8.2/src »
make[3]: *** [all] Erreur 2
make[3]: quittant le répertoire
« /home/mtrudel/Projects/ubuntu/build-area/network-manager-0.8.2/src »
make[2]: *** [all-recursive] Erreur 1
make[2]: quittant le répertoire
« /home/mtrudel/Projects/ubuntu/build-area/network-manager-0.8.2 »
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire
« /home/mtrudel/Projects/ubuntu/build-area/network-manager-0.8.2 »
make: *** [debian/stamp-makefile-build] Erreur 2
Attached is the patch I applied.
--
Mathieu Trudel-Lapierre <mathieu-tl ubuntu com>
Freenode: cyphermox, Jabber: mathieu tl gmail com
4096R/EE018C93 1967 8F7D 03A1 8F38 732E FF82 C126 33E1 EE01 8C93
From: Mathieu Trudel-Lapierre <mathieu trudel-lapierre canonical com>
Subject: Fix the build on natty chroots to complete successfully.
This seems to be required because of new strictness in gcc.
Index: network-manager-0.8.1+git.20100810t184654.ab580f4/src/nm-device-ethernet.c
===================================================================
--- network-manager-0.8.1+git.20100810t184654.ab580f4.orig/src/nm-device-ethernet.c 2010-10-20 08:55:38.078431122 -0400
+++ network-manager-0.8.1+git.20100810t184654.ab580f4/src/nm-device-ethernet.c 2010-10-20 08:55:47.408431122 -0400
@@ -307,7 +307,7 @@
const char *iface;
GUdevClient *client;
GUdevDevice *dev;
- GUdevDevice *parent;
+ GUdevDevice *parent = NULL;
const char *parent_path, *item, *driver;
const char *subsystems[] = { "net", NULL };
GDir *dir;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]