Ticket #1167 (closed bug: fixed)

Opened 12 years ago

Last modified 12 years ago

some new types not handled by gen::opengl step

Reported by: fperrad Owned by:
Priority: normal Milestone:
Component: configure Version: 1.7.0
Severity: medium Keywords:
Cc: japhb Language:
Patch status: new Platform: linux

Description

on Ubuntu 9.10 Karmic, i386 with :

  • gcc4.4.1
  • freeglut3 2.4.0

two types (GLsync & GLint64*) aren't handled by the configure step gen::opengl.

gen::opengl -         Generating OpenGL bindings...
In OpenGL header '/usr/include/GL/glext.h', prototype 'glGetInteger64i_v', can't handle type 'GLint64*'; original prototype:
  GLAPI void APIENTRY glGetInteger64i_v (GLenum, GLuint, GLint64 *);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glGetBufferParameteri64v', can't handle type 'GLint64*'; original prototype:
  GLAPI void APIENTRY glGetBufferParameteri64v (GLenum, GLenum, GLint64 *);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glFenceSync', can't handle type 'GLsync'; original prototype:
  GLAPI GLsync APIENTRY glFenceSync (GLenum, GLbitfield);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glIsSync', can't handle type 'GLsync'; original prototype:
  GLAPI GLboolean APIENTRY glIsSync (GLsync);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glDeleteSync', can't handle type 'GLsync'; original prototype:
  GLAPI void APIENTRY glDeleteSync (GLsync);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glClientWaitSync', can't handle type 'GLsync'; original prototype:
  GLAPI GLenum APIENTRY glClientWaitSync (GLsync, GLbitfield, GLuint64);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glWaitSync', can't handle type 'GLsync'; original prototype:
  GLAPI void APIENTRY glWaitSync (GLsync, GLbitfield, GLuint64);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glGetInteger64v', can't handle type 'GLint64*'; original prototype:
  GLAPI void APIENTRY glGetInteger64v (GLenum, GLint64 *);

In OpenGL header '/usr/include/GL/glext.h', prototype 'glGetSynciv', can't handle type 'GLsync'; original prototype:
  GLAPI void APIENTRY glGetSynciv (GLsync, GLenum, GLsizei, GLsizei *, GLint *);

......................done.

Attachments

gen_opengl.patch Download (1.1 KB) - added by fperrad 12 years ago.

Change History

Changed 12 years ago by mikehh

I am also getting this on Ubuntu 9.10 amd64

it is introduced by the package mesa-common-dev which brings in /usr/include/GL/glext.h

if I attempt to remove this (in synaptic) it wants to remove a whole lot of other -dev packages including, amongst others, freeglut3-dev (needed for parrot), and libqt4-dev, kdelibs5-dev which I need for other things.

Changed 12 years ago by fperrad

  • cc japhb added
  • patch set to new

As far I understand the step gen::opengl, the tip is just to add new key/value pairs in the hash %C_TYPE (see patch).

Due to  http://rt.perl.org/rt3//Public/Bug/Display.html?id=53406 some prototypes must be ignored.

Changed 12 years ago by fperrad

Changed 12 years ago by mikehh

the patch works for me at r42205 - Ubuntu 9.10 amd64

gen:opengl - no warninngs/errors

make test passes

Changed 12 years ago by japhb

  • status changed from new to closed
  • resolution set to fixed

Patch applied verbatim, thanks fperrad++!

Note: See TracTickets for help on using tickets.