DRI & SuSE 7.2 & XFree86 4.1, how to compile the modules?

DRI & SuSE 7.2 & XFree86 4.1, how to compile the modules?

Post by Armin Lambache » Sat, 28 Jul 2001 22:01:15


I installed a SuSE 7.2 (update from 7.0), then got the updated XFree86
4.1 from their homepage. After installation my Matrox G400 runs fine
with 2D applications. But I cannot compile the DRI modules. In their
README they state:


3) DRI (3D accelerated OpenGL support)

...(some lines omitted)

b) SuSE 7.2:
  # cp /boot/vmlinuz.config /usr/src/linux/.config
  # cp /boot/vmlinuz.version.h /usr/src/linux/include/linux/version.h
  # cd /usr/src/linux; make cloneconfig; make dep

Then you'll have to compile the DRM kernel modules. The sources can be
found in

* suse70/DRI (SuSE Linux 7.0 / glibc 2.1.3)
* suse71/DRI (SuSE Linux 7.1 / glibc 2.2)
* suse72/DRI (SuSE Linux 7.0 / glibc 2.2)

Install the sources with

# rpm -Uhv km_drm-*.i386.rpm

Compile and install the kernel modules with

# cd /usr/src/kernel-modules/drm
# make -f Makefile.module
# rm -f /lib/modules/`uname -r`/video/{gamma.o,i810.o,mga.o,r128.o,tdfx.o}
# install -m 644 -o root -g root gamma.o i810.o mga.o r128.o radeon.o tdfx.o /lib/modules/`uname -r`/kernel/drivers/char/drm
# depmod -a


This I have done. After the step

# make -f Makefile.module

I get the output

make -f Makefile.linux clean
make[1]: Entering directory `/usr/src/kernel-modules/drm'
rm -f *.o *.a *~ core
make[1]: Leaving directory `/usr/src/kernel-modules/drm'
cp /usr/src/linux/include/linux/module.h /usr/src/linux/include/linux/module.h.orig
grep -v modversions /usr/src/linux/include/linux/module.h.orig > /usr/src/linux/include/linux/module.h
make TREE=/usr/src/linux/include -f Makefile.linux
make[1]: Entering directory `/usr/src/kernel-modules/drm'
=== KERNEL HEADERS IN /usr/src/linux/include
=== kill_fasync has 3 parameters
=== Compiling for machine i686
=== WARNING 2.4.0 kernels before 2.4.0-test11 DO NOT WORK
cc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -DCONFIG_AGP -DCONFIG_AGP_MODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DKILLFASYNCHASTHREEPARAMETERS -DEXPORT_SYMTAB -I/usr/src/linux/include -c gamma_drv.c -o gamma_drv.o
In file included from gamma_drv.c:72:
drm_vm.h: In function `gamma_vm_shm_nopage':
drm_vm.h:110: structure has no member named `virtual'
drm_vm.h:89: warning: `physical' might be used uninitialized in this function
make[1]: *** [gamma_drv.o] Error 1
make[1]: Leaving directory `/usr/src/kernel-modules/drm'
make: *** [all] Error 2

Can somebody help me?

Best regards


Ich sag' nicht viel, aber was ich sag' ist Quatsch! (Pippi Langstrumpf)