<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: xm_buffer.c:226: error: too few arguments to function 'b->xm_visual->display->CreatePixmap'</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<P><FONT SIZE=2>In file included from /SOURCE/mesa/include/GL/xmesa.h:76,<BR>
from xm_api.c:66:<BR>
/SOURCE/mesa/include/GL/xmesa_xf86.h:172:1: warning: "CREATE_PIXMAP_USAGE_SCRATCH" redefined<BR>
In file included from /SOURCE/mesa/include/GL/xmesa_xf86.h:43,<BR>
from /SOURCE/mesa/include/GL/xmesa.h:76,<BR>
from xm_api.c:66:<BR>
./../../include/scrnintstr.h:201:1: warning: this is the location of the previous definition<BR>
In file included from /SOURCE/mesa/include/GL/xmesa.h:76,<BR>
from xm_buffer.c:33:<BR>
/SOURCE/mesa/include/GL/xmesa_xf86.h:172:1: warning: "CREATE_PIXMAP_USAGE_SCRATCH" redefined<BR>
In file included from /SOURCE/mesa/include/GL/xmesa_xf86.h:43,<BR>
from /SOURCE/mesa/include/GL/xmesa.h:76,<BR>
from xm_buffer.c:33:<BR>
./../../include/scrnintstr.h:201:1: warning: this is the location of the previous definition<BR>
xm_buffer.c: In function 'alloc_back_buffer':<BR>
xm_buffer.c:226: error: too few arguments to function 'b->xm_visual->display->CreatePixmap'<BR>
make: *** [xm_buffer.lo] Error 1<BR>
make: *** Waiting for unfinished jobs....<BR>
xm_api.c: In function 'setup_8bit_hpcr':<BR>
xm_api.c:877: error: too few arguments to function 'v->display->CreatePixmap'<BR>
make: *** [xm_api.lo] Error 1<BR>
bash-3.1#<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Brian Paul [<A HREF="mailto:brian.paul@tungstengraphics.com">mailto:brian.paul@tungstengraphics.com</A>]<BR>
Sent: Wed 12/5/2007 4:01 PM<BR>
To: i.r.wezeman@hetnet.nl<BR>
Cc: xorg@lists.freedesktop.org<BR>
Subject: Re: xm_buffer.c:226: error: too few arguments to function 'b->xm_visual->display->CreatePixmap'<BR>
<BR>
i.r.wezeman@hetnet.nl wrote:<BR>
> Today build drm and mesa without errors with branch master.<BR>
><BR>
> When building branch master on xorg/xserver with --prefix=/G and<BR>
> --with-mesa-source=/SOURCE/mesa the next error:<BR>
><BR>
><BR>
> Making all in X<BR>
> make[3]: Entering directory `/SOURCE/xorg/xserver/GL/mesa/X'<BR>
> /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H<BR>
> -I. -I../../../include -I/SOURCE/mesa/include -I../X -I../glapi<BR>
> -I../main -I../math -I../shader -I../swrast -I../swrast_setup -I../tnl<BR>
> -I.. -I../../glx -I../../../GL/glx -I../../../GL/include<BR>
> -I../../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -Wall<BR>
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes<BR>
> -Wmissing-declarations -Wnested-externs -fno-strict-aliasing<BR>
> -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT<BR>
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2<BR>
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0<BR>
> -I/G/lib/dbus-1.0/include -I/G/include -I../../../include<BR>
> -I../../../include -I../../../Xext -I../../../composite<BR>
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi<BR>
> -I../../../miext/shadow -I../../../miext/damage -I../../../render<BR>
> -I../../../randr -I../../../fb -DXFree86Server -g -O2 -MT xm_api.lo -MD<BR>
> -MP -MF .deps/xm_api.Tpo -c -o xm_api.lo xm_api.c<BR>
> /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H<BR>
> -I. -I../../../include -I/SOURCE/mesa/include -I../X -I../glapi<BR>
> -I../main -I../math -I../shader -I../swrast -I../swrast_setup -I../tnl<BR>
> -I.. -I../../glx -I../../../GL/glx -I../../../GL/include<BR>
> -I../../../hw/xfree86/os-support -DHAVE_DIX_CONFIG_H -Wall<BR>
> -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes<BR>
> -Wmissing-declarations -Wnested-externs -fno-strict-aliasing<BR>
> -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT<BR>
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2<BR>
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0<BR>
> -I/G/lib/dbus-1.0/include -I/G/include -I../../../include<BR>
> -I../../../include -I../../../Xext -I../../../composite<BR>
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi<BR>
> -I../../../miext/shadow -I../../../miext/damage -I../../../render<BR>
> -I../../../randr -I../../../fb -DXFree86Server -g -O2 -MT xm_buffer.lo<BR>
> -MD -MP -MF deps/xm_buffer.Tpo -c -o xm_buffer.lo xm_buffer.c<BR>
> gcc -DHAVE_CONFIG_H -I. -I../../../include -I/SOURCE/mesa/include<BR>
> -I../X -I../glapi -I../main -I../math -I../shader -I../swrast<BR>
> -I../swrast_setup -I../tnl -I.. -I../../glx -I../../../GL/glx<BR>
> -I../../../GL/include -I../../../hw/xfree86/os-support<BR>
> -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes<BR>
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs<BR>
> -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT<BR>
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2<BR>
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0<BR>
> -I/G/lib/dbus-1.0/include -I/G/include -I../../../include<BR>
> -I../../../include -I../../../Xext -I../../../composite<BR>
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi<BR>
> -I../../../miext/shadow -I../../../miext/damage -I../../../render<BR>
> -I../../../randr -I../../../fb -DXFree86Server -g -O2 -MT xm_api.lo -MD<BR>
> -MP -MF .deps/xm_api.Tpo -c xm_api.c -fPIC -DPIC -o libs/xm_api.o<BR>
> gcc -DHAVE_CONFIG_H -I. -I../../../include -I/SOURCE/mesa/include<BR>
> -I../X -I../glapi -I../main -I../math -I../shader -I../swrast<BR>
> -I../swrast_setup -I../tnl -I.. -I../../glx -I../../../GL/glx<BR>
> -I../../../GL/include -I../../../hw/xfree86/os-support<BR>
> -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wstrict-prototypes<BR>
> -Wmissing-prototypes -Wmissing-declarations -Wnested-externs<BR>
> -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT<BR>
> -DDBUS_API_SUBJECT_TO_CHANGE -I/G/include -I/G/include/freetype2<BR>
> -I/G/include/pixman-1 -I/G/include/hal -I/G/include/dbus-1.0<BR>
> -I/G/lib/dbus-1.0/include -I/G/include -I../../../include<BR>
> -I../../../include -I../../../Xext -I../../../composite<BR>
> -I../../../damageext -I../../../xfixes -I../../../Xi -I../../../mi<BR>
> -I../../../miext/shadow -I../../../miext/damage -I../../../render<BR>
> -I../../../randr -I../../../fb -DXFree86Server -g -O2 -MT xm_buffer.lo<BR>
> -MD -MP -MF .deps/xm_buffer.Tpo -c xm_buffer.c -fPIC -DPIC -o<BR>
> libs/xm_buffer.o<BR>
> xm_buffer.c: In function 'alloc_back_buffer':<BR>
> xm_buffer.c:226: error: too few arguments to function<BR>
> 'b->xm_visual->display->CreatePixmap'<BR>
> make[3]: *** [xm_buffer.lo] Error 1<BR>
> make[3]: *** Waiting for unfinished jobs....<BR>
> xm_api.c: In function 'setup_8bit_hpcr':<BR>
> xm_api.c:877: error: too few arguments to function<BR>
> 'v->display->CreatePixmap'<BR>
> make[3]: *** [xm_api.lo] Error 1<BR>
> make[3]: Leaving directory `/SOURCE/xorg/xserver/GL/mesa/X'<BR>
> make[2]: *** [all-recursive] Error 1<BR>
> make[2]: Leaving directory `/SOURCE/xorg/xserver/GL/mesa'<BR>
> make[1]: *** [all-recursive] Error 1<BR>
> make[1]: Leaving directory `/SOURCE/xorg/xserver/GL'<BR>
> make: *** [all-recursive] Error 1<BR>
<BR>
In Mesa/include/GL/xmesa_xf86.h, try adding this:<BR>
<BR>
#define CREATE_PIXMAP_USAGE_SCRATCH<BR>
<BR>
before line 172. Let me know what the compiler does.<BR>
<BR>
CREATE_PIXMAP_USAGE_SCRATCH _should_ be defined in scrnintstr.h if the<BR>
CreatePixmap function needs a 5th argument.<BR>
<BR>
I don't know why this isn't working otherwise.<BR>
<BR>
-Brian<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>