tried patching the hell out of this, got error: too many arguments to function 'kmem_cache_create'
used this patch (I modified it for .23):
Code: Select all
--- NVIDIA-Linux-x86-100.14.23-pkg1/usr/src/nv/nv-linux.h 2008-01-15 02:25:51.000000000 +0100
+++ NVIDIA-Linux-x86-100.14.23-pkg1-fixed/usr/src/nv/nv-linux.h 2008-01-15 02:25:51.000000000 +0100
@@ -534,7 +534,7 @@
#define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \
{ \
kmem_cache = kmem_cache_create(name, sizeof(type), \
- 0, 0, NULL, NULL); \
+ 0, 0, NULL); \
}
#elif defined(NV_KMEM_CACHE_CREATE_5_PRESENT)
#define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \
--- NVIDIA-Linux-x86-100.14.23-pkg1/usr/src/nv/nv-linux.h 2008-01-15 02:25:51.000000000 +0100
+++ NVIDIA-Linux-x86-100.14.23-pkg1-fixed/usr/src/nv/nv-linux.h 2008-01-15 02:25:51.000000000 +0100
@@ -547,7 +547,7 @@
#define NV_KMEM_CACHE_CREATE(kmem_cache, name, type) \
{ \
kmem_cache = kmem_cache_create(name, sizeof(type), \
- 0, 0, NULL, NULL); \
+ 0, 0, NULL); \
}
#endif
so far so good. now I'm getting different error:
Code: Select all
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c:26:
/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/nv-linux.h:546:2: warning: #warning "conftest.sh failed, assuming kmem_cache_create(6)!"
/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c: In function 'os_set_mlock_capability':
/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.c:1339: error: 'struct task_struct' has no member named 'rlim'
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv/os-interface.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-100.14.23/work/NVIDIA-Linux-x86-100.14.23-pkg0/usr/src/nv] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
*
* ERROR: x11-drivers/nvidia-drivers-100.14.23 failed.
* Call stack:
* ebuild.sh, line 46: Called src_compile
* environment, line 3496: Called linux-mod_src_compile
* environment, line 2586: Called die
* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || diefunc "$FUNCNAME" "$LINENO" "$?" "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}.";
* The die message:
* Unable to make IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.24-rc7-zen2/build clean module.
Code: Select all
localhost nvidia-drivers # uname -a
Linux localhost 2.6.24-rc7-zen2 #4 SMP PREEMPT Tue Jan 15 01:24:16 CET 2008 i686 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
ideas?
ps: just noticed that the patch from this forum (the link 3 lines above this) is vor Xen sources.. but I have Zen sources.... thaught zen-sources were the successor auf kamikaze??? hmmm have been away for too long...
pps:
Code: Select all
# gcc-config -c
i686-pc-linux-gnu-4.3.0-alpha20080111