Compile error on Intrepid

/home/pako/xserver-xorg-video-ati-6.6.3# fakeroot ./debian/rules binary
 
mkdir stampdir
>stampdir/stampdir
if [ ! -e stampdir/patches ]; then \
		mkdir stampdir/patches; \
		ln -s stampdir/patches .pc; \
		echo 2 >stampdir/patches/.version; \
	fi; \
	if [ ! -e stampdir/log ]; then \
		mkdir stampdir/log; \
	fi; \
	if [ ! -e patches ]; then \
		ln -s debian/patches patches; \
	fi; \
	>stampdir/prepare
if ! [ `which quilt` ]; then \
		echo "Couldn't find quilt. Please install it or add it to the build-depends for this package."; \
		exit 1; \
	fi; \
	if quilt next; then \
	  echo -n "Applying patches..."; \
	  if quilt push -a -v >stampdir/log/patch 2>&1; then \
	    echo "successful."; \
	  else \
	    echo "failed! (check stampdir/log/patch for details)"; \
	    exit 1; \
	  fi; \
	else \
	  echo "No patches to apply"; \
	fi; \
	>stampdir/patch
01_ati_r128_update_chip_identification.diff
Applying patches...successful.
dh_testdir
test -d obj-i486-linux-gnu || mkdir obj-i486-linux-gnu
cd obj-i486-linux-gnu && \
	../configure --prefix=/usr --mandir=\${prefix}/share/man \
	             --infodir=\${prefix}/share/info --build=i486-linux-gnu --disable-static \
	             CFLAGS="-Wall -g -O2" 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i486-pc-linux-gnu
checking host system type... i486-pc-linux-gnu
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if XINERAMA is defined... yes
checking if RANDR is defined... yes
checking if RENDER is defined... yes
checking if XV is defined... yes
checking if XF86MISC is defined... yes
checking if DPMSExtension is defined... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XORG... yes
checking for ANSI C header files... (cached) yes
checking for /usr/include/xorg/dri.h... yes
checking for /usr/include/xorg/sarea.h... yes
checking for /usr/include/xorg/dristruct.h... yes
checking whether to include DRI support... yes
checking for DRI... yes
checking whether to include PIO support... yes, PIO
checking whether to include support for non-PCI devices... no, PCI only
checking whether to include DGA support... yes
checking whether to include TV Out support... yes
checking whether to enable EXA support... yes
checking exa.h usability... yes
checking exa.h presence... yes
checking for exa.h... yes
checking whether EXA version is at least 2.0.0... yes
checking for /usr/share/X11/sgml/defs.ent... no
checking for linuxdoc... no
checking for ps2pdf... /usr/bin/ps2pdf
checking Whether to build documentation... no
checking Whether to build pdf documentation... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating man/Makefile
config.status: creating config.h
config.status: executing depfiles commands
cd obj-i486-linux-gnu && /usr/bin/make
make[1]: Betrete Verzeichnis '/home/pako/xserver-xorg-video-ati-6.6.3/obj-i486-linux-gnu'
/usr/bin/make  all-recursive
make[2]: Betrete Verzeichnis '/home/pako/xserver-xorg-video-ati-6.6.3/obj-i486-linux-gnu'
Making all in src
make[3]: Betrete Verzeichnis '/home/pako/xserver-xorg-video-ati-6.6.3/obj-i486-linux-gnu/src'
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..    -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm -I/usr/include/X11/dri   -Wall -g -O2 -MT ati.lo -MD -MP -MF ".deps/ati.Tpo" -c -o ati.lo ../../src/ati.c; \
	then mv -f ".deps/ati.Tpo" ".deps/ati.Plo"; else rm -f ".deps/ati.Tpo"; exit 1; fi
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -Wall -g -O2 -MT ati.lo -MD -MP -MF .deps/ati.Tpo -c ../../src/ati.c  -fPIC -DPIC -o .libs/ati.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..    -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm -I/usr/include/X11/dri   -Wall -g -O2 -MT atiadapter.lo -MD -MP -MF ".deps/atiadapter.Tpo" -c -o atiadapter.lo ../../src/atiadapter.c; \
	then mv -f ".deps/atiadapter.Tpo" ".deps/atiadapter.Plo"; else rm -f ".deps/atiadapter.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -Wall -g -O2 -MT atiadapter.lo -MD -MP -MF .deps/atiadapter.Tpo -c ../../src/atiadapter.c  -fPIC -DPIC -o .libs/atiadapter.o
