Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190074 - networkmanager-0.6.5_p20070823 does not compile with GCC 4.2
Summary: networkmanager-0.6.5_p20070823 does not compile with GCC 4.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Steev Klimaszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-24 19:02 UTC by Cyril Jaquier
Modified: 2007-09-05 17:08 UTC (History)
6 users (show)

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


Attachments
noGNOME_DISABLE_DEPRECATED.patch (noGNOME_DISABLE_DEPRECATED.patch,487 bytes, patch)
2007-08-25 23:53 UTC, Ed Catmur
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cyril Jaquier 2007-08-24 19:02:13 UTC
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:
Comment 1 Cyril Jaquier 2007-08-24 19:07:17 UTC
Strange :/ Line 59 in nm-vpn-properties.c is header definition. I'm using gnome-experimental overlay (Gnome 2.19). Maybe this is related...
Comment 2 Steev Klimaszewski (RETIRED) gentoo-dev 2007-08-24 19:08:34 UTC
Sorry, try with portage.
Comment 3 Cyril Jaquier 2007-08-25 08:51:28 UTC
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!?
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2007-08-25 20:20:50 UTC
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.
Comment 7 Ed Catmur 2007-08-25 23:53:26 UTC
Created attachment 129187 [details, diff]
noGNOME_DISABLE_DEPRECATED.patch

fails to apply because of a whitespace wtf; here's a fixed version
Comment 8 Xake 2007-08-29 08:35:26 UTC
Sorry, attached patch gives me the same error.
GCC 4.2, GNOME 2.19.x here too
Comment 9 Xake 2007-08-29 09:43:38 UTC
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.
Comment 10 Rémi Cardona (RETIRED) gentoo-dev 2007-08-29 14:07:26 UTC
I got this bug too, Daniel told me to rebuild libgnomeui. Please try that.
Comment 11 Cosimo Cecchi 2007-08-31 11:19:04 UTC
It works for me without any patch, rebuilding libgnomeui as suggested by Rémi.
Comment 12 Cyril Jaquier 2007-08-31 11:57:37 UTC
(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
Comment 13 Steev Klimaszewski (RETIRED) gentoo-dev 2007-09-05 17:08:44 UTC
The issue is Gnome 2.19 and Dang fixed it.