[gcompris-devel] Unable to compile gcompris-5.X with Debian Woody.
Bruno Coudoin
bruno.coudoin at free.fr
Mon Feb 23 14:51:00 UTC 2004
Le dim 22/02/2004 à 11:21, Klaus Ade Johnstad a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> This morning I tried to compile Gcompris-5.2 on my Debian woody/stable
> machine, with gnome-2.2 libraries backported.
>
Never start a morning compiling gcompris, it can ruin your day ;)
> Anybody able to make any sense out of this messages? I can provide more
> detailed output if needed.
>
> ***Gcompris-4.2 compiles fine.
>
> ***Gcompris-5.0 ends lik this:
> log.c: In function `gcompris_log_end':
> log.c:97: parse error before `struct'
> log.c:99: `tp' undeclared (first use in this function)
> log.c:99: (Each undeclared identifier is reported only once
> log.c:99: for each function it appears in.)
> make[3]: *** [log.o] Error 1
> make[3]: Leaving directory `/tmp/gcompris-5.0/src/gcompris'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/gcompris-5.0/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/gcompris-5.0'
> make: *** [all] Error 2
>
> ***Gcompris-5.1 ends lik this:
> log.c: In function `gcompris_log_end':
> log.c:156: parse error before `struct'
> log.c:158: `tp' undeclared (first use in this function)
> log.c:158: (Each undeclared identifier is reported only once
> log.c:158: for each function it appears in.)
> make[3]: *** [log.o] Error 1
> make[3]: Leaving directory `/tmp/gcompris-5.1/src/gcompris'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/gcompris-5.1/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/gcompris-5.1'
> make: *** [all] Error 2
>
> ***Gcompris-5.2 ends like this:
> gameutil.c: In function `gcompris_load_pixmap':
> gameutil.c:126: parse error before `char'
> gameutil.c:131: `str' undeclared (first use in this function)
> gameutil.c:131: (Each undeclared identifier is reported only once
> gameutil.c:131: for each function it appears in.)
> gameutil.c: In function `gcompris_load_menus':
> gameutil.c:603: warning: passing arg 3 of `scandir' from incompatible
> pointer type
> make[3]: *** [gameutil.o] Error 1
> make[3]: Leaving directory `/tmp/gcompris-5.2/src/gcompris'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/tmp/gcompris-5.2/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/tmp/gcompris-5.2'
> make: *** [all] Error 2
>
in gameutil.c, recode gcompris_load_pixmap so that it looks like this:
if (!g_file_test ((filename), G_FILE_TEST_EXISTS)) {
char *str;
g_warning (_("Couldn't find file %s !"), filename);
str = g_strdup_printf("%s\n%s\n%s\n%s",
........
The problem comes from old gcc that cannot accept var declaration after
the fist code instruction.
Good luck,
Bruno.
More information about the Gcompris-devel
mailing list