[Glamor] Error when I compile current glamor

son_of_the_osiris at interia.pl son_of_the_osiris at interia.pl
Thu Jul 12 01:28:18 PDT 2012


Hi. I cannot compile glamor (git master), I have got following error:
In file included from glamor.c:36:0:
glamor_priv.h:551:11: warning: redundant redeclaration of 
'glamor_create_pixmap' [-Wredundant-decls]
In file included from glamor_priv.h:40:0,
                  from glamor.c:36:
glamor.h:144:28: note: previous declaration of 'glamor_create_pixmap' 
was here
In file included from glamor.c:36:0:
glamor_priv.h:570:6: warning: redundant redeclaration of 
'glamor_init_pixmap_fbo' [-Wredundant-decls]
glamor_priv.h:566:6: note: previous declaration of 
'glamor_init_pixmap_fbo' was here
glamor_priv.h:571:6: warning: redundant redeclaration of 
'glamor_fini_pixmap_fbo' [-Wredundant-decls]
glamor_priv.h:567:6: note: previous declaration of 
'glamor_fini_pixmap_fbo' was here
glamor_priv.h:605:6: warning: redundant redeclaration of 
'glamor_create_gc' [-Wredundant-decls]
In file included from glamor_priv.h:40:0,
                  from glamor.c:36:
glamor.h:233:22: note: previous declaration of 'glamor_create_gc' was here
In file included from glamor.c:36:0:
glamor_priv.h:685:6: warning: redundant redeclaration of 
'glamor_glyph_unrealize' [-Wredundant-decls]
In file included from glamor_priv.h:40:0,
                  from glamor.c:36:
glamor.h:300:23: note: previous declaration of 'glamor_glyph_unrealize' 
was here
In file included from glamor.c:36:0:
glamor_priv.h:950:2: warning: redundant redeclaration of 
'glamor_upload_picture_to_texture' [-Wredundant-decls]
glamor_priv.h:924:2: note: previous declaration of 
'glamor_upload_picture_to_texture' was here
glamor_priv.h:954:1: warning: redundant redeclaration of 
'glamor_fixup_pixmap_priv' [-Wredundant-decls]
glamor_priv.h:578:6: note: previous declaration of 
'glamor_fixup_pixmap_priv' was here
In file included from glamor_priv.h:1007:0,
                  from glamor.c:36:
glamor_utils.h:801:0: warning: "ARRAY_SIZE" redefined [enabled by default]
In file included from /usr/include/xorg/privates.h:152:0,
                  from /usr/include/xorg/cursor.h:53,
                  from /usr/include/xorg/scrnintstr.h:53,
                  from glamor.h:32,
                  from glamor_priv.h:40,
                  from glamor.c:36:
/usr/include/xorg/dix.h:67:0: note: this is the location of the previous 
definition
glamor.c: In function 'glamor_init':
glamor.c:321:2: warning: passing argument 1 of 'glamor_gl_has_extension' 
discards 'const' qualifier from pointer target type [enabled by default]
In file included from glamor.c:36:0:
glamor_priv.h:638:6: note: expected 'char *' but argument is of type 
'const char *'
glamor.c:328:6: warning: passing argument 1 of 'glamor_gl_has_extension' 
discards 'const' qualifier from pointer target type [enabled by default]
In file included from glamor.c:36:0:
glamor_priv.h:638:6: note: expected 'char *' but argument is of type 
'const char *'
glamor.c:330:6: warning: passing argument 1 of 'glamor_gl_has_extension' 
discards 'const' qualifier from pointer target type [enabled by default]
In file included from glamor.c:36:0:
glamor_priv.h:638:6: note: expected 'char *' but argument is of type 
'const char *'
glamor.c:350:22: warning: assignment from incompatible pointer type 
[enabled by default]
glamor.c: In function 'glamor_close_screen':
glamor.c:536:2: warning: passing argument 1 of 'screen->CloseScreen' 
makes pointer from integer without a cast [enabled by default]
glamor.c:536:2: note: expected 'ScreenPtr' but argument is of type 'int'
glamor.c:536:2: error: too many arguments to function 'screen->CloseScreen'
make[2]: *** [glamor.lo] Błąd 1

I use mesa from git with these options:
./autogen.sh --prefix=/usr --with-dri-driverdir=/usr/lib/xorg/modules/dri \
         --with-dri-drivers= \
         --with-gallium-drivers=r300,swrast \
         --with-egl-platforms=x11,drm \
         --enable-gallium-llvm \
         --enable-gallium-egl \
         --disable-gallium-gbm \
         --enable-gallium-g3dvl \
         --enable-egl \
         --enable-gbm \
         --enable-xvmc \
         --enable-vdpau \
         --disable-debug \
         --enable-gles1 \
         --enable-gles2 \
         --enable-openvg \
         --enable-glx-tls \
         --enable-texture-float \
         --enable-shared-glapi \
         --disable-d3d1x

What is going on?


More information about the Glamor mailing list