Newsgroup: it.comp.os.linux.iniziare
Titolo: problema con glu.h e glut.h

stavo compilando un programma, e m' e' apparso questo strano warning
[...]
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glu.h usability... no
checking GL/glu.h presence... yes
configure: WARNING: GL/glu.h: present but cannot be compiled
configure: WARNING: GL/glu.h: check for missing prerequisite headers?
configure: WARNING: GL/glu.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to 
bug-au...@gnu.org
. ##
configure: WARNING:     ## ------------------------------------ ##
checking for GL/glu.h... yes
checking GL/glut.h usability... no
checking GL/glut.h presence... yes
configure: WARNING: GL/glut.h: present but cannot be compiled
configure: WARNING: GL/glut.h: check for missing prerequisite headers?
configure: WARNING: GL/glut.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to 
bug-au...@gnu.org
. ##
configure: WARNING:     ## ------------------------------------ ##
checking for GL/glut.h... yes
[...]
piu' che altro perche', dopo, al make, m' e' apparso questo
[...]
In file included from stellarium.h:55,
                 from stelconfig.h:24,
                 from stelconfig.cpp:20:
/usr/include/GL/glu.h:261: parse error before `*' token
/usr/include/GL/glu.h:263: syntax error before `void'
/usr/include/GL/glu.h:264: syntax error before `void'
/usr/include/GL/glu.h:265: syntax error before `void'
/usr/include/GL/glu.h:266: syntax error before `void'
/usr/include/GL/glu.h:267: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:268: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:269: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:270: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:271: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:272: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:273: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:274: syntax error before `void'
/usr/include/GL/glu.h:275: syntax error before `void'
/usr/include/GL/glu.h:276: syntax error before `void'
/usr/include/GL/glu.h:277: syntax error before `void'
/usr/include/GL/glu.h:278: syntax error before `void'
/usr/include/GL/glu.h:279: syntax error before `void'
/usr/include/GL/glu.h:280: syntax error before `void'
/usr/include/GL/glu.h:281: syntax error before `void'
/usr/include/GL/glu.h:282: syntax error before `void'
/usr/include/GL/glu.h:283: syntax error before `const'
/usr/include/GL/glu.h:284: syntax error before `void'
/usr/include/GL/glu.h:285: syntax error before `const'
/usr/include/GL/glu.h:286: syntax error before `void'
/usr/include/GL/glu.h:287: syntax error before `void'
/usr/include/GL/glu.h:288: syntax error before `void'
/usr/include/GL/glu.h:289: syntax error before `*' token
/usr/include/GL/glu.h:290: syntax error before `*' token
/usr/include/GL/glu.h:291: syntax error before `*' token
/usr/include/GL/glu.h:292: syntax error before `void'
/usr/include/GL/glu.h:293: syntax error before `void'
/usr/include/GL/glu.h:294: syntax error before `void'
/usr/include/GL/glu.h:295: syntax error before `void'
/usr/include/GL/glu.h:296: syntax error before `void'
/usr/include/GL/glu.h:297: syntax error before `void'
/usr/include/GL/glu.h:298: syntax error before `void'
/usr/include/GL/glu.h:299: syntax error before `void'
/usr/include/GL/glu.h:300: syntax error before `void'
/usr/include/GL/glu.h:301: syntax error before `void'
/usr/include/GL/glu.h:302: syntax error before `void'
/usr/include/GL/glu.h:303: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:304: syntax error before `void'
/usr/include/GL/glu.h:305: syntax error before `void'
/usr/include/GL/glu.h:306: syntax error before `void'
/usr/include/GL/glu.h:307: syntax error before `void'
/usr/include/GL/glu.h:308: syntax error before `void'
/usr/include/GL/glu.h:309: syntax error before `void'
/usr/include/GL/glu.h:310: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:311: syntax error before `void'
/usr/include/GL/glu.h:312: syntax error before `void'
/usr/include/GL/glu.h:313: syntax error before `void'
/usr/include/GL/glu.h:314: syntax error before `void'
/usr/include/GL/glu.h:315: syntax error before `void'
/usr/include/GL/glu.h:316: syntax error before `void'
/usr/include/GL/glu.h:317: syntax error before `void'
/usr/include/GL/glu.h:318: syntax error before `void'
/usr/include/GL/glu.h:319: syntax error before `void'
/usr/include/GL/glu.h:320: syntax error before `GLAPIENTRY'
/usr/include/GL/glu.h:321: syntax error before `GLAPIENTRY'
[...]
cos' e' che ha sto benedetto glu.h?
-- 
#include <stdio.h>
main() {
  printf("%c%c %c%c%c\n", 66, 121, 90, 101, 68);
}

 cos' e' che ha sto benedetto glu.h?
Hai provato a guardarci dentro?
Ciao
  Andrea
-- 
Nulla e' piu' definitivo di una cosa provvisoria.

 Hai provato a guardarci dentro?
si', ma... guarda tu stesso (posto le righe dalla 260 alla 270
circa, i problemi iniziano dalla 261)
/* Internal convenience typedefs */
typedef void (GLAPIENTRY *_GLUfuncptr)();
GLAPI void GLAPIENTRY gluBeginCurve (GLUnurbs* nurb);
GLAPI void GLAPIENTRY gluBeginPolygon (GLUtesselator* tess);
GLAPI void GLAPIENTRY gluBeginSurface (GLUnurbs* nurb);
GLAPI void GLAPIENTRY gluBeginTrim (GLUnurbs* nurb);
GLAPI GLint GLAPIENTRY gluBuild1DMipmapLevels (GLenum target, GLint internalForm
at, GLsizei width, GLenum format, GLenum type, GLint level, GLint base, GLint ma
x, const void *data);
GLAPI GLint GLAPIENTRY gluBuild1DMipmaps (GLenum target, GLint internalFormat, G
Lsizei width, GLenum format, GLenum type, const void *data);
GLAPI GLint GLAPIENTRY gluBuild2DMipmapLevels (GLenum target, GLint internalForm
at, GLsizei width, GLsizei height, GLenum format, GLenum type, GLint level, GLin
t base, GLint max, const void *data);
GLAPI GLint GLAPIENTRY gluBuild2DMipmaps (GLenum target, GLint internalFormat, G
Lsizei width, GLsizei height, GLenum format, GLenum type, const void *data);
GLAPI GLint GLAPIENTRY gluBuild3DMipmapLevels (GLenum target, GLint internalForm
at, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GL
int level, GLint base, GLint max, const void *data);
