bash-2.05b# emerge nvidia-kernel Calculating dependencies ...done! >>> emerge (1 of 1) media-video/nvidia-kernel-1.0.4496-r3 to / >>> md5 src_uri ;-) NVIDIA-Linux-x86-1.0-4496-pkg0.run >>> Unpacking source... Creating directory NVIDIA-Linux-x86-1.0-4496-pkg0 Verifying archive integrity... OK Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 1.0-4496......................................................... * Linux kernel 2.4.20 >>> Source unpacked. rm -f nv.o os-agp.o os-interface.o os-registry.o nv-linux.o nv_compiler.h *.d NVdriver nvidia.o echo \#define NV_COMPILER \"`gcc -v 2>&1 | tail -n 1`\" > nv_compiler.h gcc -c -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wcast-qual -Wno-multichar -O -MD -D__KERNEL__ -DMODULE -D_LOOSE_KERNEL_NAMES -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=4496 -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -I. -I/usr/src/linux/include -Wno-cast-qual nv.c In file included from nv.c:14: nv-linux.h:24:31: linux/modversions.h: No such file or directory In file included from /usr/src/linux/include/linux/module.h:11, from nv-linux.h:28, from nv.c:14: /usr/src/linux/include/linux/spinlock.h:223:1: warning: "read_unlock" redefined In file included from /usr/src/linux/include/linux/spinlock.h:57, from /usr/src/linux/include/linux/module.h:11, from nv-linux.h:28, from nv.c:14: /usr/include/asm/spinlock.h:200:1: warning: this is the location of the previous definition In file included from /usr/src/linux/include/linux/module.h:11, from nv-linux.h:28, from nv.c:14: /usr/src/linux/include/linux/spinlock.h:225:1: warning: "write_unlock" redefined In file included from /usr/src/linux/include/linux/spinlock.h:57, from /usr/src/linux/include/linux/module.h:11, from nv-linux.h:28, from nv.c:14: /usr/include/asm/spinlock.h:201:1: warning: this is the location of the previous definition In file included from /usr/src/linux/include/linux/mm.h:22, from /usr/src/linux/include/linux/slab.h:14, from nv-linux.h:71, from nv.c:14: /usr/src/linux/include/linux/sched.h:891: conflicting types for `kernel_thread' /usr/include/asm/processor.h:436: previous declaration of `kernel_thread' /usr/src/linux/include/linux/sched.h: In function `unhash_process': /usr/src/linux/include/linux/sched.h:980: warning: implicit declaration of function `_raw_write_lock' /usr/src/linux/include/linux/sched.h:985: warning: implicit declaration of function `_raw_write_unlock' /usr/src/linux/include/linux/sched.h: In function `task_lock': /usr/src/linux/include/linux/sched.h:991: warning: implicit declaration of function `_raw_spin_lock' /usr/src/linux/include/linux/sched.h: In function `task_unlock': /usr/src/linux/include/linux/sched.h:996: warning: implicit declaration of function `_raw_spin_unlock' /usr/src/linux/include/linux/sched.h: In function `d_path': /usr/src/linux/include/linux/sched.h:1006: warning: implicit declaration of function `_raw_read_lock' /usr/src/linux/include/linux/sched.h:1009: warning: implicit declaration of function `_raw_read_unlock' In file included from /usr/src/linux/include/linux/slab.h:14, from nv-linux.h:71, from nv.c:14: /usr/src/linux/include/linux/mm.h: At top level: /usr/src/linux/include/linux/mm.h:206: parse error before "pte_addr_t" /usr/src/linux/include/linux/mm.h:206: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/mm.h:206: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/mm.h:207: warning: type defaults to `int' in declaration of `pte' /usr/src/linux/include/linux/mm.h:207: warning: data definition has no type or storage class /usr/src/linux/include/linux/mm.h:226: parse error before '}' token /usr/src/linux/include/linux/mm.h:226: warning: type defaults to `int' in declaration of `mem_map_t' /usr/src/linux/include/linux/mm.h:226: warning: data definition has no type or storage class /usr/src/linux/include/linux/mm.h: In function `pte_chain_lock': /usr/src/linux/include/linux/mm.h:390: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h:391: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h:391: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h: In function `pte_chain_unlock': /usr/src/linux/include/linux/mm.h:401: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h: In function `page_zone': /usr/src/linux/include/linux/mm.h:424: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h: In function `set_page_zone': /usr/src/linux/include/linux/mm.h:429: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h:430: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h: In function `page_mapped': /usr/src/linux/include/linux/mm.h:534: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h: At top level: /usr/src/linux/include/linux/mm.h:544: parse error before '*' token /usr/src/linux/include/linux/mm.h:544: warning: type defaults to `int' in declaration of `mem_map' /usr/src/linux/include/linux/mm.h:544: warning: data definition has no type or storage class /usr/src/linux/include/linux/mm.h: In function `is_page_cache_freeable': /usr/src/linux/include/linux/mm.h:654: dereferencing pointer to incomplete type /usr/src/linux/include/linux/mm.h:654: dereferencing pointer to incomplete type In file included from /usr/src/linux/include/linux/highmem.h:5, from /usr/src/linux/include/linux/vmalloc.h:8, from nv-linux.h:72, from nv.c:14: /usr/include/asm/pgalloc.h: In function `get_pgd_fast': /usr/include/asm/pgalloc.h:78: structure has no member named `processor' /usr/include/asm/pgalloc.h:79: structure has no member named `processor' /usr/include/asm/pgalloc.h:81: structure has no member named `processor' /usr/include/asm/pgalloc.h: In function `free_pgd_fast': /usr/include/asm/pgalloc.h:89: structure has no member named `processor' /usr/include/asm/pgalloc.h:90: structure has no member named `processor' /usr/include/asm/pgalloc.h:91: structure has no member named `processor' /usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast': /usr/include/asm/pgalloc.h:122: structure has no member named `processor' /usr/include/asm/pgalloc.h:123: structure has no member named `processor' /usr/include/asm/pgalloc.h:125: structure has no member named `processor' /usr/include/asm/pgalloc.h: In function `pte_free_fast': /usr/include/asm/pgalloc.h:132: structure has no member named `processor' /usr/include/asm/pgalloc.h:133: structure has no member named `processor' /usr/include/asm/pgalloc.h:134: structure has no member named `processor' In file included from /usr/src/linux/include/linux/vmalloc.h:8, from nv-linux.h:72, from nv.c:14: /usr/src/linux/include/linux/highmem.h: In function `kmap': /usr/src/linux/include/linux/highmem.h:68: arithmetic on pointer to an incomplete type /usr/src/linux/include/linux/highmem.h:68: arithmetic on pointer to an incomplete type In file included from /usr/src/linux/include/linux/pci.h:622, from nv-linux.h:77, from nv.c:14: /usr/include/asm/pci.h: In function `pci_map_page': /usr/include/asm/pci.h:106: invalid operands to binary - /usr/include/asm/pci.h: In function `pci_map_sg': /usr/include/asm/pci.h:160: invalid operands to binary - /usr/include/asm/pci.h: In function `pci_dac_page_to_dma': /usr/include/asm/pci.h:236: invalid operands to binary - In file included from /usr/src/linux/include/linux/irq.h:69, from /usr/include/asm/hardirq.h:6, from /usr/src/linux/include/linux/interrupt.h:45, from nv-linux.h:79, from nv.c:14: /usr/include/asm/hw_irq.h: In function `x86_do_profile': /usr/include/asm/hw_irq.h:201: structure has no member named `processor' In file included from nv.c:14: nv-linux.h:402:2: #error "Couldn't determine number of arguments expected by remap_page_range!" In file included from nv.c:14: nv-linux.h: In function `NV_SET_AMD_PAGE_ATTRIB': nv-linux.h:469: warning: initialization from incompatible pointer type nv-linux.h:470: warning: implicit declaration of function `change_page_attr' nv-linux.h: In function `NV_CLEAR_AMD_PAGE_ATTRIB': nv-linux.h:478: warning: initialization from incompatible pointer type nv.c: In function `nvos_malloc_pages': nv.c:400: request for member `flags' in something not a structure or union nv.c:413: request for member `flags' in something not a structure or union nv.c: In function `nvos_unlock_pages': nv.c:433: request for member `flags' in something not a structure or union nv.c: In function `nv_kern_vma_nopage': nv.c:1073: invalid operands to binary - nv.c: In function `nv_kern_mmap': nv.c:1349: warning: implicit declaration of function `NV_REMAP_PAGE_RANGE' nv.c: In function `nv_lock_rm': nv.c:2549: structure has no member named `processor' nv.c:2558: structure has no member named `processor' make: *** [nv.o] Error 1 !!! ERROR: media-video/nvidia-kernel-1.0.4496-r3 failed. !!! Function src_compile, Line 117, Exitcode 2 !!! (no error message)