Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 5053 - glademm-0.6.2 wont compile on GCC 3.1
Summary: glademm-0.6.2 wont compile on GCC 3.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Spider (RETIRED)
: 5335 (view as bug list)
Depends on:
Reported: 2002-07-15 17:12 UTC by Francis Koclas
Modified: 2003-02-04 19:42 UTC (History)
5 users (show)

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

glademm-0.6.4.ebuild (glademm-0.6.4.ebuild,940 bytes, text/plain)
2002-08-20 14:58 UTC, Nicholas Wourms
glademm-0.6.4b-gcc3.patch (glademm-0.6.4b-gcc3.patch,4.43 KB, patch)
2002-08-20 14:59 UTC, Nicholas Wourms
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francis Koclas 2002-07-15 17:12:35 UTC
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 
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/glademm-0.6.2/work/glademm-0.6.2/sr 
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
Comment 1 Francis Koclas 2002-07-15 18:49:29 UTC
it compiled without issues on GCC 2.95
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2002-07-17 00:36:23 UTC
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 
Comment 3 Matthias Liertzer 2002-07-21 12:24:36 UTC
*** Bug 5335 has been marked as a duplicate of this bug. ***
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2002-08-04 05:20:44 UTC
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.
Comment 5 Nicholas Wourms 2002-08-20 14:54:28 UTC
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!
Comment 6 Nicholas Wourms 2002-08-20 14:58:37 UTC
Created attachment 3237 [details]

The modified ebuild, still needs some sort of guard so that the patch is only
applied for people with gcc v3+.
Comment 7 Nicholas Wourms 2002-08-20 14:59:41 UTC
Created attachment 3238 [details, diff]

This patch fixes the offending files so that they compile with gcc v3+.
Comment 8 Spider (RETIRED) gentoo-dev 2002-10-04 06:22:45 UTC
this is in the tree since a while... forgot to close the bug.. thanks for the
help :)