Yes, this would be a problem.
gl.h defines GL_VERSION_1_2 and glext.h has an ifndef around the glTexImage3D block. So that would explain that problem. Unfortunately, it does not provide the prototype.
The situation is this:
lrwxrwxrwx 1 root root 35 Aug 18 00:03 gl.h -> /usr/lib/opengl/nvidia/include/gl.hlrwxrwxrwx 1 root root 38 Aug 18 00:03 glext.h -> /usr/lib/opengl/global/include/glext.h
gl.h appears to be nvidia's, and glext.h appears to be general. I'm guessing nvidia's headers are at fault, any ideas?
I found this
link, to a gl.h file from nvidia which has a glTexImage3D prototype, but it looks old (last modified Feb 2003), and 6111 is a pretty recent release, I have no idea what's going on with these headers.
Thanks for your help.