View Issue Details

IDProjectCategoryView StatusLast Update
0004731Spring engineAIpublic2015-04-09 10:38
ReporterUnitedMarsupials Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version98.0 
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

Relationships

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

Activities

abma

2015-04-08 20:17

administrator   ~0014283

Last edited: 2015-04-08 20:19

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)

UnitedMarsupials

2015-04-08 20:23

reporter   ~0014285

> 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.

abma

2015-04-08 20:24

administrator   ~0014286

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

cleanrock

2015-04-08 20:42

reporter   ~0014291

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

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
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