when building Perl OpenGL on Linux/64bit with Perl 5.14, I get the following warnings, which I gather are bugs-waiting-to-happen:
pogl_glu.xs: In function '_s_marshal_glu_t_callback_combine':
pogl_glu.xs:231:2: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
pogl_glu.xs:249:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
pogl_glu.xs: In function 'XS_OpenGL_gluTessVertex_p':
pogl_glu.xs:1054:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
pogl_glu.xs:1087:21: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
pogl_glut.xs: In function 'generic_glut_timer_handler':
pogl_glut.xs:649:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
pogl_glut.xs: In function 'XS_OpenGL_glutTimerFunc':
pogl_glut.xs:1333:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Sorry I don't know enough XS to suggest a patch
We'll need more information as in the output of perl -V and the
version of OpenGL you are building. Thanks, Chris.
It looks like this is from the latest CPAN release.
I was able to fix the problems in the pogl_glu.xs
file but the ones in pogl_glut.xs were trickier to
get at as it will involve decoding how the current
implementation works and then refactoring it.
I would still appreciate the requested info for a
complete ticket. Thanks.
Please try this with the latest Perl OpenGL git, the compile output for the problem file(s) and your perl and platform information. I am unable to reproduce the problem and don't even know which lines are the actual source of the problem. Thanks. To get the curent git, just do
git clone git://pogl.git.sourceforge.net/gitroot/pogl/pogl pogl-git