Bug#1120199: (various games): FTBFS: (various GLU things) not declared in this scope

Simon McVittie smcv at debian.org
Thu Nov 6 13:37:52 GMT 2025


On Thu, 06 Nov 2025 at 11:59:40 +0000, Santiago Vila wrote:
>guicontainer.cpp: In member function ‘virtual void GUIContainer::Display() const’:
>guicontainer.cpp:204:9: error: ‘gluOrtho2D’ was not declared in this scope; did you mean ‘glOrtho’?
>  204 |         gluOrtho2D( 0, _uiWinWidth-1, 0, _uiWinHeight-1 );
(and various similar FTBFS reports)

I believe this is because sdl12-compat 1.2.70 has an upstream change 
that makes it not implicitly include <GL/glu.h>. I've opened 
https://github.com/libsdl-org/sdl12-compat/issues/382 to report the 
build regression; if it's reverted upstream, I'll cherry-pick that into 
Debian, but if upstream decides that they are going to make this change 
permanent, I don't intend to make Debian diverge from that.

I think the best solution to this would be: because the affected games 
explicitly call functions in the "glu" namespace, they should "#include 
<GL/glu.h>" themselves, instead of relying on SDL to do that on their 
behalf. (This is an example of the wider meme "include what you use".)

Or, a workaround would be to add -DSDL_INCLUDE_GLU_H to affected games' 
CPPFLAGS or CFLAGS, instructing sdl12-compat to continue to be 
API-compatible with this particular legacy feature.

     smcv



More information about the Pkg-games-devel mailing list