xm_buffer.c:226: error: too few arguments to function 'b->xm_visual->display->CreatePixmap'

Brian Paul brian.paul at tungstengraphics.com
Wed Dec 5 07:01:44 PST 2007


i.r.wezeman at hetnet.nl wrote:
> Today build drm and mesa without errors with branch master.
> 
> When building branch master on xorg/xserver with --prefix=/G and 
> --with-mesa-source=/SOURCE/mesa the next error:
> 
> 
> Making all in X
> make[3]: Entering directory `/SOURCE/xorg/xserver/GL/mesa/X'
> /bin/sh ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H 
> -I. -I../../../include -I/SOURCE/mesa/include -I../X -I../glapi 
> -I../main -I../math -I../shader -I../swrast -I../swrast_setup -I../tnl 
> -I.. -I../../glx -I../../../GL/glx -I../../../GL/include 
> -I../../../hw/xfree86/os-support   -DHAVE_DIX_CONFIG_H -Wall 
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -Wnested-externs -fno-strict-aliasing 
> -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT 
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2 
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0 
> -I/G/lib/dbus-1.0/include   -I/G/include   -I../../../include 
> -I../../../include -I../../../Xext -I../../../composite 
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi 
> -I../../../miext/shadow  -I../../../miext/damage -I../../../render 
> -I../../../randr -I../../../fb -DXFree86Server  -g -O2 -MT xm_api.lo -MD 
> -MP -MF .deps/xm_api.Tpo -c -o xm_api.lo xm_api.c
> /bin/sh ../../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H 
> -I. -I../../../include -I/SOURCE/mesa/include -I../X -I../glapi 
> -I../main -I../math -I../shader -I../swrast -I../swrast_setup -I../tnl 
> -I.. -I../../glx -I../../../GL/glx -I../../../GL/include 
> -I../../../hw/xfree86/os-support   -DHAVE_DIX_CONFIG_H -Wall 
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes 
> -Wmissing-declarations -Wnested-externs -fno-strict-aliasing 
> -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT 
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2 
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0 
> -I/G/lib/dbus-1.0/include   -I/G/include   -I../../../include 
> -I../../../include -I../../../Xext -I../../../composite 
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi 
> -I../../../miext/shadow  -I../../../miext/damage -I../../../render 
> -I../../../randr -I../../../fb -DXFree86Server  -g -O2 -MT xm_buffer.lo 
> -MD -MP -MF deps/xm_buffer.Tpo -c -o xm_buffer.lo xm_buffer.c
>  gcc -DHAVE_CONFIG_H -I. -I../../../include -I/SOURCE/mesa/include 
> -I../X -I../glapi -I../main -I../math -I../shader -I../swrast 
> -I../swrast_setup -I../tnl -I.. -I../../glx -I../../../GL/glx 
> -I../../../GL/include -I../../../hw/xfree86/os-support 
> -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
> -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT 
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2 
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0 
> -I/G/lib/dbus-1.0/include -I/G/include -I../../../include 
> -I../../../include -I../../../Xext -I../../../composite 
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi 
> -I../../../miext/shadow -I../../../miext/damage -I../../../render 
> -I../../../randr -I../../../fb -DXFree86Server -g -O2 -MT xm_api.lo -MD 
> -MP -MF .deps/xm_api.Tpo -c xm_api.c  -fPIC -DPIC -o libs/xm_api.o
>  gcc -DHAVE_CONFIG_H -I. -I../../../include -I/SOURCE/mesa/include 
> -I../X -I../glapi -I../main -I../math -I../shader -I../swrast 
> -I../swrast_setup -I../tnl -I.. -I../../glx -I../../../GL/glx 
> -I../../../GL/include -I../../../hw/xfree86/os-support 
> -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes 
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs 
> -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT 
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2 
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0 
> -I/G/lib/dbus-1.0/include -I/G/include -I../../../include 
> -I../../../include -I../../../Xext -I../../../composite 
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi 
> -I../../../miext/shadow -I../../../miext/damage -I../../../render 
> -I../../../randr -I../../../fb -DXFree86Server -g -O2 -MT xm_buffer.lo 
> -MD -MP -MF .deps/xm_buffer.Tpo -c xm_buffer.c  -fPIC -DPIC -o 
> libs/xm_buffer.o
> xm_buffer.c: In function 'alloc_back_buffer':
> xm_buffer.c:226: error: too few arguments to function 
> 'b->xm_visual->display->CreatePixmap'
> make[3]: *** [xm_buffer.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
> xm_api.c: In function 'setup_8bit_hpcr':
> xm_api.c:877: error: too few arguments to function 
> 'v->display->CreatePixmap'
> make[3]: *** [xm_api.lo] Error 1
> make[3]: Leaving directory `/SOURCE/xorg/xserver/GL/mesa/X'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/SOURCE/xorg/xserver/GL/mesa'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/SOURCE/xorg/xserver/GL'
> make: *** [all-recursive] Error 1

In Mesa/include/GL/xmesa_xf86.h, try adding this:

#define CREATE_PIXMAP_USAGE_SCRATCH

before line 172.  Let me know what the compiler does.

CREATE_PIXMAP_USAGE_SCRATCH _should_ be defined in scrnintstr.h if the 
CreatePixmap function needs a 5th argument.

I don't know why this isn't working otherwise.

-Brian



More information about the xorg mailing list