Since no one responded to my messed up help request last night, Id thought Id help others that are trying to upgrade to x4.0.1 - Noah M got me off to a good start and I was up until 4AM getting it going today.
Apparently in Debian the kernel headers in /usr/include/linux are kept totally separate from /usr/src/linux/include/linux
I was getting make errors on the install for NVIDIAs Kernel module for XF4.0.1
The solution to this was to mv /usr/include/linux /usr/include/linux-old ; ln -s /usr/src/linux/include/linux /usr/include/linux
The module compiled fine once I did that...that had been throwing me a curve ball for about a week.
So anyway, Im up and running in XF4.0.1 - heres what I did to get my tnt2 working in it:
1. Compiled the source of XF4.0.1 from ftp.xfree86.org/pub/source (this takes about 15 mins on my machine, others without the 1/2 gig of ram will experience different, more timely results)
2. Installed the GLX OpenGL driver from www.nvidia.com
3. Compile the Nvidia Kernel Module also from nvidia.com
Run xf86config, then add the driver line and glx load line from the FAQ at nvidia
The downside to this is Enlightenment is now broken, I get an "error loading Shape Files, X-server out of date or misconfigured" If anyone knows how to fix this thats cool - a friend got me started with E from apt-get commands but I dont remember them...recompiling the kernel doesnt help :(
The good news I get a HUGE performance boost on quake3 - my main goal!
Hope this helps some people questing for 4.0.1 as I have been for some time. -Ethan