You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
simon@simon-laptop:~/projects/irrlicht/irrlicht-1.7.1/source/Irrlicht$ make
<cut>
COpenGLExtensionHandler.h:1800: error: ‘GLenum’ was not declared in this scope
COpenGLExtensionHandler.h:1800: error: ‘GLint’ was not declared in this scope
COpenGLDriver.cpp:4098: error: expected ‘}’ at end of input
COpenGLDriver.cpp:4098: error: expected ‘}’ at end of input
make: *** [COpenGLDriver.o] Error 1
simon@simon-laptop:~/projects/irrlicht/irrlicht-1.7.1/source/Irrlicht$