Click to See Complete Forum and Search --> : probleming compiling new X drivers


[P]Diablos
10-19-2001, 02:25 PM
hello, I've been trying to get DRI to work for my Matrox G400 in X 4.1.0 for some time now. Looking at my logs, I saw this:

(EE) MGA(0): [dri] MGADRIScreenInit failed because of a version mismatch.
[dri] mga.o kernel module version is 2.0.0 but version 3.0.x is needed.
[dri] Disabling DRI.

So I browsed the internet for a bit to find out what was causing this problem and how to fix it. I found out I need to compile a new mga.o file, so after looking at a few posts on the Debian mailing list I downloaded and extracted a file which contained various .h and .c files needed to compile another mga.o.

Now here's where I run into problems. When I go into the directory i extracted the file to and run:

make -f Makefile.linux

I get this message:

Error: Could not locate kernel tree in /lib/modules/2.2.19pre17/build/include /usr/src/linux-2.2.19pre17/include /usr/src/linux/include /usr/include

When I run:

make -f Makefile.linux TREE=/usr/src/kernel-headers-2.2.19/include

It looks like it starts to compile, but I get tons of warnings / errors that are related to the c files I assume, with the last message being:

drm_vm.h:276: structure has no member named 'virtual'.
make: *** [gamma_drv.o] Error 1

So, when I try:

make -f Makefile.linux TREE=/usr/src/kernel-source-2.2.19/include

I get this different message:

=== KERNEL HEADERS IN /usr/src/kernel-source-2.2.19/include
=== SMP=0 MODULES=0 MODVERSIONS=0 AGP=0
=== kill_fasync has 2 parameters
=== compiling for machine i686
=== WARNING
=== WARNING 2.4.0 kernels before 2.4.0-test11 DO NOT WORK
=== WARNING

*** Kernel modules must be configured. Build aborted.


Lastly, I cannot try setting my TREE = /lib/modules/2.2.19pre17/build/include, because build is not a directory for some reason. It's like a symlink or something pointing to /mnt/backup/herbert/herbert/debian/i386/kimage/kernel-source-2.2.19pre17

I don't have anything mounted as backup, I dont have a user herbert either, so what is going on with that?

If anyone knows how to get the drivers to compile correctly, or what is wrong with my /lib/modules/2.2.19pre17/build directory, I'd greatly appreciate it. I'm running Debian woody and using X 4.1.0-7. Thanks