Bug#1120225: antigrav: FTBFS: game.cpp:539:9: error: 'gluPerspective' was not declared in this scope
Santiago Vila
sanvila at debian.org
Thu Nov 6 11:58:18 GMT 2025
Package: src:antigrav
Version: 0.0.3-12
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202511/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:antigrav, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean
debian/rules override_dh_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_clean
rm -f debian/antigrav.png
rm -f src/tinyxml/Makefile
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
debian/rules binary
dh binary
dh_update_autotools_config
dh_autoreconf
autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in'
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:2: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete.
configure.in:2: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.in:2: the top level
configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.
./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from...
aclocal.m4:954: AM_INIT_AUTOMAKE is expanded from...
configure.in:3: the top level
configure.in:12: warning: The macro 'AC_LANG_CPLUSPLUS' is obsolete.
configure.in:12: You should run autoupdate.
./lib/autoconf/c.m4:270: AC_LANG_CPLUSPLUS is expanded from...
configure.in:12: the top level
configure.in:14: warning: The macro 'AC_STDC_HEADERS' is obsolete.
configure.in:14: You should run autoupdate.
./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
configure.in:14: the top level
configure.in:14: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.in:14: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
./lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from...
configure.in:14: the top level
configure.in:64: warning: AC_OUTPUT should be used without arguments.
configure.in:64: You should run autoupdate.
autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in'
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see:
configure.in:3: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
configure.in:7: installing './compile'
src/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
src/tinyxml/Makefile.am:1: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
debian/rules override_dh_auto_configure
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_configure -- \
--bindir=\${prefix}/games \
--mandir=\${prefix}/share/man \
--infodir=\${prefix}/share/info \
./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --bindir=\${prefix}/games --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether sleep supports fractional seconds... yes
checking filesystem timestamp resolution... 0.01
checking whether build environment is sane... yes
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking xargs -n works... yes
checking whether UID '999' is supported by ustar format... yes
checking whether GID '999' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... none
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... none
checking for ranlib... ranlib
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for alGenSources in -lopenal... yes
checking for alutInit in -lalut... yes
checking for png_create_read_struct in -lpng... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for sdl >= 1.1.5... yes
checking for GL/gl.h... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/tinyxml/Makefile
config.status: creating data/Makefile
config.status: creating extra/Makefile
config.status: creating config.h
config.status: executing depfiles commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build
make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make all-recursive
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o main.o main.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o craft.o craft.cpp
craft.cpp: In member function âCraftState Craft::derive(float, const CraftState&, const CraftState&)â:
craft.cpp:107:35: warning: implicitly-declared âconstexpr Vector2::Vector2(const Vector2&)â is deprecated [-Wdeprecated-copy]
107 | beam[0] = Vector2(getPos());
| ^
In file included from antigrav.h:24,
from craft.cpp:7:
vector2.h:36:18: note: because âVector2â has user-provided âVector2& Vector2::operator=(const Vector2&)â
36 | Vector2 &operator=(const Vector2 &other);
| ^~~~~~~~
craft.cpp: In member function âvoid Craft::addImpulse(const Vector2&, const Vector2&)â:
craft.cpp:340:23: warning: implicitly-declared âconstexpr Vector2::Vector2(const Vector2&)â is deprecated [-Wdeprecated-copy]
340 | Vector2 imp = impulse;
| ^~~~~~~
vector2.h:36:18: note: because âVector2â has user-provided âVector2& Vector2::operator=(const Vector2&)â
36 | Vector2 &operator=(const Vector2 &other);
| ^~~~~~~~
main.cpp: In function âvoid swapWavBytes(Uint8*, Uint32)â:
main.cpp:185:21: warning: passing argument 2 to ârestrictâ-qualified parameter aliases with argument 1 [-Wrestrict]
185 | swab(buffer, buffer, length);
| ~~~~~~ ^~~~~~
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o level.o level.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o vector2.o vector2.cpp
vector2.cpp: In member function âVector2 Vector2::unitVector() constâ:
vector2.cpp:138:16: warning: implicitly-declared âconstexpr Vector2::Vector2(const Vector2&)â is deprecated [-Wdeprecated-copy]
138 | return temp;
| ^~~~
In file included from vector2.cpp:3:
vector2.h:36:18: note: because âVector2â has user-provided âVector2& Vector2::operator=(const Vector2&)â
36 | Vector2 &operator=(const Vector2 &other);
| ^~~~~~~~
vector2.cpp: In function âVector2 operator*(float, const Vector2&)â:
vector2.cpp:170:16: warning: implicitly-declared âconstexpr Vector2::Vector2(const Vector2&)â is deprecated [-Wdeprecated-copy]
170 | return temp;
| ^~~~
vector2.cpp:152:10: note: because âVector2â has user-provided âVector2& Vector2::operator=(const Vector2&)â
152 | Vector2 &Vector2::operator=(const Vector2 &other)
| ^~~~~~~
vector2.cpp: In function âVector2 operator*(const Vector2&, float)â:
vector2.cpp:176:16: warning: implicitly-declared âconstexpr Vector2::Vector2(const Vector2&)â is deprecated [-Wdeprecated-copy]
176 | return temp;
| ^~~~
vector2.cpp:152:10: note: because âVector2â has user-provided âVector2& Vector2::operator=(const Vector2&)â
152 | Vector2 &Vector2::operator=(const Vector2 &other)
| ^~~~~~~
vector2.cpp: In function âVector2 operator/(const Vector2&, float)â:
vector2.cpp:182:16: warning: implicitly-declared âconstexpr Vector2::Vector2(const Vector2&)â is deprecated [-Wdeprecated-copy]
182 | return temp;
| ^~~~
vector2.cpp:152:10: note: because âVector2â has user-provided âVector2& Vector2::operator=(const Vector2&)â
152 | Vector2 &Vector2::operator=(const Vector2 &other)
| ^~~~~~~
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o font.o font.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o m3dmaterial.o m3dmaterial.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o m3dmesh.o m3dmesh.cpp
m3dmesh.cpp: In member function âvoid m3dMesh::draw()â:
m3dmesh.cpp:231:13: warning: variable ânumTexUnitsâ set but not used [-Wunused-but-set-variable]
231 | int numTexUnits;
| ^~~~~~~~~~~
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o m3dtexture.o m3dtexture.cpp
m3dtexture.cpp: In member function âint m3dTexture::loadFromXML(const TiXmlElement*)â:
m3dtexture.cpp:107:49: warning: format â%uâ expects argument of type âunsigned intâ, but argument 3 has type âpng_uint_32*â {aka âunsigned int*â} [-Wformat=]
107 | fprintf(stderr, "Width %u, Height %u\n",&(texUnits[n].width), &(texUnits[n].height));
| ~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int png_uint_32* {aka unsigned int*}
| %n
m3dtexture.cpp:107:60: warning: format â%uâ expects argument of type âunsigned intâ, but argument 4 has type âpng_uint_32*â {aka âunsigned int*â} [-Wformat=]
107 | fprintf(stderr, "Width %u, Height %u\n",&(texUnits[n].width), &(texUnits[n].height));
| ~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int png_uint_32* {aka unsigned int*}
| %n
m3dtexture.cpp: In member function âint m3dTexture::load(int, const char**)â:
m3dtexture.cpp:152:49: warning: format â%uâ expects argument of type âunsigned intâ, but argument 3 has type âpng_uint_32*â {aka âunsigned int*â} [-Wformat=]
152 | fprintf(stderr, "Width %u, Height %u\n",&(texUnits[n].width), &(texUnits[n].height));
| ~^ ~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int png_uint_32* {aka unsigned int*}
| %n
m3dtexture.cpp:152:60: warning: format â%uâ expects argument of type âunsigned intâ, but argument 4 has type âpng_uint_32*â {aka âunsigned int*â} [-Wformat=]
152 | fprintf(stderr, "Width %u, Height %u\n",&(texUnits[n].width), &(texUnits[n].height));
| ~^ ~~~~~~~~~~~~~~~~~~~~~
| | |
| unsigned int png_uint_32* {aka unsigned int*}
| %n
m3dtexture.cpp: In static member function âstatic int m3dTexture::loadPNG(unsigned char**, png_uint_32*, png_uint_32*, void*, void (*)(png_structp, png_bytep, png_size_t))â:
m3dtexture.cpp:232:22: warning: variable âckeyâ set but not used [-Wunused-but-set-variable]
232 | volatile int ckey = -1;
| ^~~~
m3dtexture.cpp: In static member function âstatic GLuint m3dTexture::loadTexture(const char*)â:
m3dtexture.cpp:452:41: warning: format â%dâ expects argument of type âintâ, but argument 3 has type âpng_uint_32*â {aka âunsigned int*â} [-Wformat=]
452 | fprintf(stderr, "Width %d, Height %d\n",&width, &height);
| ~^ ~~~~~~
| | |
| int png_uint_32* {aka unsigned int*}
| %n
m3dtexture.cpp:452:52: warning: format â%dâ expects argument of type âintâ, but argument 4 has type âpng_uint_32*â {aka âunsigned int*â} [-Wformat=]
452 | fprintf(stderr, "Width %d, Height %d\n",&width, &height);
| ~^ ~~~~~~~
| | |
| int png_uint_32* {aka unsigned int*}
| %n
m3dtexture.cpp: In static member function âstatic void m3dTexture::pngReadCallbackSTDIO(png_structp, png_bytep, png_size_t)â:
m3dtexture.cpp:196:14: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â declared with attribute âwarn_unused_resultâ [-Wunused-result]
196 | fread(data, length, 1, f);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o terrain.o terrain.cpp
g++ -DHAVE_CONFIG_H -I. -I.. -W -Wall -DTIXML_USE_STL -DDATADIR="\"/usr/share/antigrav\"" -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o game.o game.cpp
terrain.cpp: In member function âvoid Terrain::drawLists(const float*, const float*, float, float)â:
terrain.cpp:490:76: warning: narrowing conversion of â(5.0e+0 - ((double)((float)(*(eye + 4)))))â from âdoubleâ to âfloatâ [-Wnarrowing]
490 | float pos[3] = {i * 16 * VERTEX_DIST - eye[0], 5.0 - eye[1], j * 16 * VERTEX_DIST + dz - eye[2]};
| ~~~~^~~~~~~~
game.cpp: In member function âvoid Game::drawViewport(int, const GLint*)â:
game.cpp:539:9: error: âgluPerspectiveâ was not declared in this scope
539 | gluPerspective(DEG(fovY), aspect, 0.1, 200.0);
| ^~~~~~~~~~~~~~
game.cpp:566:9: error: âgluLookAtâ was not declared in this scope
566 | gluLookAt(eyeX, eyeY, eyeZ, centerX, centerY, centerZ, centerX - eyeX, eyeZ - centerZ, centerY - eyeY);
| ^~~~~~~~~
make[3]: *** [Makefile:433: game.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:385: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:326: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-games-devel
mailing list