How to build DRI2 with xorg-server 1.5?
Alan Hourihane
alanh at fairlite.co.uk
Thu Jul 3 02:08:51 PDT 2008
DRI2 will have to be disabled by default for Xserver 1.5 as libdrm 2.3.1
doesn't have the drmBO functionality.
Alan.
On Thu, 2008-07-03 at 11:04 +0200, Stefan Dirsch wrote:
> Hi
>
> Since I switched to libdrm 2.3.1 (official release) - which forced me
> to current Mesa git (commit 6befdca, instead of Mesa 7.1 RC1) - I
> cannot build DRI2 any longer with xorg-server 1.4.99.905. Build works
> with "--disable-dri2". libdrm 2.3.1 and Mesa git (commit 6befdca) is
> installed when I tried to build xorg-server.
>
> Making all in dri2
> make[4]: Entering directory `/usr/src/packages/BUILD/xorg-server-1.4.99.905/hw/xfree86/dri2'
> /bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../include -DHAVE_XORG_CONFIG_H -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 -I/usr/include/freetype2 -I/usr/include/pixman-1 -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 -DHAVE_XORG_CONFIG_H -DXF86PM -I/usr/include/drm -I../../../hw/xfree86/common -I../../../hw/xfree86/os-support/bus -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -fno-strict-aliasing -MT libdri2_la-dri2.lo -MD -MP -MF .deps/libdri2_la-dri2.Tpo -c -o libdri2_la-dri2.lo `test -f 'dri2.c' || echo './'`dri2.c
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I../../../include -DHAVE_XORG_CONFIG_H -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 -I/usr/include/freetype2 -I/usr/include/pixman-1 -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 -DHAVE_XORG_CONFIG_H -DXF86PM -I/usr/include/drm -I../../../hw/xfree86/common -I../../../hw/xfree86/os-support/bus -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -g -fno-strict-aliasing -MT libdri2_la-dri2.lo -MD -MP -MF .deps/libdri2_la-dri2.Tpo -c dri2.c -fPIC -DPIC -o .libs/libdri2_la-dri2.o
> dri2.c:60: error: expected specifier-qualifier-list before 'drmBO'
> dri2.c: In function 'DRI2ScreenAllocEvent':
> dri2.c:86: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:90: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:90: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:93: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:93: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:95: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:95: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:97: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:100: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:100: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:101: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c: In function 'DRI2ScreenCommitEvents':
> dri2.c:109: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:109: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c: In function 'DRI2PostBufferAttach':
> dri2.c:195: error: 'struct _DRI2Screen' has no member named 'getPixmapHandle'
> dri2.c: In function 'DRI2ClipNotify':
> dri2.c:217: error: 'struct _DRI2Screen' has no member named 'locked'
> dri2.c:218: error: 'struct _DRI2Screen' has no member named 'beginClipNotify'
> dri2.c:219: error: 'struct _DRI2Screen' has no member named 'locked'
> dri2.c:222: error: 'struct _DRI2Screen' has no member named 'ClipNotify'
> dri2.c:223: error: 'struct _DRI2Screen' has no member named 'ClipNotify'
> dri2.c: In function 'DRI2HandleExposures':
> dri2.c:238: error: 'struct _DRI2Screen' has no member named 'HandleExposures'
> dri2.c:239: error: 'struct _DRI2Screen' has no member named 'HandleExposures'
> dri2.c:246: error: 'struct _DRI2Screen' has no member named 'locked'
> dri2.c:247: error: 'struct _DRI2Screen' has no member named 'endClipNotify'
> dri2.c:248: error: 'struct _DRI2Screen' has no member named 'locked'
> dri2.c: In function 'DRI2CloseScreen':
> dri2.c:257: error: 'struct _DRI2Screen' has no member named 'ClipNotify'
> dri2.c:258: error: 'struct _DRI2Screen' has no member named 'HandleExposures'
> dri2.c:260: warning: implicit declaration of function 'drmBOUnmap'
> dri2.c:260: warning: nested extern declaration of 'drmBOUnmap'
> dri2.c:260: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c:261: warning: implicit declaration of function 'drmBOUnreference'
> dri2.c:261: warning: nested extern declaration of 'drmBOUnreference'
> dri2.c:261: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c: In function 'DRI2CreateDrawable':
> dri2.c:295: error: 'struct _DRI2Screen' has no member named 'nextHandle'
> dri2.c:300: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c: In function 'DRI2ReemitDrawableInfo':
> dri2.c:344: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c: In function 'DRI2Connect':
> dri2.c:361: error: 'struct _DRI2Screen' has no member named 'driverName'
> dri2.c:362: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c: In function 'DRI2GetPixmapHandle':
> dri2.c:383: error: 'struct _DRI2Screen' has no member named 'getPixmapHandle'
> dri2.c: In function 'DRI2SetupSAREA':
> dri2.c:393: error: 'struct _DRI2Screen' has no member named 'sareaSize'
> dri2.c:394: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:398: error: 'DRM_BO_FLAG_READ' undeclared (first use in this function)
> dri2.c:398: error: (Each undeclared identifier is reported only once
> dri2.c:398: error: for each function it appears in.)
> dri2.c:398: error: 'DRM_BO_FLAG_WRITE' undeclared (first use in this function)
> dri2.c:398: error: 'DRM_BO_FLAG_MAPPABLE' undeclared (first use in this function)
> dri2.c:399: error: 'DRM_BO_FLAG_MEM_LOCAL' undeclared (first use in this function)
> dri2.c:399: error: 'DRM_BO_FLAG_SHAREABLE' undeclared (first use in this function)
> dri2.c:401: warning: implicit declaration of function 'drmBOCreate'
> dri2.c:401: warning: nested extern declaration of 'drmBOCreate'
> dri2.c:401: error: 'struct _DRI2Screen' has no member named 'sareaSize'
> dri2.c:401: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c:404: warning: implicit declaration of function 'drmBOMap'
> dri2.c:404: warning: nested extern declaration of 'drmBOMap'
> dri2.c:404: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c:405: error: 'struct _DRI2Screen' has no member named 'sarea'
> dri2.c:406: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c:412: error: 'struct _DRI2Screen' has no member named 'sareaSize'
> dri2.c:412: error: 'struct _DRI2Screen' has no member named 'sareaBO'
> dri2.c:413: error: 'struct _DRI2Screen' has no member named 'sarea'
> dri2.c:413: error: 'struct _DRI2Screen' has no member named 'sareaSize'
> dri2.c:415: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:415: error: 'struct _DRI2Screen' has no member named 'sarea'
> dri2.c:416: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:417: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:419: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:421: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c:421: error: 'struct _DRI2Screen' has no member named 'buffer'
> dri2.c: In function 'DRI2ScreenInit':
> dri2.c:435: error: 'struct _DRI2Screen' has no member named 'driverName'
> dri2.c:436: error: 'struct _DRI2Screen' has no member named 'nextHandle'
> dri2.c:438: error: 'struct _DRI2Screen' has no member named 'getPixmapHandle'
> dri2.c:439: error: 'struct _DRI2Screen' has no member named 'beginClipNotify'
> dri2.c:440: error: 'struct _DRI2Screen' has no member named 'endClipNotify'
> dri2.c:442: error: 'struct _DRI2Screen' has no member named 'ClipNotify'
> dri2.c:444: error: 'struct _DRI2Screen' has no member named 'HandleExposures'
> ICECC[21782] 21:12:38: Compiled on 10.11.0.140
> make[4]: *** [libdri2_la-dri2.lo] Error 1
> make[4]: Leaving directory `/usr/src/packages/BUILD/xorg-server-1.4.99.905/hw/xfree86/dri2'
> make[3]: *** [all-recursive] Error 1
> make[3]: Leaving directory `/usr/src/packages/BUILD/xorg-server-1.4.99.905/hw/xfree86'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/usr/src/packages/BUILD/xorg-server-1.4.99.905/hw/xfree86'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/packages/BUILD/xorg-server-1.4.99.905/hw'
> make: *** [all-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.87838 (%build)
>
> Any hints? Which bits are missing/wrong this time?
>
> Best regards,
> Stefan
>
> Public Key available
> ------------------------------------------------------
> Stefan Dirsch (Res. & Dev.) SUSE LINUX Products GmbH
> Tel: 0911-740 53 0 Maxfeldstraße 5
> FAX: 0911-740 53 479 D-90409 Nürnberg
> http://www.suse.de Germany
> -----------------------------------------------------------------
> SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
> -----------------------------------------------------------------
> _______________________________________________
> xorg mailing list
> xorg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xorg
More information about the xorg
mailing list