Package: starvoyager
Version: 0.4.4-5.1
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert
This package fails to build with GCC 6. GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.
Note that only the first error is reported; there might be more. You
can find a snapshot of GCC 6 in experimental. To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> c++ `sdl-config --cflags` -Wall -ggdb3 -O2 -DPOSIX -DVERSION=\"0.4.4\"
> -DDATADIR=\"/usr/share/games/starvoyager\" -c -o ship.o ship.cc
> ship.cc: In constructor 'ship::ship(cord, ship*, alliance*, int)':
> ship.cc:27:36: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Null alliance given");
> ^
>
> ship.cc:29:41: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Null ship template given");
> ^
>
> ship.cc: In member function 'void ship::accel(int, bool)':
> ship.cc:254:5: warning: suggest explicit braces to avoid ambiguous 'else'
> [-Wparentheses]
> if(nsp<100)
> ^
>
> ship.cc: In member function 'int ship::interact(char*, short int, short int,
> ship*)':
> ship.cc:645:5: warning: suggest explicit braces to avoid ambiguous 'else'
> [-Wparentheses]
> if(opr==1)
> ^
>
> ship.cc:650:5: warning: suggest explicit braces to avoid ambiguous 'else'
> [-Wparentheses]
> if(opr==2)
> ^
>
> ship.cc: In member function 'void ship::hit(int, cord, vect, ship*)':
> ship.cc:1019:62: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> server::hail(NULL,src->ply,"Target destroyed; bounty paid");
> ^
>
> ship.cc:1024:53: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> server::bulletin("%s has been destroyed",ply->nam);
> ^
>
> ship.cc:1031:48: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> server::hail(NULL,src->ply,"Target crippled");
> ^
>
> ship.cc: In member function 'void ship::transport(planet*)':
> ship.cc:1133:49: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Cannot transport with shields up");
> ^
>
> ship.cc:1135:46: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Not enough power to transport");
> ^
>
> ship.cc:1137:47: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Cannot transport while cloaked");
> ^
>
> ship.cc:1148:58: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("No available transporters ready or powered");
> ^
>
> ship.cc: In member function 'void ship::transport(ship*)':
> ship.cc:1160:49: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Cannot transport with shields up");
> ^
>
> ship.cc:1162:46: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Not enough power to transport");
> ^
>
> ship.cc:1164:47: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Cannot transport while cloaked");
> ^
>
> ship.cc:1166:63: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Cannot transport through destination's shields");
> ^
>
> ship.cc:1168:61: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("Cannot transport through destination's cloak");
> ^
>
> ship.cc:1179:58: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("No available transporters ready or powered");
> ^
>
> ship.cc: In member function 'void ship::save()':
> ship.cc:1186:32: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("Class",cls);
> ^
>
> ship.cc:1187:31: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("Type",typ);
> ^
>
> ship.cc:1188:37: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("ShipSprite",spr);
> ^
>
> ship.cc:1189:33: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("Width",w[0]);
> ^
>
> ship.cc:1190:34: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("Height",h[0]);
> ^
>
> ship.cc:1192:39: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("FragSprite",fspr);
> ^
>
> ship.cc:1194:38: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("FragSound",fsnd);
> ^
>
> ship.cc:1196:39: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("DeathSound",dsnd);
> ^
>
> ship.cc:1198:38: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("Team",all->self);
> ^
>
> ship.cc:1199:34: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> database::putvalue("AIType",aity);
...
>
> ship.cc:1323:6: error: cannot convert 'bool' to 'player*' in assignment
> ply=false;
> ^~~~~
>
> ship.cc: In member function 'void ship::insert()':
> ship.cc:1354:45: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> throw error("No free ship index available");
> ^
>
> ship.cc: In member function 'void ship::loadlink()':
> ship.cc:1613:44: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> frnd=get(database::getvalue("FriendTarget"));
> ^
>
> ship.cc:1614:43: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> enem=get(database::getvalue("EnemyTarget"));
> ^
>
> ship.cc:1615:52: warning: ISO C++ forbids converting a string constant to
> 'char*' [-Wwrite-strings]
> plnt=planet::get(database::getvalue("PlanetTarget"));
> ^
>
> ship.cc: In member function 'void ship::behave()':
> ship.cc:1873:6: warning: suggest explicit braces to avoid ambiguous 'else'
> [-Wparentheses]
> if(!enem)
> ^
>
> Makefile:37: recipe for target 'ship.o' failed
> make[1]: *** [ship.o] Error 1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise