Looks like it may be missing a header file or somesuch. Do you have the kernel source extracted to /usr/src/linux and have you enabled DRM(DRI) support in the kernel? It's under Character Devices->Direct Rendering Manager

yes DRI is enabled in the kernel and the kerne sourcel is in /usr/src/linux-2.4.9-gentoo. /usr/src/linux is a simlink to it. i have compiled everything else successfully; X, kde, mozilla, etc... maybe i should try an older version?_________________burzmali
www.burzmali.net

Just to set it strait, DRI only works on the cards listed in the kernel configuration. The nvidia drivers DO NOT use DRI. nvidia uses it's own kernel module to provide the kernel interface for acceleration. I would recommend recompiling your kernel without DRI support, but with AGP support. If it still does not work, try downloading the official 2.4.18 kernel sources from kernel.org and try that kernel.