Bug#560483: hex-a-hop: FTBFS: savestate.h:281: error: invalid conversion from 'const char*' to 'char*'

Lucas Nussbaum lucas at lucas-nussbaum.net
Fri Dec 11 08:05:08 UTC 2009


Source: hex-a-hop
Version: 0.0.20070315-7
Severity: serious
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20091210 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> g++ -Wall -W -g -DUSE_GETTEXT -O2 -D_VERSION=\"1.0.0\" -DDATA_DIR=\"/usr/share/games/hex-a-hop\" `sdl-config --cflags`  -c -o hex_puzzzle.o hex_puzzzle.cpp
> In file included from hex_puzzzle.cpp:74:
> state.h: In member function 'void String::fix_backslashes()':
> state.h:75: warning: suggest explicit braces to avoid ambiguous 'else'
> In file included from hex_puzzzle.cpp:448:
> savestate.h: In member function 'LevelSave* SaveState::GetLevel(const char*, bool)':
> savestate.h:281: error: invalid conversion from 'const char*' to 'char*'
> In file included from hex_puzzzle.cpp:449:
> menus.h: In member function 'void HintMessage::Init(const char*)':
> menus.h:195: error: invalid conversion from 'const char*' to 'char*'
> menus.h: In member function 'virtual void OptMenu::Select()':
> menus.h:1250: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'void WorldRenderer::Render(double, bool)':
> hex_puzzzle.cpp:751: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'virtual void LevelSelectRender::Render(RenderObject*, double, bool)':
> hex_puzzzle.cpp:930: warning: suggest explicit braces to avoid ambiguous 'else'
> hex_puzzzle.cpp: In member function 'virtual void TileRender::Render(RenderObject*, double, bool)':
> hex_puzzzle.cpp:1014: warning: suggest explicit braces to avoid ambiguous 'else'
> hex_puzzzle.cpp: In member function 'virtual void BuildRender::Render(RenderObject*, double, bool)':
> hex_puzzzle.cpp:1286: warning: suggest explicit braces to avoid ambiguous 'else'
> hex_puzzzle.cpp: In member function 'virtual int PlayerRender::GetDepth(double)':
> hex_puzzzle.cpp:1350: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'virtual void PlayerRender::Render(RenderObject*, double, bool)':
> hex_puzzzle.cpp:1411: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'int HexPuzzle::GetLevelState(const Pos&, int)':
> hex_puzzzle.cpp:2227: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'SDL_Surface* HexPuzzle::Load(const char*, bool)':
> hex_puzzzle.cpp:2503: warning: suggest parentheses around arithmetic in operand of '|'
> hex_puzzzle.cpp:2503: warning: suggest parentheses around arithmetic in operand of '|'
> hex_puzzzle.cpp:2503: warning: suggest parentheses around arithmetic in operand of '|'
> hex_puzzzle.cpp: In member function 'virtual void HexPuzzle::Mouse(int, int, int, int, int, int, int)':
> hex_puzzzle.cpp:2930: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp:2974: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp:2995: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'void HexPuzzle::FireGun(Pos, Dir, bool, double)':
> hex_puzzzle.cpp:3216: warning: suggest parentheses around '&&' within '||'
> hex_puzzzle.cpp: In member function 'bool HexPuzzle::HandleKey(int, int)':
> hex_puzzzle.cpp:3934: warning: suggest parentheses around '&&' within '||'
> make[1]: *** [hex_puzzzle.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2009/12/10/hex-a-hop_0.0.20070315-7_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.

-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |





More information about the Pkg-games-devel mailing list