2025-07-19 06:34 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004731Spring engineAIpublic2015-04-09 10:38
ReporterUnitedMarsupials 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionduplicate 
Product Version98.0 
Target VersionFixed in Version 
Summary0004731: headlessStubs/glstub.c out of sync with the lastest GL/glext.h
DescriptionTo catch just this sort of errors, I excluded the toplevel include/ subdirectory when extracting the tarball. Instead of the glext.h bundled with SpringRTS, the system one was installed leading to the following error:

/home/ports/games/spring/work/spring_98.0/rts/lib/headlessStubs/glstub.c:133:21: error: conflicting types for 'glShaderSource'
GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length) {}
                    ^
/opt/include/GL/glext.h:777:21: note: previous declaration is here
GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
Additional InformationThe patch seems trivial, but might break things on older systems using older GL:

--- rts/lib/headlessStubs/glstub.c 2014-10-07 16:09:52.000000000 -0400
+++ rts/lib/headlessStubs/glstub.c 2015-04-08 14:03:33.000000000 -0400
@@ -131,5 +131,5 @@
 GLAPI void APIENTRY glGetShaderiv(GLuint shader, GLenum pname, GLint *params) {}
 GLAPI void APIENTRY glGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog) {}
-GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length) {}
+GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const *string, const GLint *length) {}
 
 GLAPI void APIENTRY glUniform1fARB(GLint location, GLfloat v0) {}
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
duplicate of 0004733assignedjK remove include/* from spring repo 
related to 0004729resolved Compiling with clang on FreeBSD dies because of math-functions 
+Relationships

-Notes

~0014283

abma (administrator)

Last edited: 2015-04-08 20:19

View 2 revisions

imo you should switch to latest development branch, very likely you get different errors (and don't report things which are fixed).

just FYI: we don't maintain old releases (lack of resources), so we won't release a 98.1 which contains such bugfixes.

(this error very likely isn't fixed)

~0014285

UnitedMarsupials (reporter)

> imo you should switch to latest development branch

I'm trying to fix FreeBSD port games/spring to save it from being deleted for remaining broken too long. At FreeBSD we try to use the latest _releases_, rather than development, beta or similar things whenever possible.

~0014286

abma (administrator)

ok, this makes it more difficult for me and others help then.

~0014291

cleanrock (reporter)

Just use the patches you need to get your distro package to build.
This is very common in ArchLinux packages for example.
+Notes

-Issue History
Date Modified Username Field Change
2015-04-08 20:11 UnitedMarsupials New Issue
2015-04-08 20:17 abma Note Added: 0014283
2015-04-08 20:17 abma Severity minor => major
2015-04-08 20:17 abma Relationship added related to 0004729
2015-04-08 20:19 abma Note Edited: 0014283 View Revisions
2015-04-08 20:23 UnitedMarsupials Note Added: 0014285
2015-04-08 20:24 abma Note Added: 0014286
2015-04-08 20:42 cleanrock Note Added: 0014291
2015-04-09 10:37 abma Relationship added duplicate of 0004733
2015-04-09 10:38 abma Status new => closed
2015-04-09 10:38 abma Assigned To => abma
2015-04-09 10:38 abma Resolution open => duplicate
+Issue History