Kernel 2.6.15 and nvidia-kernel needs patch for conftest.sh. Compiling will fail with: In file included from /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-agp.c:24: /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:711:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!" cc -Wp,-MD,/var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/.os-interface.o.d -nostdinc -isystem /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -march=athlon -mregparm=3 -Iinclude/asm-i386/mach-default -I/var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -O -fno-common -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -DNVRM -DDYNAMIC_SLI -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=8178 -UDEBUG -U_DEBUG -DNDEBUG -DNV_MULTIPLE_BRIDGE_AGPGART_PRESENT -DNV_PM_MESSAGE_T_PRESENT -DNV_CHANGE_PAGE_ATTR_PRESENT -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(os_interface)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.o /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c In file included from /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:26: /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/nv-linux.h:711:2: warning: #warning "conftest.sh failed, assuming remap_page_range(4)!" /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c: In function `os_set_mlock_capability': /var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.c:1375: error: structure has no member named `rlim' make[3]: *** [/var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv/os-interface.o] Error 1 make[2]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.8178/work/NVIDIA-Linux-x86-1.0-8178-pkg1/usr/src/nv] Error 2
Created attachment 76499 [details, diff] this fixes the problem introduced by Sam Ravnborg's recent KBUILD changes see http://marc.theaimsgroup.com/?l=linu...9507221614&w=2
*** Bug 118601 has been marked as a duplicate of this bug. ***
nvidia-kernel-1.0.8178-r2 contains this patch as added by Zander in his latest cummulative patch.