[ubuntu-x] Help building intel driver

Geir Ove Myhr gomyhr at gmail.com
Mon Mar 9 20:17:40 GMT 2009


Hi everyone,

I'm trying to build the intel driver to test a proposed patch for bug
273306 in launchpad (patch at the upstream bug report at
https://bugs.freedesktop.org/show_bug.cgi?id=20463).

I have set up a machine with Jaunty, added
http://ppa.launchpad.net/xorg-edgers/ppa/ubuntu to
/etc/apt/sources.list to get the latest supporting packages and run
`apt-get build-dep xserver-xorg-video-intel` to get the development
packages necessary for building the intel driver.

After `git clone
git://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel` to
downlad the driver code, and `./autogen.sh` to generate a configure
script etc., `make` fails in xf86-video-intel/src/i830_memory.c:

../doltcompile gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/include/xorg
-I/usr/include/pixman-1    -I/usr/include/drm   -Wall -Wpointer-arith
-Wstrict-prototypes 	-Wmissing-prototypes -Wmissing-declarations
	-Wnested-externs -fno-strict-aliasing -I/usr/include/xorg
-I/usr/include/pixman-1   -I/usr/include/drm   -I/usr/include/X11/dri
-I../uxa -DI830_XV -DI830_USE_XAA -DI830_USE_EXA -DI830_USE_UXA -g -O2
-MT i830_memory.lo -MD -MP -MF .deps/i830_memory.Tpo -c -o
i830_memory.lo i830_memory.c
i830_memory.c: In function ‘i830_allocator_init’:
i830_memory.c:537: error: ‘I915_SETPARAM_NUM_USED_FENCES’ undeclared
(first use in this function)
i830_memory.c:537: error: (Each undeclared identifier is reported only once
i830_memory.c:537: error: for each function it appears in.)
make[4]: *** [i830_memory.lo] Error 1
make[4]: Leaving directory `/home/gomyhrtest/xf86-video-intel/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/gomyhrtest/xf86-video-intel/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/gomyhrtest/xf86-video-intel/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gomyhrtest/xf86-video-intel'
make: *** [all] Error 2

What am I missing? I'd rather not recompile the whole stack with mesa,
DRM, etc. since this is just to check a VGA detection bug.

I see intel driver in the xorg-edgers PPA is essentially the same
version. In the log it says
* Only added debian/ tree from origin/debian-experimental
  * + disable kernel mode setting (won't build)
If the kernel mode setting is the problem, how do I disable it?

Geir Ove



More information about the Ubuntu-x mailing list