#14 Modular build error for glxdri2.c

open
nobody
None
5
2009-03-06
2009-03-06
Matthew
No

Hello, I am carefully following your modular build instructions at http://xf4vnc.sourceforge.net/modular.html, but when building xserver, I encounter error for glxdri2.c as follows....

./autogen.sh --prefix=${DEST} --disable-dbus --enable-glx --with-mesa-source=${MESA}
** (note, I get warning "--disable-dbus is unknown option") **
make install

...
gcc -DHAVE_CONFIG_H -I. -I../include -I../hw/xfree86/os-support -I../hw/xfree86/os-support/bus -I../hw/xfree86/common -I../hw/xfree86/dri -I../hw/xfree86/dri2 -I../mi -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/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/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 -I/usr/include/drm -I/usr/include/drm -I/usr/include/X11/dri -DXFree86Server -g -O2 -MT glxdri2.lo -MD -MP -MF .deps/glxdri2.Tpo -c glxdri2.c -fPIC -DPIC -o .libs/glxdri2.o
glxdri2.c:378: error: variable 'loaderExtension' has initializer but incomplete type
glxdri2.c:379: error: extra brace group at end of initializer
glxdri2.c:379: error: (near initialization for 'loaderExtension')
glxdri2.c:379: warning: excess elements in struct initializer
glxdri2.c:379: warning: (near initialization for 'loaderExtension')
glxdri2.c:380: warning: excess elements in struct initializer
glxdri2.c:380: warning: (near initialization for 'loaderExtension')
glxdri2.c:382: warning: excess elements in struct initializer
glxdri2.c:382: warning: (near initialization for 'loaderExtension')
glxdri2.c:386: error: invalid use of incomplete typedef '__DRIloaderExtension'
make[1]: *** [glxdri2.lo] Error 1
make[1]: Leaving directory `/usr/local/src/xf4vnc/modular/src/xserver/glx'
make: *** [install-recursive] Error 1

Here is snippet of problematic code, glxdri2.c, line 379:

static const __DRIloaderExtension loaderExtension = {
{ __DRI_LOADER, __DRI_LOADER_VERSION },
dri2ReemitDrawableInfo,
dri2PostDamage
};

I notice __DRI_LOADER and __DRI_LOADER_VERSION are not found defined anywhere? It seems that instead DRI2_DRI_LOADER should be used here instead?

My system details:
- x86
- Gentoo
- kernel 2.6.28
- gcc version 4.1.2
- pertinent ebuild packages installed:
x11-base/xorg-x11-7.4
x11-base/xorg-server-1.5.3-r2
media-libs/mesa-7.3
x11-drivers/xf86-video-intel-2.6.2

Perhaps I am using too new a version of xorg-server? The build instructions say "Prerequisites: You'll need an installation of the modular X.org distribution, version X11R7.0 or later."

Any ideas? Thank you very much...

Discussion


Log in to post a comment.