Hi all, I'm unable to compile networkmanager-0.6.5_p20070823. I get this error: nm-vpn-properties.c:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token nm-vpn-properties.c:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token nm-vpn-properties.c: In function 'vpn_druid_vpn_validity_changed': nm-vpn-properties.c:258: error: 'druid' undeclared (first use in this function) nm-vpn-properties.c:258: error: (Each undeclared identifier is reported only once nm-vpn-properties.c:258: error: for each function it appears in.) nm-vpn-properties.c: At top level: nm-vpn-properties.c:266: error: expected ')' before '*' token nm-vpn-properties.c:304: error: expected ')' before '*' token nm-vpn-properties.c:321: error: expected ')' before '*' token nm-vpn-properties.c:338: error: expected ')' before '*' token nm-vpn-properties.c:357: error: expected ')' before '*' token nm-vpn-properties.c:378: error: expected ')' before '*' token nm-vpn-properties.c: In function 'add_cb': nm-vpn-properties.c:423: error: 'druid' undeclared (first use in this function) nm-vpn-properties.c: In function 'import_settings': nm-vpn-properties.c:477: error: 'druid' undeclared (first use in this function) nm-vpn-properties.c: In function 'init_app': nm-vpn-properties.c:1061: error: 'druid' undeclared (first use in this function) nm-vpn-properties.c:1062: error: 'vpn_druid_cancel' undeclared (first use in this function) nm-vpn-properties.c:1063: error: 'druid_confirm_page' undeclared (first use in this function) nm-vpn-properties.c:1066: error: 'vpn_druid_vpn_type_page_next' undeclared (first use in this function) nm-vpn-properties.c:1068: error: 'vpn_druid_vpn_details_page_prepare' undeclared (first use in this function) nm-vpn-properties.c:1069: error: 'vpn_druid_vpn_details_page_next' undeclared (first use in this function) nm-vpn-properties.c:1071: error: 'vpn_druid_vpn_confirm_page_prepare' undeclared (first use in this function) nm-vpn-properties.c:1072: error: 'vpn_druid_vpn_confirm_page_finish' undeclared (first use in this function) make[3]: *** [nm_vpn_properties-nm-vpn-properties.o] Error 1 make[3]: Leaving directory `/var/tmp/paludis/net-misc/networkmanager-0.6.5_p20070823/work/NetworkManager-0.6.5_p20070823/gnome/vpn-properties' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/paludis/net-misc/networkmanager-0.6.5_p20070823/work/NetworkManager-0.6.5_p20070823/gnome' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/paludis/net-misc/networkmanager-0.6.5_p20070823/work/NetworkManager-0.6.5_p20070823' make: *** [all] Error 2 I'm using GCC 4.2. CXX: i686-pc-linux-gnu-g++ 4.2.0 (Gentoo 4.2.0 p1.4) CXXFLAGS: -O2 -march=pentium-m -mtune=pentium-m -pipe LDFLAGS: DATADIR: /usr/share LIBDIR: /usr/lib LIBEXECDIR: /usr/libexec SYSCONFDIR: /etc stdlib: GNU libstdc++ 20070514 libebt: 1.3.0 libwrapiter: 1.2.0 sandbox: enabled Reproducible: Always Steps to Reproduce:
Strange :/ Line 59 in nm-vpn-properties.c is header definition. I'm using gnome-experimental overlay (Gnome 2.19). Maybe this is related...
Sorry, try with portage.
This one is not related to paludis. Just have a look at the compilation error. I found the solution here: http://www.mail-archive.com/networkmanager-list@gnome.org/msg07075.html It seems to be more related to Gnome > 2.18 than GCC 4.2!?
Same problem here, also with the gnome-experimental-overlay, so I guess this is related. Also this only happens with the gnome use-flag set. btw.: using portage and not paludis here.
http://svn.gnome.org/viewcvs/NetworkManager/trunk/gnome/vpn-properties/Makefile.am?view=log&pathrev=2659
we need http://svn.gnome.org/viewcvs/NetworkManager/trunk/gnome/vpn-properties/Makefile.am?view=patch&r1=2053&r2=2659&pathrev=2659
Created attachment 129187 [details, diff] noGNOME_DISABLE_DEPRECATED.patch fails to apply because of a whitespace wtf; here's a fixed version
Sorry, attached patch gives me the same error. GCC 4.2, GNOME 2.19.x here too
Well, if you do not need the vpn-part then is seems like you just have to USE="-gnome" and wait for a updated version of nm and nm-applet where the problem files are moved to nm-applet and hopefully fixed.
I got this bug too, Daniel told me to rebuild libgnomeui. Please try that.
It works for me without any patch, rebuilding libgnomeui as suggested by Rémi.
(In reply to comment #11) > It works for me without any patch, rebuilding libgnomeui as suggested by Rémi. > That's because Daniel fixed libgnomeui a few days ago: http://overlays.gentoo.org/proj/gnome/browser/gnome-base/libgnomeui/files/libgnomeui-2.19.1-enable-druid.patch
The issue is Gnome 2.19 and Dang fixed it.