Hello, I added an SDL_glfuncts.h from another SDL port, in fact it was the first one from google, searching for that file.
After that I removed the code in glut.c that referenced the console, and returned correct width and height in glut.c:getVImode and glut.c:glutGet from rmode->viWidth and viHeight, after this libgl2gx.a built and I was hoping it would be fine. I cant get tectures to display, and gl2gx code gets complicated for me after a while trying to hunt down what its doing. also, memtracer.h from google is a replacement malloc and free the gl2gx author was using, you should be able to ignore these warnings as it can still use normal free and malloc just fine. So sorry, I could build latest gl2gx with minor mods, but cant get textures to display. Id also like to download a prebuilt working libgl2gx.a but cant find one anywhere either, sorry. Maybe this is of some help to you.
Also, Im not using glutMainLoop, Im using only glutInit(...), glutInitDisplayMode(...), glutGet(...) with GLUT_SCREEN_WIDTH and GLUT_SCREEN_HEIGHT, glutInitWindowSize(...) and glutSwapBuffers(), bypassing any glutMainLoop idling errors or other problems, but still no texturing.. I'll try again another day :)