[Mesa-dev] [Bug 102003] Mesa demos doesn't compile due to gles1

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Aug 1 15:19:30 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102003

            Bug ID: 102003
           Summary: Mesa demos doesn't compile due to gles1
           Product: Mesa
           Version: git
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Demos
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: mike at fireburn.co.uk
        QA Contact: mesa-dev at lists.freedesktop.org

Looks like some primitives are no longer defined for GLES1 

Making all in opengles1
make[3]: Entering directory '/home/fireburn/Demos/src/egl/opengles1'
  CC       clear.o
  CC       drawtex.o
  CC       eglfbdev.o
  CC       es1_info.o
  CC       gears.o
  CC       msaa.o
  CC       pbuffer.o
  CC       render_tex.o
  CC       texture_from_pixmap.o
  CC       torus.o
gears.c: In function ‘draw_gear’:
gears.c:205:7: error: unknown type name ‘GLushort’; did you mean ‘ushort’?
       GLushort indices[7];
       ^~~~~~~~
       ushort
torus.c: In function ‘make_cpal_texture’:
torus.c:224:10: error: unknown type name ‘GLushort’; did you mean ‘ushort’?
          GLushort *pal = (GLushort *) palette;
          ^~~~~~~~
          ushort
torus.c:224:27: error: ‘GLushort’ undeclared (first use in this function); did
you mean ‘ushort’?
          GLushort *pal = (GLushort *) palette;
                           ^~~~~~~~
                           ushort
torus.c:224:27: note: each undeclared identifier is reported only once for each
function it appears in
torus.c:224:37: error: expected expression before ‘)’ token
          GLushort *pal = (GLushort *) palette;
                                     ^
torus.c:234:20: error: ‘pal’ undeclared (first use in this function); did you
mean ‘fmal’?
          GLushort *pal = (GLushort *) palette;
                    ^~~
                    fmal
torus.c:234:37: error: expected expression before ‘)’ token
          GLushort *pal = (GLushort *) palette;
                                     ^
torus.c:244:37: error: expected expression before ‘)’ token
          GLushort *pal = (GLushort *) palette;
                                     ^
make[3]: *** [Makefile:563: gears.o] Error 1
make[3]: *** Waiting for unfinished jobs....
clear.c:40:45: error: unknown type name ‘GLclampf’; did you mean ‘GLclampx’?
 typedef void (GL_APIENTRY *type_ClearColor)(GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha);
                                             ^~~~~~~~
                                             GLclampx
clear.c:40:59: error: unknown type name ‘GLclampf’; did you mean ‘GLclampx’?
 typedef void (GL_APIENTRY *type_ClearColor)(GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha);
                                                           ^~~~~~~~
                                                           GLclampx
clear.c:40:75: error: unknown type name ‘GLclampf’; did you mean ‘GLclampx’?
 typedef void (GL_APIENTRY *type_ClearColor)(GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha);
                                                                          
^~~~~~~~
                                                                          
GLclampx
clear.c:40:90: error: unknown type name ‘GLclampf’; did you mean ‘GLclampx’?
 typedef void (GL_APIENTRY *type_ClearColor)(GLclampf red, GLclampf green,
GLclampf blue, GLclampf alpha);
                                                                               
          ^~~~~~~~
                                                                               
          GLclampx
make[3]: *** [Makefile:563: torus.o] Error 1
clear.c:43:8: error: unknown type name ‘type_ClearColor’
 static type_ClearColor fn_ClearColor;
        ^~~~~~~~~~~~~~~
clear.c: In function ‘init’:
clear.c:73:21: error: ‘type_ClearColor’ undeclared (first use in this
function); did you mean ‘fn_ClearColor’?
    fn_ClearColor = (type_ClearColor) get_proc("glClearColor");
                     ^~~~~~~~~~~~~~~
                     fn_ClearColor
clear.c:73:21: note: each undeclared identifier is reported only once for each
function it appears in
clear.c:73:38: error: expected ‘;’ before ‘get_proc’
    fn_ClearColor = (type_ClearColor) get_proc("glClearColor");
                                      ^~~~~~~~
clear.c:76:4: error: called object ‘fn_ClearColor’ is not a function or
function pointer
    fn_ClearColor(1.0, 0.4, 0.4, 0.0);
    ^~~~~~~~~~~~~
clear.c:43:24: note: declared here
 static type_ClearColor fn_ClearColor;
                        ^~~~~~~~~~~~~
make[3]: *** [Makefile:563: clear.o] Error 1
eglfbdev.c: In function ‘egl_init_for_fbdev’:
eglfbdev.c:201:28: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
    egl_dpy = eglGetDisplay((EGLNativeDisplayType) fd);
                            ^
make[3]: Leaving directory '/home/fireburn/Demos/src/egl/opengles1'
make[2]: *** [Makefile:419: all-recursive] Error 1
make[2]: Leaving directory '/home/fireburn/Demos/src/egl'
make[1]: *** [Makefile:435: all-recursive] Error 1
make[1]: Leaving directory '/home/fireburn/Demos/src'
make: *** [Makefile:442: all-recursive] Error 1

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170801/d0e1f2dd/attachment-0001.html>


More information about the mesa-dev mailing list