There're multiple problem, and more since you're trying to build under a x86_64 (amd64) system.
Unfortunately, code and compilation options are not compatible with this kind of configuration:
options lack of -DPIC -fPIC, code is trying to convert integer (32bits) to pointer (64bits).

Hopefully, I have a patch that try to clean up the mess : https://quoi.quest-ce.net/data/opengl/gles-1.0c-patch1.diff.
This patch apply on top of so called "OpenGL ES 1.0 Linux Sample Reference Implementation" (aka GLESonGL) sources : http://www.khronos.org/opengles/documentation/gles-1.0c.tgz.

BTW, if you really want to use OpenGL ES under Linux, see Mesa / Gallium 3D.
If not already done, an OpenGL ES support is going to be added to Mesa / Gallium3D: see http://www.phoronix.com/scan.php?page=news_item&px=NzI3Mw

Regards.

ydroneaud

11-16-2009, 08:32 AM

There's a new version which fixed problems reported by llvm (http://llvm.org/) / clang (http://clang.llvm.org/).
You can found it here: https://quoi.quest-ce.net/data/opengl/gles-1.0c-patch2.diff.

Regards.

paines

01-25-2010, 06:04 AM

Thanks for the patch. It compiled fine and the test programm works(using Ubuntuy 9.04 64bit). However, the examples from the redbook wont work. I managed to compile them (with a bit of work on the makefile) but however, execution shows only a black screen.