error when building panda with MesaGLES2

Panda3d 1.8.1 SDK
GCC version 4.8.1 20130909
Python 2.7.6
Mesa-libGLESv2-2 9.2.3-61.9.1
OpenSuSe 13.1 x64

panda/src/glstuff/glGraphicsStateGuardian_src.cxx:1069:19: error: invalid conversion from ‘void ()(GLuint, GLsizei, const GLchar const*, const GLint*) {aka void ()(unsigned int, int, const char const*, const int*)}’ to ‘PFNGLSHADERSOURCEPROC {aka void ()(unsigned int, int, const char**, const int)}’

At the moment i am lost, as i have not directly used mesa myself.
I am open to any ideas.

[T3] Building C++ object built/tmp/p3glgsg_config_glgsg.o
[T6] Building C++ object built/tmp/p3glgsg_glgsg.o
[T3] Building C++ object built/tmp/p3glesgsg_config_glesgsg.o
[T1] Building C++ object built/tmp/p3glesgsg_glesgsg.o
[T5] Building C++ object built/tmp/p3gles2gsg_config_gles2gsg.o
[T3] Building C++ object built/tmp/p3gles2gsg_gles2gsg.o
[T4] Linking dynamic library built/lib/libp3framework.so
[T4] Building C++ object built/tmp/pandaegg_pandaegg.o
[T4] Building C++ object built/tmp/p3mesadisplay_composite1.o
In file included from panda/src/glstuff/glstuff_src.cxx:30:0,
                 from panda/src/gles2gsg/gles2gsg.cxx:20:
panda/src/glstuff/glGraphicsStateGuardian_src.cxx: In member function ‘virtual void GLES2GraphicsStateGuardian::reset()’:
panda/src/glstuff/glGraphicsStateGuardian_src.cxx:1069:19: error: invalid conversion from ‘void (*)(GLuint, GLsizei, const GLchar* const*, const GLint*) {aka void (*)(unsigned int, int, const char* const*, const int*)}’ to ‘PFNGLSHADERSOURCEPROC {aka void (*)(unsigned int, int, const char**, const int*)}’ [-fpermissive]
   _glShaderSource = glShaderSource;
                   ^
[T5] Building C++ object built/tmp/p3x11display_composite1.o
In file included from built/include/get_x11.h:58:0,
                 from panda/src/x11display/x11GraphicsPipe.h:24,
                 from panda/src/x11display/config_x11display.cxx:16,
                 from panda/src/x11display/p3x11display_composite1.cxx:1:
/usr/include/X11/extensions/xf86dga.h:9:2: warning: #warning "xf86dga.h is obsolete and may be removed in the future." [-Wcpp]
 #warning "xf86dga.h is obsolete and may be removed in the future."
  ^
/usr/include/X11/extensions/xf86dga.h:10:2: warning: #warning "include <X11/extensions/Xxf86dga.h> instead." [-Wcpp]
 #warning "include <X11/extensions/Xxf86dga.h> instead."
  ^
The following command returned a non-zero value: g++ -ftemplate-depth-30 -fPIC -c -o built/tmp/p3gles2gsg_gles2gsg.o -Ibuilt/tmp -Ibuilt/include -I/usr/include/python2.7 -DMAKEPANDA= -Ipanda/src/gles2gsg -Ipanda/src/glstuff -pthread -msse2 -O2 -DBUILDING_PANDAGLES2 panda/src/gles2gsg/gles2gsg.cxx
Storing dependency cache.
Elapsed Time: 3 min 47 sec
Build process aborting.

You should compile a CVS build of Panda3D instead, or you should compile with --no-egl --no-gles --no-gles2 since you probably won’t need them.