if /bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src -I..    -I/usr/include/xorg -I/usr/include/pixman-1   -I/usr/include/drm -I/usr/include/X11/dri   -Wall -g -O2 -MT atibus.lo -MD -MP -MF ".deps/atibus.Tpo" -c -o atibus.lo ../../src/atibus.c; \
	then mv -f ".deps/atibus.Tpo" ".deps/atibus.Plo"; else rm -f ".deps/atibus.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I../../src -I.. -I/usr/include/xorg -I/usr/include/pixman-1 -I/usr/include/drm -I/usr/include/X11/dri -Wall -g -O2 -MT atibus.lo -MD -MP -MF .deps/atibus.Tpo -c ../../src/atibus.c  -fPIC -DPIC -o .libs/atibus.o
In file included from ../../src/atibus.c:35:
../../src/atistruct.h:287: error: expected specifier-qualifier-list before 'pciVideoPtr'
../../src/atibus.c: In function 'ATIClaimResources':
../../src/atibus.c:78: error: 'struct _ATIRec' has no member named 'SharedVGA'
../../src/atibus.c:88: error: 'struct _ATIRec' has no member named 'SharedVGA'
../../src/atibus.c:89: error: 'struct _ATIRec' has no member named 'SharedVGA'
../../src/atibus.c:90: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:94: error: 'struct _ATIRec' has no member named 'SharedVGA'
../../src/atibus.c:104: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:106: error: 'struct _ATIRec' has no member named 'VGAWonderResources'
../../src/atibus.c:111: error: 'struct _ATIRec' has no member named 'SharedAccelerator'
../../src/atibus.c:117: error: 'struct _ATIRec' has no member named 'SharedAccelerator'
../../src/atibus.c:118: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:124: error: 'struct _ATIRec' has no member named 'SharedAccelerator'
../../src/atibus.c:131: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:147: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:151: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c: In function 'ATIClaimBusSlot':
../../src/atibus.c:176: error: 'pciVideoPtr' undeclared (first use in this function)
../../src/atibus.c:176: error: (Each undeclared identifier is reported only once
../../src/atibus.c:176: error: for each function it appears in.)
../../src/atibus.c:176: error: expected ';' before 'pVideo'
../../src/atibus.c:178: error: 'pVideo' undeclared (first use in this function)
../../src/atibus.c:179: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:181: warning: passing argument 4 of 'xf86ClaimPciSlot' from incompatible pointer type
../../src/atibus.c:181: error: too many arguments to function 'xf86ClaimPciSlot'
../../src/atibus.c:183: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:185: error: 'struct _ATIRec' has no member named 'iEntity'
../../src/atibus.c:188: error: 'struct _ATIRec' has no member named 'iEntity'
make[3]: *** [atibus.lo] Fehler 1
make[3]: Verlasse Verzeichnis '/home/pako/xserver-xorg-video-ati-6.6.3/obj-i486-linux-gnu/src'
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlasse Verzeichnis '/home/pako/xserver-xorg-video-ati-6.6.3/obj-i486-linux-gnu'
make[1]: *** [all] Fehler 2
make[1]: Verlasse Verzeichnis '/home/pako/xserver-xorg-video-ati-6.6.3/obj-i486-linux-gnu'
make: *** [build-stamp] Fehler 2