Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126839 - games-arcade/ssc-0.8: fix compilation with gcc-4.1
Summary: games-arcade/ssc-0.8: fix compilation with gcc-4.1
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: 117482
  Show dependency tree
 
Reported: 2006-03-19 10:43 UTC by TGL
Modified: 2006-06-06 00:05 UTC (History)
0 users

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


Attachments
ssc-0.8-ebuild--drop_Werror.patch (ssc-0.8-ebuild--drop_Werror.patch,358 bytes, patch)
2006-03-19 10:44 UTC, TGL
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description TGL 2006-03-19 10:43:17 UTC
When compiling this game with gcc-4.1, I get a few warnings.  But the ./configure script forces -Werror in CXXFLAGS, and thus the while build process fails:

Making all in src
make[2]: Entering directory `/var/portage/tmp/portage/ssc-0.8/work/ssc-0.8/src'
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../support/ode/include `freetype-config --cflags` `sdl-config --cflags`    -O3 -pipe -finline-functions -falign-functions=4 -ffast-math -fno-rtti -fno-exceptions -mfancy-math-387 -fomit-frame-pointer  -march=i686  -Wall -Werror -MT asteroid.o -MD -MP -MF ".deps/asteroid.Tpo" \
  -c -o asteroid.o `test -f 'asteroid.cc' || echo './'`asteroid.cc; \
then mv -f ".deps/asteroid.Tpo" ".deps/asteroid.Po"; \
else rm -f ".deps/asteroid.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../support/ode/include `freetype-config --cflags` `sdl-config --cflags`    -O3 -pipe -finline-functions -falign-functions=4 -ffast-math -fno-rtti -fno-exceptions -mfancy-math-387 -fomit-frame-pointer  -march=i686  -Wall -Werror -MT neuron.o -MD -MP -MF ".deps/neuron.Tpo" \
  -c -o neuron.o `test -f 'neuron.cc' || echo './'`neuron.cc; \
then mv -f ".deps/neuron.Tpo" ".deps/neuron.Po"; \
else rm -f ".deps/neuron.Tpo"; exit 1; \
fi
if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../support/ode/include `freetype-config --cflags` `sdl-config --cflags`    -O3 -pipe -finline-functions -falign-functions=4 -ffast-math -fno-rtti -fno-exceptions -mfancy-math-387 -fomit-frame-pointer  -march=i686  -Wall -Werror -MT nnwork.o -MD -MP -MF ".deps/nnwork.Tpo" \
  -c -o nnwork.o `test -f 'nnwork.cc' || echo './'`nnwork.cc; \
then mv -f ".deps/nnwork.Tpo" ".deps/nnwork.Po"; \
else rm -f ".deps/nnwork.Tpo"; exit 1; \
fi
cc1plus: warnings being treated as errors
coord.h: In member function 'int Coord3<T>::hash() const [with T = double]':
asteroid.cc:90:   instantiated from here
coord.h:300: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[2]: *** [asteroid.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/portage/tmp/portage/ssc-0.8/work/ssc-0.8/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/portage/tmp/portage/ssc-0.8/work/ssc-0.8'
make: *** [all] Error 2


I will attach an ebuild patch to sed out this -Werror flag. Hope it is an acceptable workaround, since i don't know C++ enough to actually fix all the warnings.
Comment 1 TGL 2006-03-19 10:44:02 UTC
Created attachment 82587 [details, diff]
ssc-0.8-ebuild--drop_Werror.patch
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2006-06-06 00:05:21 UTC
Tupone fixed this one already.  thanks for the bug report.