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

i.r.wezeman at hetnet.nl i.r.wezeman at hetnet.nl
Mon Dec 10 03:53:38 PST 2007


In file included from /SOURCE/mesa/include/GL/xmesa.h:76,
                 from xm_api.c:66:
/SOURCE/mesa/include/GL/xmesa_xf86.h:172:1: warning: "CREATE_PIXMAP_USAGE_SCRATCH" redefined
In file included from /SOURCE/mesa/include/GL/xmesa_xf86.h:43,
                 from /SOURCE/mesa/include/GL/xmesa.h:76,
                 from xm_api.c:66:
./../../include/scrnintstr.h:201:1: warning: this is the location of the previous definition
In file included from /SOURCE/mesa/include/GL/xmesa.h:76,
                 from xm_buffer.c:33:
/SOURCE/mesa/include/GL/xmesa_xf86.h:172:1: warning: "CREATE_PIXMAP_USAGE_SCRATCH" redefined
In file included from /SOURCE/mesa/include/GL/xmesa_xf86.h:43,
                 from /SOURCE/mesa/include/GL/xmesa.h:76,
                 from xm_buffer.c:33:
./../../include/scrnintstr.h:201:1: warning: this is the location of the previous definition
xm_buffer.c: In function 'alloc_back_buffer':
xm_buffer.c:226: error: too few arguments to function 'b->xm_visual->display->CreatePixmap'
make: *** [xm_buffer.lo] Error 1
make: *** 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: *** [xm_api.lo] Error 1
bash-3.1# 



-----Original Message-----
From: Brian Paul [mailto:brian.paul at tungstengraphics.com]
Sent: Wed 12/5/2007 4:01 PM
To: i.r.wezeman at hetnet.nl
Cc: xorg at lists.freedesktop.org
Subject: Re: xm_buffer.c:226: error: too few arguments to function	'b->xm_visual->display->CreatePixmap'
 
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg/attachments/20071210/69bb1120/attachment.html>


More information about the xorg mailing list