Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269678 - [PATCH] games-arcade/ceferino-0.97.8 failed with sys-devel/gcc-4.4.0
Summary: [PATCH] games-arcade/ceferino-0.97.8 failed with sys-devel/gcc-4.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.4
  Show dependency tree
 
Reported: 2009-05-13 11:13 UTC by Oschtan
Modified: 2009-05-13 18:28 UTC (History)
0 users

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


Attachments
Fix compilation with gcc-4.4 (ceferino-gcc-4.4.patch,368 bytes, patch)
2009-05-13 15:03 UTC, Martin Väth
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oschtan 2009-05-13 11:13:20 UTC
make[2]: Entering directory `/var/tmp/portage/games-arcade/ceferino-0.97.8/work/ceferino-0.97.8/src'
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -DLOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\""/usr/share/games/c
eferino"\"    -O2 -pipe -march=amdfam10 -mtune=amdfam10 -MT actor.o -MD -MP -MF ".deps/actor.Tpo" -c -o actor.o actor.cc; \
        then mv -f ".deps/actor.Tpo" ".deps/actor.Po"; else rm -f ".deps/actor.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -DLOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\""/usr/share/games/c
eferino"\"    -O2 -pipe -march=amdfam10 -mtune=amdfam10 -MT audio.o -MD -MP -MF ".deps/audio.Tpo" -c -o audio.o audio.cc; \
        then mv -f ".deps/audio.Tpo" ".deps/audio.Po"; else rm -f ".deps/audio.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -DLOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\""/usr/share/games/c
eferino"\"    -O2 -pipe -march=amdfam10 -mtune=amdfam10 -MT barra.o -MD -MP -MF ".deps/barra.Tpo" -c -o barra.o barra.cc; \
        then mv -f ".deps/barra.Tpo" ".deps/barra.Po"; else rm -f ".deps/barra.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -DLOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\""/usr/share/games/c
eferino"\"    -O2 -pipe -march=amdfam10 -mtune=amdfam10 -MT bloque.o -MD -MP -MF ".deps/bloque.Tpo" -c -o bloque.o bloque.cc
; \
        then mv -f ".deps/bloque.Tpo" ".deps/bloque.Po"; else rm -f ".deps/bloque.Tpo"; exit 1; fi
if x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..  -DLOCALEDIR=\""/usr/share/locale"\" -DDATADIR=\""/usr/share/games/c
eferino"\"    -O2 -pipe -march=amdfam10 -mtune=amdfam10 -MT bomba.o -MD -MP -MF ".deps/bomba.Tpo" -c -o bomba.o bomba.cc; \
        then mv -f ".deps/bomba.Tpo" ".deps/bomba.Po"; else rm -f ".deps/bomba.Tpo"; exit 1; fi
In file included from juego.h:32,
                 from pelota.h:30,
                 from procesos.h:31,
                 from barra.cc:31:
nivel.h:37: ошибка: ‘grafico’ is not a type
make[2]: *** [barra.o] Error 1
In file included from juego.h:32,
                 from bomba.h:29,
                 from bomba.cc:27:
nivel.h:37: ошибка: ‘grafico’ is not a type
make[2]: *** [bomba.o] Error 1
In file included from juego.h:32,
                 from bloque.h:30,
                 from bloque.cc:27:
nivel.h:37: ошибка: ‘grafico’ is not a type
bloque.cc: In member function ‘int bloque::iniciar(juego*, grafico*, int, int)’:
bloque.cc:48: предупреждение: deprecated conversion from string constant to ‘char*’
bloque.cc:49: предупреждение: deprecated conversion from string constant to ‘char*’
make[2]: *** [bloque.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/games-arcade/ceferino-0.97.8/work/ceferino-0.97.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-arcade/ceferino-0.97.8/work/ceferino-0.97.8'
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc33 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r3-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.0.0
Timestamp of tree: Mon, 11 May 2009 20:20:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.6.2
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.9
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10"
Comment 1 Sebastian Luther (few) 2009-05-13 11:16:01 UTC
Please use "LC_ALL=C emerge ..." to get english error messages.
Comment 2 Oschtan 2009-05-13 11:19:54 UTC
Now not possible: "emerge -e world --resume"
Comment 3 Martin Väth 2009-05-13 15:03:20 UTC
Created attachment 191164 [details, diff]
Fix compilation with gcc-4.4

The reason is that gcc-4.4 does not want that the same name is used for
a variable as for a type (even if it is only a "dummy" parameter variable).

The attached patch works for both versions of ceferino currently in the tree
(0.97.5 and 0.97.8).
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2009-05-13 16:34:17 UTC
in portage.  thanks for the patch and bug report.
Comment 5 Martin Väth 2009-05-13 17:51:28 UTC
Thanks for fixing it in the tree. Just for the records, because the ChangeLog might be misunderstood: It was me who submitted the patch ;)
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2009-05-13 18:28:22 UTC
Whoops, fixed that up.