When I emerge glademm-0.6.2, I get the following error : SystemFile.hh:35: 'string' is used as a type, but is not defined as a type. SystemFile.hh:36: `vector' was not declared in this scope SystemFile.hh:36: `string' was not declared in this scope SystemFile.hh:36: syntax error before `>' token SystemFile.hh:40: syntax error before `*' token SystemFile.hh:41: syntax error before `*' token SystemFile.hh:56: parse error before `&' token SystemFile.hh: In constructor `SystemFile::SystemFile(SystemFile*, unsigned int) ': SystemFile.hh:50: `class SystemFile' has no member named `filename' SystemFile.hh:50: class `SystemFile' does not have any field named `filename' SystemFile.hh:53: `union SystemFile::<anonymous>' has no member named `os' SystemFile.hh:53: parse error before `(' token SystemFile.hh: At global scope: SystemFile.hh:61: parse error before `&' token SystemFile.hh:62: ISO C++ forbids defining types within return type SystemFile.hh:62: semicolon missing after declaration of `class SystemFile' SystemFile.hh: In function `int SystemFile(...)': SystemFile.hh:62: `name' undeclared (first use this function) SystemFile.hh:62: (Each undeclared identifier is reported only once for each fun ction it appears in.) SystemFile.hh:64: only constructors take base initializers SystemFile.hh:64: confused by earlier errors, bailing out make[3]: *** [CxxFile.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/glademm-0.6.2/work/glademm-0.6.2/sr c/SourceWriter' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/glademm-0.6.2/work/glademm-0.6.2/sr c' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/glademm-0.6.2/work/glademm-0.6.2' make: *** [all-recursive-am] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 7, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/dev-util/glademm/glademm-0.6.2.ebuild . _____________________ im using GCC 3.1-r7 this issue has been experienced by others on #gentoo im currently emerging it on another comp, using GCC 2.95 (200mhz PPC). I'll see what happens
it compiled without issues on GCC 2.95 -Francis
Looks like a common problem of "Someone Doesn't Know How to Code Properly" so when you try to compile with gcc-3.1 which is very strict about coding specs.... it breaks. I'll patch it myself for Gentoo and notify the developer so it doesn't happen with any new versions. I'll have it by this weekend for sure.
*** Bug 5335 has been marked as a duplicate of this bug. ***
Turns out 0.6.2b fixes some of the gcc-3.1 issues. 0.6.4 fixes the rest then 0.6.4b is the stable release and last release of the 0.6.x tree. Then 1.1.0, 1.1.0b, 1.1.0c, 1.1.1, 1.1.1b so we're behind a couple of versions here.... Gonna give this one the kick back to spider and CC carp and I on it since we tinkered with the bug but neither of us use glade or even Gnome.
I have it working! Turns out 0.6.4b doesn't fix everything, but not to worry. Attached is the ebuild and patch for 0.6.4b, athough finding a mirror was a bit difficult, I managed to pull it off. Tested on gcc-3.2 final, seems to be working. Check it out and see for yourself!
Created attachment 3237 [details] glademm-0.6.4.ebuild The modified ebuild, still needs some sort of guard so that the patch is only applied for people with gcc v3+.
Created attachment 3238 [details, diff] glademm-0.6.4b-gcc3.patch This patch fixes the offending files so that they compile with gcc v3+.
this is in the tree since a while... forgot to close the bug.. thanks for the help :)