Bug#1120224: brutalchess: FTBFS: brutalchess.cpp:51:9: error: 'gluPerspective' was not declared in this scope

Santiago Vila sanvila at debian.org
Thu Nov 6 11:58:36 GMT 2025


Package: src:brutalchess
Version: 0.5.2+dfsg-8
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:brutalchess, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
acinclude.m4:28: warning: underquoted definition of AM_PATH_SDL
acinclude.m4:28:   run info Automake 'Extending aclocal'
acinclude.m4:28:   or see https://www.gnu.org/software/automake/manual/automake.html#Extending-aclocal
configure.ac:20: warning: The macro 'AC_HEADER_STDC' is obsolete.
configure.ac:20: You should run autoupdate.
./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from...
configure.ac:20: the top level
configure.ac:42: warning: AC_CACHE_VAL(mdl_cv_have_OpenGL, ...): suspicious presence of an AC_SUBST in the second argument, where no actions should be taken
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:190: MDL_HAVE_OPENGL is expanded from...
configure.ac:42: the top level
configure.ac:42: warning: The macro 'AC_LANG_C' is obsolete.
configure.ac:42: You should run autoupdate.
./lib/autoconf/c.m4:72: AC_LANG_C is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:190: MDL_HAVE_OPENGL is expanded from...
configure.ac:42: the top level
configure.ac:42: warning: The macro 'AC_FD_MSG' is obsolete.
configure.ac:42: You should run autoupdate.
./lib/autoconf/general.m4:400: AC_FD_MSG is expanded from...
lib/m4sugar/m4sh.m4:690: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:697: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:190: MDL_HAVE_OPENGL is expanded from...
configure.ac:42: the top level
configure.ac:51: warning: The macro 'AC_TRY_RUN' is obsolete.
configure.ac:51: You should run autoupdate.
./lib/autoconf/general.m4:2995: AC_TRY_RUN is expanded from...
acinclude.m4:28: AM_PATH_SDL is expanded from...
configure.ac:51: the top level
configure.ac:51: warning: The macro 'AC_TRY_LINK' is obsolete.
configure.ac:51: You should run autoupdate.
./lib/autoconf/general.m4:2918: AC_TRY_LINK is expanded from...
acinclude.m4:28: AM_PATH_SDL is expanded from...
configure.ac:51: the top level
configure.ac:16: installing './compile'
src/Makefile.am:49: 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 -- --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games
	./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 --libexecdir=\${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games
checking build system type... x86_64-pc-linux-gnu
checking host 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 g++... g++
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 g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++... none
checking for gcc... gcc
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 dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
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 _Bool... yes
checking for stdbool.h that conforms to C99 or later... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for OpenGL... yes
checking for GL/glx.h... yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.2.7... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for freetype2... yes
checking for IMG_Load in -lSDL_image... 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 art/Makefile
config.status: creating models/Makefile
config.status: creating src/config.h
config.status: executing depfiles commands
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_auto_build
	make -j2
make[1]: Entering directory '/<<PKGBUILDDIR>>'
Making all in src
make[2]: Entering directory '/<<PKGBUILDDIR>>/src'
make  all-am
make[3]: Entering directory '/<<PKGBUILDDIR>>/src'
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o basicset.o basicset.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o bitboard.o bitboard.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o board.o board.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o boardmove.o boardmove.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o boardposition.o boardposition.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o boardtheme.o boardtheme.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o brutalchess.o brutalchess.cpp
g++ -DHAVE_CONFIG_H -I. -DPREFIX_DIR=\"/usr/share/games/brutalchess/\" -DMODELS_DIR=\"/usr/share/games/brutalchess//models/\" -DART_DIR=\"/usr/share/games/brutalchess//art/\" -DFONTS_DIR=\"\"  -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 -I/usr/include/freetype2 -I/usr/include/libpng16  -c -o brutalplayer.o brutalplayer.cpp
brutalchess.cpp: In function ‘bool resizeWindow(int, int)’:
brutalchess.cpp:51:9: error: ‘gluPerspective’ was not declared in this scope
   51 |         gluPerspective(30.0f, aspectRatio, 0.1f, 151.0f);       // Sets our persepective.
      |         ^~~~~~~~~~~~~~
make[3]: *** [Makefile:576: brutalchess.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:379: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[1]: *** [Makefile:428: all-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 returned exit code 2
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-games-devel mailing list