root@tom root # emerge mplayer -up These are the packages that I would merge, in order. Calculating dependencies ...done! [ebuild N ] media-video/nvidia-kernel-1.0.3123 [ebuild N ] media-video/nvidia-glx-1.0.3123 [ebuild N ] media-libs/libvorbis-1.0-r1 [ebuild N ] media-sound/esound-0.2.29 [ebuild N ] media-video/mplayer-0.90_pre8 root@tom root # emerge mplayer -u Calculating dependencies ...done! >>> emerge media-video/nvidia-kernel-1.0.3123 to / >>> md5 ;-) NVIDIA_kernel-1.0-3123.tar.gz >>> Unpacking source... >>> Unpacking NVIDIA_kernel-1.0-3123.tar.gz >>> Source unpacked. rm -f nv.o os-interface.o os-registry.o Module-linux nv_compiler.h *.d NVdriver echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h cc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparen theses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D __KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=3 123 -DNV_UNIX -DNV_LINUX -DNVCPU_X86 -I. -I/usr/src/linux/include -Wn o-cast-qual nv.c In file included from nv.c:14: nv-linux.h:40:4: #error This driver does not support 2.5.x development kernels! nv.c: In function `init_module': nv.c:852: warning: implicit declaration of function `devfs_register_chrdev' nv.c:922: warning: implicit declaration of function `devfs_unregister_chrdev' nv.c: In function `nv_kern_open': nv.c:1071: invalid operands to binary & nv.c:1075: invalid operands to binary & nv.c: In function `nv_kern_close': nv.c:1181: invalid operands to binary & nv.c: In function `nv_kern_mmap': nv.c:1305: warning: passing arg 1 of `remap_page_range_R3e7474b4' makes pointer from integer without a cast nv.c:1305: incompatible type for argument 4 of `remap_page_range_R3e7474b4' nv.c:1305: too few arguments to function `remap_page_range_R3e7474b4' nv.c:1322: warning: passing arg 1 of `remap_page_range_R3e7474b4' makes pointer from integer without a cast nv.c:1322: incompatible type for argument 4 of `remap_page_range_R3e7474b4' nv.c:1322: too few arguments to function `remap_page_range_R3e7474b4' nv.c:1353: warning: passing arg 1 of `remap_page_range_R3e7474b4' makes pointer from integer without a cast nv.c:1353: incompatible type for argument 4 of `remap_page_range_R3e7474b4' nv.c:1353: too few arguments to function `remap_page_range_R3e7474b4' nv.c: In function `nv_get_phys_address': nv.c:2182: warning: implicit declaration of function `pte_offset' nv.c:2182: invalid type argument of `unary *' make: *** [nv.o] Error 1 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line -39, Exitcode 2 !!! (no error message)
are you using a 2.5.x kernel ? if so i would point at this line in your compile: nv-linux.h:40:4: #error This driver does not support 2.5.x development kernels! in other words, its not gonna work for 2.5.x so stop trying ;)
SpankY makes a very valid point... however, if you are up for some manual hacking the nvdriver SHOULD now work with 2.5 and simply removing the check for kernel version sanity from the makefile should work... I've heard on LKML that there is a patch to do this and change some of the entry points so that it works all the way with 2.5 floating around, you may want to look into it. If you are NOT using 2.5, check the symlinks in /usr/src to make sure that linux points to your current 2.4 kernel.
Sorry, i had not seen i still had a link to a 2.5.x kernel in /usr/src/linux, i just had tested 2.5 once