Got the following error building OpenGL in CPAN. I modified the glext_procs.h header (see attachment) to fix. Was able to build it successfully after that.
cpan> make OpenGL
Running make for module 'OpenGL'
CHM/OpenGL-0.70.tar.gz
Has already been unwrapped into directory C:\Dwimperl\cpan\build\OpenGL-0.70-1
Configuring C/CH/CHM/OpenGL-0.70.tar.gz with Makefile.PL
run as perl Makefile.PL help
to show user options
$verbose set to 0 - enable by running as perl Makefile.PL verbose
freeglut.dll not executable (perms=%4o), changing permissions...
Installed freeglut.dll at utils
This looks like OpenGL Version: 4.2.0 - Build 10.18.10.3412
Found FreeGLUT v20801
Using interface: FREEGLUT
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for OpenGL
Writing MYMETA.yml and MYMETA.json
CHM/OpenGL-0.70.tar.gz
C:\Dwimperl\perl\bin\perl.exe Makefile.PL -- OK
Running make for C/CH/CHM/OpenGL-0.70.tar.gz
cp OpenGL.pm blib\lib/OpenGL.pm
AutoSplitting blib\lib/OpenGL.pm (blib\lib\auto\OpenGL)
cp Tessellation.pod blib\lib/OpenGL/Tessellation.pod
cp Array.pod blib\lib/OpenGL/Array.pod
cp Config.pm blib\lib/OpenGL/Config.pm
cp OpenGL.pod blib\lib/OpenGL.pod
Running Mkbootstrap for OpenGL ()
"C:\Dwimperl\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644 "OpenGL.bs"
"C:\Dwimperl\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonempty -- OpenGL.bs blib\arch\auto\OpenGL\OpenGL.bs 644
"C:\Dwimperl\perl\bin\perl.exe" "C:\Dwimperl\perl\site\lib\ExtUtils\xsubpp" -noprototypes -typemap C:\Dwimperl\perl\lib\
ExtUtils\typemap -typemap C:\Dwimperl\cpan\build\OpenGL-0.70-1\typemap OpenGL.xs > OpenGL.xsc
"C:\Dwimperl\perl\bin\perl.exe" -MExtUtils::Command -e mv -- OpenGL.xsc OpenGL.c
gcc -c -s -O2 -DWIN32 -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -
fno-strict-aliasing -mms-bitfields -s -O2 -DVERSION=\"0.70\" -DXS_VERSION=\"0.70\" "-IC:\Dwimperl\perl\lib\C
ORE" -DHAVE_VER -DGL_VERSION_USED=4.2 -DHAVE_FREEGLUT -DHAVE_FREEGLUT32 -DHAVE_GL -DHAVE_GLU -DHAVE_GLU32 -DHAVE_OPENGL
32 OpenGL.c
In file included from gl_util.h:27,
from OpenGL.xs:60:
glext_procs.h:582: error: redefinition of typedef 'GLsizeiptr'
glext_types.h:67: note: previous declaration of 'GLsizeiptr' was here
glext_procs.h:583: error: redefinition of typedef 'GLintptr'
glext_types.h:68: note: previous declaration of 'GLintptr' was here
glext_procs.h:701: error: redefinition of typedef 'GLchar'
glext_types.h:70: note: previous declaration of 'GLchar' was here
In file included from gl_util.h:27,
from OpenGL.xs:60:
glext_procs.h:1771: error: redefinition of typedef 'GLuint64'
glext_types.h:112: note: previous declaration of 'GLuint64' was here
glext_procs.h:1772: error: redefinition of typedef 'GLint64'
glext_types.h:113: note: previous declaration of 'GLint64' was here
In file included from gl_util.h:27,
from OpenGL.xs:60:
glext_procs.h:5265: error: redefinition of typedef 'GLcharARB'
glext_types.h:219: note: previous declaration of 'GLcharARB' was here
glext_procs.h:6092: error: redefinition of typedef 'GLsizeiptrARB'
glext_types.h:284: note: previous declaration of 'GLsizeiptrARB' was here
glext_procs.h:6093: error: redefinition of typedef 'GLintptrARB'
glext_types.h:285: note: previous declaration of 'GLintptrARB' was here
dmake.EXE: Error code 129, while making 'OpenGL.o'
CHM/OpenGL-0.70.tar.gz
C:\Dwimperl\c\bin\dmake.EXE -- NOT OK
Failed during this command:
CHM/OpenGL-0.70.tar.gz : make NO
Thanks - just wanted to flag for your team.
Thanks for reporting the problem and the fix.