Try to pull the latest mesa/drm.
On Sat, Oct 10, 2009 at 7:09 PM, Arthur Marsh <> wrote:
Hi, I did an apt-get source mesa and obtained the 7.6 sources, then
added r600 into debian/rules and attempted to build, but it failed at
this stage:

gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver
-I../../../../../include -I../../../../../src/mesa
-I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri
-I/usr/include/drm    -Wall -g -O2 -Wall -Wmissing-prototypes -std=c99
-ffast-math -fno-strict-aliasing  -fPIC  -DUSE_X86_64_ASM -D_GNU_SOURCE
-DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R600  r600_cmdbuf.c -o r600_cmdbuf.o
r600_cmdbuf.c: In function ‘r600_cs_emit’:
r600_cmdbuf.c:331: error: storage size of ‘cs_cmd’ isn’t known
r600_cmdbuf.c:332: error: array type has incomplete element type
r600_cmdbuf.c:353: error: ‘RADEON_CHUNK_ID_IB’ undeclared (first use in
this function)
r600_cmdbuf.c:353: error: (Each undeclared identifier is reported only once
r600_cmdbuf.c:353: error: for each function it appears in.)
r600_cmdbuf.c:358: error: ‘RADEON_CHUNK_ID_RELOCS’ undeclared (first use
in this function)
r600_cmdbuf.c:373: error: ‘DRM_RADEON_CS’ undeclared (first use in this
r600_cmdbuf.c:332: warning: unused variable ‘cs_chunk’
r600_cmdbuf.c:331: warning: unused variable ‘cs_cmd’
make[6]: *** [r600_cmdbuf.o] Error 1
make[6]: Leaving directory
make[5]: *** [subdirs] Error 1
make[5]: Leaving directory
make[4]: *** [default] Error 1
make[4]: Leaving directory
make[3]: *** [driver_subdirs] Error 2
make[3]: Leaving directory
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory
make[1]: *** [default] Error 1
make[1]: Leaving directory
make: *** [debian/stamp/x86_64-linux-gnu-build-dri] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1324:
dpkg-buildpackage -rfakeroot -D -us -uc -nc failed

Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
Mesa3d-users mailing list