[gcompris-devel] Unable to compile gcompris-5.X with Debian Woody.

Klaus Ade Johnstad klaus at astro.uio.no
Tue Feb 24 00:21:06 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mandag 23. februar 2004, 23:49, skrev Bruno Coudoin:
> > ***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.

Thanks, I did, and it worked a little better now.

Now 5.2 stops at the same place as with 5.1

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.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

- -- 
Klaus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAOwk/hJ+fXyb6R30RAop/AJ9RSSPdbVy4ylJUjAuYypLOdtKdzgCePA14
Uy/jhpnL74h30n8BNcDK3qg=
=t+rY
-----END PGP SIGNATURE-----





More information about the Gcompris-devel mailing list