Bug#1120186: pathogen: FTBFS: src/BuildState.cpp:36:8: error: 'GLUquadric' does not name a type

Santiago Vila sanvila at debian.org
Thu Nov 6 11:59:44 GMT 2025


Package: src:pathogen
Version: 1.1.1-7
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:pathogen, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean
   dh_auto_clean
	make -j2 clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -f pathogen src/App.o src/BuildState.o src/Font.o src/GameApp.o src/TitleState.o src/errormsg.o src/gfx.o src/main.o src/sound.o
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   dh_clean
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   dh_auto_configure
   dh_auto_build
	make -j2 INSTALL="install --strip-program=true"
make[1]: Entering directory '/<<PKGBUILDDIR>>'
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `dpkg-buildflags --get CXXFLAGS` -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/App.o src/App.cpp
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `dpkg-buildflags --get CXXFLAGS` -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/BuildState.o src/BuildState.cpp
In file included from src/main.h:41,
                 from src/BuildState.cpp:24:
src/BuildState.h:135:43: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
  135 |     struct HexagonMapLessOp : public std::binary_function<Position, Position, bool>
      |                                           ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/15/bits/stl_tree.h:67,
                 from /usr/include/c++/15/map:64,
                 from src/main.h:27:
/usr/include/c++/15/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
src/BuildState.cpp:36:8: error: ‘GLUquadric’ does not name a type
   36 | static GLUquadric *sQObj = NULL;
      |        ^~~~~~~~~~
In file included from src/main.h:41,
                 from src/App.cpp:23:
src/BuildState.h:135:43: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
  135 |     struct HexagonMapLessOp : public std::binary_function<Position, Position, bool>
      |                                           ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/15/bits/stl_tree.h:67,
                 from /usr/include/c++/15/map:64,
                 from src/main.h:27:
/usr/include/c++/15/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
src/BuildState.cpp: In constructor ‘BuildState::BuildState()’:
src/BuildState.cpp:115:5: error: ‘sQObj’ was not declared in this scope
  115 |     sQObj = gluNewQuadric();
      |     ^~~~~
src/App.cpp: In member function ‘virtual void App::run()’:
src/App.cpp:159:26: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  159 |             errorMessage("GL Error", "GL Error");
      |                          ^~~~~~~~~~
src/App.cpp:159:38: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  159 |             errorMessage("GL Error", "GL Error");
      |                                      ^~~~~~~~~~
src/BuildState.cpp:115:13: error: ‘gluNewQuadric’ was not declared in this scope
  115 |     sQObj = gluNewQuadric();
      |             ^~~~~~~~~~~~~
src/BuildState.cpp:117:30: error: ‘GLU_FLAT’ was not declared in this scope; did you mean ‘GL_FLAT’?
  117 |     gluQuadricNormals(sQObj, GLU_FLAT);
      |                              ^~~~~~~~
      |                              GL_FLAT
src/BuildState.cpp:117:5: error: ‘gluQuadricNormals’ was not declared in this scope
  117 |     gluQuadricNormals(sQObj, GLU_FLAT);
      |     ^~~~~~~~~~~~~~~~~
src/BuildState.cpp:118:5: error: ‘gluQuadricTexture’ was not declared in this scope
  118 |     gluQuadricTexture(sQObj, GL_FALSE);
      |     ^~~~~~~~~~~~~~~~~
src/BuildState.cpp:122:5: error: ‘gluSphere’ was not declared in this scope
  122 |     gluSphere(sQObj, 0.1, SPHERE_SLICES, SPHERE_STACKS);
      |     ^~~~~~~~~
src/BuildState.cpp:125:30: error: ‘GLU_NONE’ was not declared in this scope; did you mean ‘GL_NONE’?
  125 |     gluQuadricNormals(sQObj, GLU_NONE);
      |                              ^~~~~~~~
      |                              GL_NONE
src/BuildState.cpp:132:9: error: ‘gluCylinder’ was not declared in this scope
  132 |         gluCylinder(sQObj, radius, radius, getLevelTranslation(a),
      |         ^~~~~~~~~~~
src/BuildState.cpp: In destructor ‘virtual BuildState::~BuildState()’:
src/BuildState.cpp:141:22: error: ‘sQObj’ was not declared in this scope
  141 |     gluDeleteQuadric(sQObj);
      |                      ^~~~~
src/BuildState.cpp:141:5: error: ‘gluDeleteQuadric’ was not declared in this scope
  141 |     gluDeleteQuadric(sQObj);
      |     ^~~~~~~~~~~~~~~~
src/BuildState.cpp: In member function ‘virtual bool BuildState::init()’:
src/BuildState.cpp:150:27: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  150 |     mHexImage = loadImage("/usr/share/pathogen/hex.png");
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:151:28: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  151 |     mBallImage = loadImage("/usr/share/pathogen/ball.png");
      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:152:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  152 |     mShineImage = loadImage("/usr/share/pathogen/shine.png");
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:153:32: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  153 |     mLinkImages[0] = loadImage("/usr/share/pathogen/link1.png");
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:154:32: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  154 |     mLinkImages[1] = loadImage("/usr/share/pathogen/link2.png");
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:155:32: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  155 |     mLinkImages[2] = loadImage("/usr/share/pathogen/link3.png");
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:156:27: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  156 |     mMapImage = loadImage("/usr/share/pathogen/map.png");
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:157:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  157 |     mCircleImage = loadImage("/usr/share/pathogen/circle.png");
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:158:29: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  158 |     mBlockImage = loadImage("/usr/share/pathogen/block.png");
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp:159:30: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  159 |     mSquareImage = loadImage("/usr/share/pathogen/square.png");
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/BuildState.cpp: In member function ‘void BuildState::renderModel()’:
src/BuildState.cpp:866:5: error: ‘gluPerspective’ was not declared in this scope
  866 |     gluPerspective(45, (float)viewportWidth / viewportHeight, 0.01f, 5);
      |     ^~~~~~~~~~~~~~
g++ -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT `dpkg-buildflags --get CXXFLAGS` -Wdate-time -D_FORTIFY_SOURCE=2  -c -o src/Font.o src/Font.cpp
make[1]: *** [<builtin>: src/BuildState.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from src/main.h:41,
                 from src/Font.cpp:34:
src/BuildState.h:135:43: warning: ‘template<class _Arg1, class _Arg2, class _Result> struct std::binary_function’ is deprecated [-Wdeprecated-declarations]
  135 |     struct HexagonMapLessOp : public std::binary_function<Position, Position, bool>
      |                                           ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/15/bits/stl_tree.h:67,
                 from /usr/include/c++/15/map:64,
                 from src/main.h:27:
/usr/include/c++/15/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
src/Font.cpp: In member function ‘void Font::reload()’:
src/Font.cpp:101:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  101 |         errorMessage("Error", "Cannot load font image: %s", mFilename);
      |                      ^~~~~~~
src/Font.cpp:101:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  101 |         errorMessage("Error", "Cannot load font image: %s", mFilename);
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Font.cpp:110:22: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  110 |         errorMessage("Error", "No characters in font");
      |                      ^~~~~~~
src/Font.cpp:110:31: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
  110 |         errorMessage("Error", "No characters in font");
      |                               ^~~~~~~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j2 INSTALL="install --strip-program=true" returned exit code 2
make: *** [debian/rules:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the Pkg-games-devel mailing list