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 356512 - Build failure in vpn-manager due to dbus-glib
Build failure in vpn-manager due to dbus-glib
Status: RESOLVED NOTGNOME
Product: NetworkManager
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2006-09-18 10:38 UTC by Luca Ferretti
Modified: 2006-09-19 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Luca Ferretti 2006-09-18 10:38:56 UTC
I was trying to build NetworkManager inside my jhbuild sandbo (gnome 2.16). This is the build failure message:

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -I../../libnm-util -I../../utils -I../../src -I../../src/named-manager -I/opt/gnome2/include/dbus-1.0 -I/opt/gnome2/lib/dbus-1.0/include -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include -DDBUS_VERSION_MAJOR=0 -DDBUS_VERSION_MINOR=94 -DDBUS_VERSION_MICRO=0 -pthread -I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include -DDBUS_API_SUBJECT_TO_CHANGE -I/opt/gnome2/include/hal -I/opt/gnome2/include/dbus-1.0 -I/opt/gnome2/lib/dbus-1.0/include -g -Wall -DDBUS_API_SUBJECT_TO_CHANGE -DG_DISABLE_DEPRECATED -DBINDIR=\"/opt/gnome2/bin\" -DDATADIR=\"/opt/gnome2/share\" -DSYSCONFDIR=\"/opt/gnome2/etc\" -Wall -Werror -std=gnu89 -g -O2 -lz -Wshadow -Wmissing-declarations -Wmissing-prototypes -Wdeclaration-after-statement -Wfloat-equal -Wno-unused-parameter -Wno-sign-compare -MT libvpn_manager_la-nm-vpn-connection.lo -MD -MP -MF .deps/libvpn_manager_la-nm-vpn-connection.Tpo -c nm-vpn-connection.c  -fPIC -DPIC -o .libs/libvpn_manager_la-nm-vpn-connection.o
cc1: warnings being treated as errors
In file included from /opt/gnome2/include/dbus-1.0/dbus/dbus-glib.h:137,
                 from /opt/gnome2/include/dbus-1.0/dbus/dbus-glib-lowlevel.h:27,
                 from ../../src/NetworkManagerDbusUtils.h:27,
                 from nm-dbus-vpn.h:25,
                 from nm-vpn-connection.c:25:
/opt/gnome2/include/dbus-1.0/dbus/dbus-gtype-specialized.h:50: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
/opt/gnome2/include/dbus-1.0/dbus/dbus-gtype-specialized.h:95: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
/opt/gnome2/include/dbus-1.0/dbus/dbus-gtype-specialized.h:98: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
In file included from ../../src/NetworkManagerMain.h:28,
                 from ../../src/NetworkManagerDbusUtils.h:31,
                 from nm-dbus-vpn.h:25,
                 from nm-vpn-connection.c:25:
/opt/gnome2/include/hal/libhal.h:309: warning: declaration of 'index' shadows a global declaration
/usr/include/string.h:304: warning: shadowed declaration is here
make[3]: *** [libvpn_manager_la-nm-vpn-connection.lo] Error 1
make[3]: Leaving directory `/home/luca/cvs/gnome2/NetworkManager/src/vpn-manager'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/luca/cvs/gnome2/NetworkManager/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/luca/cvs/gnome2/NetworkManager'
make: *** [all] Error 2

Is it a NetworkManager issue or a dbus-glib issue? Note that jhbuild is using the 'new' dbus-glib binding, not the old one that was included in dbus package.
Comment 1 Dan Williams 2006-09-19 14:03:23 UTC
dbus-glib issue, and a HAL issue.  HAL was updated quite a few months ago to fix the shadow issue; dbus-glib status is unknown.  But the errors are definitely in those packages.