PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : nvidia-Treiber und Red Hat 8.0


BLUESCREEN3D
07.10.02, 01:52
Ich will die treiber für meine Grafikkarte (GeForce 2 MX 400 64MB) unter Red Hat 8.0 installieren und es geht irgendwie überhaupt nichts :mad: Ich habe die Readme von der nvidia-page und das Tutorial hier aus dem Forum gelesen und versucht die Treiber zu installieren - es geht noch nichtmal mit der tar-Datei
wenn ich rmpbuild -bb --target=i586 --clean --rmsource NVIDIA*.spec eingebe (ich habe übrigens nur eine .spec-datei, da die zweite erst erstellt wird, wenn der nvidia-kernel läuft...) erscheint das:

[root@localhost SPECS]# rpmbuild -bb --target=i586 --clean --rmsource NVIDIA*.spec
Building target platforms: i586
Building for target i586
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8044
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ cd /usr/src/redhat/BUILD
+ rm -rf NVIDIA_kernel-1.0-2960
+ /usr/bin/gzip -dc /usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd NVIDIA_kernel-1.0-2960
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8044
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ LANG=C
+ export LANG
+ set +e
++ rpm -q --queryformat '%{VERSION}' rpm
+ RPMVERSION=4.1
++ echo 4.1
++ awk -F . '{print $1;}'
+ RPMMAJOR=4
++ echo 4.1
++ awk -F . '{print $2;}'
+ RPMMINOR=1
++ echo 4.1
++ awk -F . '{print $3;}'
+ RPMPATCH=
+ '[' 4 -le 3 -a 1 -le 0 -a -lt 4 ']'
/var/tmp/rpm-tmp.8044: line 34: [: too many arguments
+ make NVdriver
echo \#define NV_COMPILER \"`cc -v 2>&1 | tail -1`\" > nv_compiler.h
cc -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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960
-I. -I/usr/src/linux/include -Wno-cast-qual nv.c
In file included from /usr/include/linux/fs.h:23,
from nv-linux.h:26,
from nv.c:27:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from nv.c:27:
nv-linux.h:29:47: linux/vmalloc.h: No such file or directory
In file included from nv-linux.h:53,
from nv.c:27:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from nv.c:27:
nv-linux.h:110: parse error before "unload_lock"
nv-linux.h:110: warning: type defaults to `int' in declaration of `unload_lock'
nv-linux.h:110: warning: data definition has no type or storage class
nv-linux.h:170: parse error before "spinlock_t"
nv-linux.h:170: warning: no semicolon at end of struct or union
nv-linux.h:175: parse error before "ldata_lock"
nv-linux.h:175: warning: type defaults to `int' in declaration of `ldata_lock'
nv-linux.h:175: warning: data definition has no type or storage class
nv-linux.h:180: parse error before "at_lock"
nv-linux.h:180: warning: type defaults to `int' in declaration of `at_lock'
nv-linux.h:180: warning: data definition has no type or storage class
nv-linux.h:184: parse error before "bh_lock"
nv-linux.h:184: warning: type defaults to `int' in declaration of `bh_lock'
nv-linux.h:184: warning: data definition has no type or storage class
nv-linux.h:198: parse error before '}' token
nv-linux.h:198: warning: type defaults to `int' in declaration of `nv_linux_state_t'
nv-linux.h:198: warning: data definition has no type or storage class
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/mm.h:4,
from nv.c:33:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/mm.h:4,
from nv.c:33:
/usr/include/asm/bitops.h:333:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning Using kernel headers in userspace.
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/mm.h:4,
from nv.c:33:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/mm.h:4,
from nv.c:33:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from nv.c:38:
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:70: parse error before "atomic_t"
/usr/include/linux/proc_fs.h:73: parse error before '}' token
/usr/include/linux/proc_fs.h:203: parse error before "void"
In file included from nv.c:41:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
In file included from nv.c:42:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
In file included from nv.c:42:
/usr/include/linux/interrupt.h:77: parse error before '(' token
/usr/include/linux/interrupt.h:78: parse error before '(' token
/usr/include/linux/interrupt.h:106: parse error before "atomic_t"
/usr/include/linux/interrupt.h:109: parse error before '}' token
/usr/include/linux/interrupt.h:127: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:127: requested alignment is not a constant
/usr/include/linux/interrupt.h:154: parse error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/include/linux/interrupt.h:158: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:162: parse error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/include/linux/interrupt.h:166: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/usr/include/linux/interrupt.h:173: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_enable':
/usr/include/linux/interrupt.h:187: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_hi_enable':
/usr/include/linux/interrupt.h:193: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:224: parse error before "global_bh_lock"
/usr/include/linux/interrupt.h: In function `mark_bh':
/usr/include/linux/interrupt.h:228: invalid use of undefined type `struct tasklet_struct'
In file included from nv.c:43:
/usr/include/linux/tqueue.h: At top level:
/usr/include/linux/tqueue.h:94: parse error before "tqueue_lock"
In file included from nv.c:54:
/usr/include/asm/pgtable.h:17:24: asm/fixmap.h: No such file or directory
In file included from nv.c:54:
/usr/include/asm/pgtable.h:24: parse error before "swapper_pg_dir"
In file included from /usr/include/asm/pgtable.h:115,
from nv.c:54:
/usr/include/asm/pgtable-2level.h:32: parse error before "pgd"
/usr/include/asm/pgtable-2level.h:33: parse error before "pgd"
/usr/include/asm/pgtable-2level.h:34: parse error before "pgd"
/usr/include/asm/pgtable-2level.h:53: parse error before '*' token
/usr/include/asm/pgtable-2level.h:53: parse error before '*' token
/usr/include/asm/pgtable-2level.h: In function `pmd_offset':
/usr/include/asm/pgtable-2level.h:55: `pmd_t' undeclared (first use in this function)
/usr/include/asm/pgtable-2level.h:55: (Each undeclared identifier is reported only once
/usr/include/asm/pgtable-2level.h:55: for each function it appears in.)
/usr/include/asm/pgtable-2level.h:55: parse error before ')' token
In file included from nv.c:54:
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:277: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_read':
/usr/include/asm/pgtable.h:277: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:278: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_exec':
/usr/include/asm/pgtable.h:278: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:279: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_dirty':
/usr/include/asm/pgtable.h:279: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:280: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_young':
/usr/include/asm/pgtable.h:280: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:281: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_write':
/usr/include/asm/pgtable.h:281: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:283: parse error before "pte_rdprotect"
/usr/include/asm/pgtable.h:283: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_rdprotect':
/usr/include/asm/pgtable.h:283: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:284: parse error before "pte_exprotect"
/usr/include/asm/pgtable.h:284: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_exprotect':
/usr/include/asm/pgtable.h:284: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:285: parse error before "pte_mkclean"
/usr/include/asm/pgtable.h:285: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkclean':
/usr/include/asm/pgtable.h:285: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:286: parse error before "pte_mkold"
/usr/include/asm/pgtable.h:286: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkold':
/usr/include/asm/pgtable.h:286: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:287: parse error before "pte_wrprotect"
/usr/include/asm/pgtable.h:287: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_wrprotect':
/usr/include/asm/pgtable.h:287: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:288: parse error before "pte_mkread"
/usr/include/asm/pgtable.h:288: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkread':
/usr/include/asm/pgtable.h:288: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:289: parse error before "pte_mkexec"
/usr/include/asm/pgtable.h:289: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkexec':
/usr/include/asm/pgtable.h:289: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:290: parse error before "pte_mkdirty"
/usr/include/asm/pgtable.h:290: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkdirty':
/usr/include/asm/pgtable.h:290: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:291: parse error before "pte_mkyoung"
/usr/include/asm/pgtable.h:291: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkyoung':
/usr/include/asm/pgtable.h:291: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:292: parse error before "pte_mkwrite"
/usr/include/asm/pgtable.h:292: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_mkwrite':
/usr/include/asm/pgtable.h:292: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:294: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_test_and_clear_dirty':
/usr/include/asm/pgtable.h:294: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:295: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_test_and_clear_young':
/usr/include/asm/pgtable.h:295: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:296: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_set_wrprotect':
/usr/include/asm/pgtable.h:296: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:297: parse error before '*' token
/usr/include/asm/pgtable.h: In function `ptep_mkdirty':
/usr/include/asm/pgtable.h:297: `ptep' undeclared (first use in this function)
/usr/include/asm/pgtable.h: At top level:
/usr/include/asm/pgtable.h:309: parse error before "pte_modify"
/usr/include/asm/pgtable.h:309: parse error before "pte"
/usr/include/asm/pgtable.h: In function `pte_modify':
/usr/include/asm/pgtable.h:311: `pte' undeclared (first use in this function)
/usr/include/asm/pgtable.h:311: `PTE_MASK' undeclared (first use in this function)
/usr/include/asm/pgtable.h:312: `newprot' undeclared (first use in this function)
nv.c:57:53: asm/uaccess.h: No such file or directory
nv.c:59:51: asm/softirq.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from nv.c:63:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from nv.c:63:
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:57: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:59: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: parse error before ')' token
/usr/include/asm/pgalloc.h:62: `PAGE_OFFSET' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:70: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:80: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:80: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:83: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:85: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:90: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:99: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:103: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:105: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:105: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:118: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:127: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared (first use in this function)
In file included from nv.c:63:
/usr/include/linux/highmem.h: In function `kmap':
/usr/include/linux/highmem.h:68: dereferencing pointer to incomplete type
nv.c: At top level:
nv.c:96: parse error before "nv_linux_devices"
nv.c:96: warning: type defaults to `int' in declaration of `nv_linux_devices'
nv.c:96: warning: braces around scalar initializer
nv.c:96: warning: (near initialization for `nv_linux_devices[0]')
nv.c:96: warning: braces around scalar initializer
nv.c:96: warning: (near initialization for `nv_linux_devices[0]')
nv.c:96: warning: data definition has no type or storage class
nv.c:107: parse error before "nv_ctl_device"
nv.c:107: warning: type defaults to `int' in declaration of `nv_ctl_device'
nv.c:107: warning: braces around scalar initializer
nv.c:107: warning: (near initialization for `nv_ctl_device')
nv.c:107: warning: data definition has no type or storage class
nv.c:166: warning: `struct pci_dev' declared inside parameter list
nv.c:176: parse error before '*' token
nv.c:177: parse error before '*' token
nv.c:178: parse error before '*' token
nv.c:209: warning: `struct file' declared inside parameter list
nv.c:209: warning: `struct inode' declared inside parameter list
nv.c:210: warning: `struct file' declared inside parameter list
nv.c:210: warning: `struct inode' declared inside parameter list
nv.c:211: warning: `struct file' declared inside parameter list
nv.c:212: parse error before "poll_table"
nv.c:212: warning: `struct file' declared inside parameter list
nv.c:213: warning: `struct file' declared inside parameter list
nv.c:213: warning: `struct inode' declared inside parameter list
nv.c:225: warning: `struct file' declared inside parameter list
nv.c:225: warning: `struct inode' declared inside parameter list
nv.c:226: warning: `struct file' declared inside parameter list
nv.c:226: warning: `struct inode' declared inside parameter list
nv.c:227: parse error before "poll_table"
nv.c:227: warning: `struct file' declared inside parameter list
nv.c:236: variable `nv_fops' has initializer but incomplete type
nv.c:237: unknown field `poll' specified in initializer
nv.c:237: warning: excess elements in struct initializer
nv.c:237: warning: (near initialization for `nv_fops')
nv.c:238: unknown field `ioctl' specified in initializer
nv.c:238: warning: excess elements in struct initializer
nv.c:238: warning: (near initialization for `nv_fops')
nv.c:239: unknown field `mmap' specified in initializer
nv.c:239: warning: excess elements in struct initializer
nv.c:239: warning: (near initialization for `nv_fops')
nv.c:240: unknown field `open' specified in initializer
nv.c:240: warning: excess elements in struct initializer
nv.c:240: warning: (near initialization for `nv_fops')
nv.c:241: unknown field `release' specified in initializer
nv.c:241: warning: excess elements in struct initializer
nv.c:241: warning: (near initialization for `nv_fops')
nv.c:255: parse error before "va_list"
nv.c: In function `NV_iMSG':
nv.c:263: `kernel_message_level' undeclared (first use in this function)

nv.c:264: warning: implicit declaration of function `sprintf'
nv.c:266: `nv' undeclared (first use in this function)
nv.c:274: warning: implicit declaration of function `vsprintf'
nv.c:274: `printf_format' undeclared (first use in this function)
nv.c:274: `arglist' undeclared (first use in this function)
nv.c:275: warning: implicit declaration of function `printk'
nv.c: In function `NV_iDMSG':
nv.c:285: `va_list' undeclared (first use in this function)
nv.c:285: parse error before "arglist"
nv.c:287: warning: implicit declaration of function `va_start'
nv.c:287: `arglist' undeclared (first use in this function)
nv.c:288: `KERN_INFO' undeclared (first use in this function)
nv.c:289: warning: implicit declaration of function `va_end'
nv.c: In function `NV_EMSG':
nv.c:298: `va_list' undeclared (first use in this function)
nv.c:298: parse error before "arglist"
nv.c:300: `arglist' undeclared (first use in this function)
nv.c:301: `KERN_ERR' undeclared (first use in this function)
nv.c: In function `nvos_set_primary_card':
nv.c:314: request for member `nv_state' in something not a structure or union
nv.c: At top level:
nv.c:320: warning: `struct pci_dev' declared inside parameter list
nv.c:321: conflicting types for `nvos_is_nv_device'
nv.c:166: previous declaration of `nvos_is_nv_device'
nv.c: In function `nvos_is_nv_device':
nv.c:325: dereferencing pointer to incomplete type
nv.c:330: dereferencing pointer to incomplete type
nv.c:336: dereferencing pointer to incomplete type
nv.c:336: dereferencing pointer to incomplete type
nv.c: At top level:
nv.c:343: warning: `struct pci_dev' declared inside parameter list
nv.c: In function `nvos_get_pci_size':
nv.c:347: warning: implicit declaration of function `pci_read_config_dword'
nv.c:348: warning: implicit declaration of function `pci_write_config_dword'
nv.c: In function `nvos_probe_devices':
nv.c:376: `nvl' undeclared (first use in this function)
nv.c:381: warning: implicit declaration of function `pci_find_class'
nv.c:381: warning: assignment makes pointer from integer without a cast
nv.c:383: warning: passing arg 1 of `nvos_is_nv_device' from incompatible pointer type
nv.c:390: dereferencing pointer to incomplete type
nv.c:391: dereferencing pointer to incomplete type
nv.c:393: dereferencing pointer to incomplete type
nv.c:394: dereferencing pointer to incomplete type
nv.c:398: warning: implicit declaration of function `pci_read_config_word'
nv.c:404: warning: implicit declaration of function `pci_write_config_word'
nv.c:407: warning: passing arg 1 of `nvos_get_pci_size' from incompatible pointer type
nv.c:408: warning: passing arg 1 of `nvos_get_pci_size' from incompatible pointer type
nv.c:410: dereferencing pointer to incomplete type
nv.c:435: warning: assignment makes pointer from integer without a cast
nv.c: In function `nvos_malloc':
nv.c:479: warning: implicit declaration of function `vmalloc'
nv.c:479: warning: assignment makes pointer from integer without a cast
nv.c:493: warning: implicit declaration of function `__get_free_pages'
nv.c:493: `GFP_KERNEL' undeclared (first use in this function)
nv.c:497: warning: implicit declaration of function `virt_to_phys'
nv.c:500: `PG_reserved' undeclared (first use in this function)
nv.c:500: warning: implicit declaration of function `virt_to_page'
nv.c:500: warning: implicit declaration of function `__va'
nv.c:500: invalid type argument of `->'
nv.c:513: invalid type argument of `->'
nv.c:514: warning: implicit declaration of function `phys_to_virt'
nv.c:520: warning: implicit declaration of function `vfree'
nv.c: In function `nvos_free':
nv.c:536: `PG_reserved' undeclared (first use in this function)
nv.c:536: invalid type argument of `->'
nv.c: At top level:
nv.c:544: warning: `struct pci_dev' declared inside parameter list
nv.c: In function `nvos_find_agp_capability':
nv.c:554: dereferencing pointer to incomplete type
nv.c:557: warning: implicit declaration of function `pci_read_config_byte'
nv.c: In function `nvos_find_agp_by_class':
nv.c:579: warning: assignment makes pointer from integer without a cast
nv.c:581: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c:584: warning: assignment makes pointer from integer without a cast
nv.c: In function `nv_find_pci_dev':
nv.c:598: warning: implicit declaration of function `pci_find_device'
nv.c:598: warning: assignment makes pointer from integer without a cast
nv.c:600: dereferencing pointer to incomplete type
nv.c:601: dereferencing pointer to incomplete type
nv.c: At top level:
nv.c:700: parse error before '*' token
nv.c: In function `nvl_find_alloc':
nv.c:710: `address' undeclared (first use in this function)
nv.c:716: `prev' undeclared (first use in this function)
nv.c:720: `nvl' undeclared (first use in this function)
nv.c:720: warning: left-hand operand of comma expression has no effect
nv.c: At top level:
nv.c:752: parse error before '*' token
nv.c: In function `nvl_find_agp_alloc':
nv.c:760: `prev' undeclared (first use in this function)
nv.c:764: `nvl' undeclared (first use in this function)
nv.c:764: warning: left-hand operand of comma expression has no effect
nv.c:770: `address' undeclared (first use in this function)
nv.c: At top level:
nv.c:816: parse error before '*' token
nv.c: In function `nvl_find_alloc_by_num_pages':
nv.c:824: `prev' undeclared (first use in this function)
nv.c:828: `nvl' undeclared (first use in this function)
nv.c:828: warning: left-hand operand of comma expression has no effect
nv.c:830: `num_pages' undeclared (first use in this function)
nv.c:831: `current' undeclared (first use in this function)
nv.c: In function `nv_map_device':
nv.c:884: warning: implicit declaration of function `ioremap_nocache'
nv.c:884: warning: assignment makes pointer from integer without a cast
nv.c:887: warning: implicit declaration of function `iounmap'
nv.c: In function `init_module':
nv.c:924: `nvl' undeclared (first use in this function)
nv.c:941: warning: implicit declaration of function `register_chrdev'
nv.c:983: request for member `nv_state' in something not a structure or union
nv.c:984: request for member `event_queue' in something not a structure or union
nv.c:1011: warning: implicit declaration of function `unregister_chrdev'
nv.c: In function `cleanup_module':
nv.c:1019: `nvl' undeclared (first use in this function)
nv.c:1020: `max_devices' undeclared (first use in this function)
nv.c: In function `nv_kern_vma_open':
nv.c:1088: union has no member named `usecount'
nv.c: In function `nv_kern_vma_release':
nv.c:1095: union has no member named `usecount'
nv.c: At top level:
nv.c:1124: variable `nv_vm_ops' has initializer but incomplete type
nv.c:1125: warning: excess elements in struct initializer
nv.c:1125: warning: (near initialization for `nv_vm_ops')
nv.c:1126: warning: excess elements in struct initializer
nv.c:1126: warning: (near initialization for `nv_vm_ops')
nv.c:1141: warning: `struct file' declared inside parameter list
nv.c:1141: warning: `struct inode' declared inside parameter list
nv.c:1142: conflicting types for `nv_kern_open'
nv.c:209: previous declaration of `nv_kern_open'
nv.c: In function `nv_kern_open':
nv.c:1144: `nvl' undeclared (first use in this function)
nv.c:1144: parse error before ')' token
nv.c:1150: warning: implicit declaration of function `kmalloc'
nv.c:1150: `GFP_KERNEL' undeclared (first use in this function)
nv.c:1154: dereferencing pointer to incomplete type
nv.c:1158: dereferencing pointer to incomplete type
nv.c:1159: warning: passing arg 1 of `nv_kern_ctl_open' from incompatible pointer type
nv.c:1159: warning: passing arg 2 of `nv_kern_ctl_open' from incompatible pointer type
nv.c:1162: dereferencing pointer to incomplete type
nv.c:1169: union has no member named `usecount'
nv.c:1177: dereferencing pointer to incomplete type
nv.c:1206: warning: implicit declaration of function `request_irq'
nv.c:1207: `SA_SHIRQ' undeclared (first use in this function)
nv.c:1225: sizeof applied to an incomplete type
nv.c:1226: sizeof applied to an incomplete type
nv.c:1230: warning: implicit declaration of function `init_waitqueue_head'
nv.c:1244: union has no member named `usecount'
nv.c: At top level:
nv.c:1261: warning: `struct file' declared inside parameter list
nv.c:1261: warning: `struct inode' declared inside parameter list
nv.c:1262: conflicting types for `nv_kern_close'
nv.c:210: previous declaration of `nv_kern_close'
nv.c: In function `nv_kern_close':
nv.c:1263: `nvl' undeclared (first use in this function)
nv.c:1263: parse error before ')' token
nv.c:1263: dereferencing pointer to incomplete type
nv.c:1268: dereferencing pointer to incomplete type
nv.c:1269: warning: passing arg 1 of `nv_kern_ctl_close' from incompatible pointer type
nv.c:1269: warning: passing arg 2 of `nv_kern_ctl_close' from incompatible pointer type
nv.c:1273: `current' undeclared (first use in this function)
nv.c:1301: warning: implicit declaration of function `free_irq'
nv.c:1336: dereferencing pointer to incomplete type
nv.c:1337: warning: implicit declaration of function `kfree'
nv.c:1337: dereferencing pointer to incomplete type
nv.c:1338: dereferencing pointer to incomplete type
nv.c:1340: union has no member named `usecount'
nv.c: At top level:
nv.c:1348: warning: `struct file' declared inside parameter list
nv.c:1349: conflicting types for `nv_kern_mmap'
nv.c:211: previous declaration of `nv_kern_mmap'
nv.c: In function `nv_kern_mmap':
nv.c:1352: `nvl' undeclared (first use in this function)
nv.c:1352: parse error before ')' token
nv.c:1352: dereferencing pointer to incomplete type
nv.c:1361: dereferencing pointer to incomplete type
nv.c:1362: dereferencing pointer to incomplete type
nv.c:1363: dereferencing pointer to incomplete type
nv.c:1368: dereferencing pointer to incomplete type
nv.c:1368: dereferencing pointer to incomplete type
nv.c:1375: dereferencing pointer to incomplete type
nv.c:1383: dereferencing pointer to incomplete type
nv.c:1384: dereferencing pointer to incomplete type
nv.c:1384: dereferencing pointer to incomplete type
nv.c:1384: dereferencing pointer to incomplete type
nv.c:1389: warning: implicit declaration of function `remap_page_range'
nv.c:1389: dereferencing pointer to incomplete type
nv.c:1390: dereferencing pointer to incomplete type
nv.c:1391: dereferencing pointer to incomplete type
nv.c:1391: dereferencing pointer to incomplete type
nv.c:1392: dereferencing pointer to incomplete type
nv.c:1396: dereferencing pointer to incomplete type
nv.c:1396: `VM_IO' undeclared (first use in this function)
nv.c:1400: dereferencing pointer to incomplete type
nv.c:1401: dereferencing pointer to incomplete type
nv.c:1401: dereferencing pointer to incomplete type
nv.c:1401: dereferencing pointer to incomplete type
nv.c:1406: dereferencing pointer to incomplete type
nv.c:1407: dereferencing pointer to incomplete type
nv.c:1408: dereferencing pointer to incomplete type
nv.c:1408: dereferencing pointer to incomplete type
nv.c:1409: dereferencing pointer to incomplete type
nv.c:1413: dereferencing pointer to incomplete type
nv.c:1417: dereferencing pointer to incomplete type
nv.c:1436: dereferencing pointer to incomplete type
nv.c:1440: warning: implicit declaration of function `__pgprot'
nv.c:1448: dereferencing pointer to incomplete type
nv.c:1448: `VM_LOCKED' undeclared (first use in this function)
nv.c:1452: dereferencing pointer to incomplete type
nv.c:1479: dereferencing pointer to incomplete type
nv.c:1483: dereferencing pointer to incomplete type
nv.c:1487: dereferencing pointer to incomplete type
nv.c:1493: dereferencing pointer to incomplete type
nv.c:1496: union has no member named `usecount'
nv.c: At top level:
nv.c:1504: parse error before "poll_table"
nv.c:1505: warning: `struct file' declared inside parameter list
nv.c: In function `nv_kern_poll':
nv.c:1508: `nvl' undeclared (first use in this function)
nv.c:1512: `file' undeclared (first use in this function)
nv.c:1513: parse error before ')' token
nv.c:1519: `wait' undeclared (first use in this function)
nv.c:1522: warning: implicit declaration of function `poll_wait'
nv.c: At top level:
nv.c:1588: warning: `struct file' declared inside parameter list
nv.c:1588: warning: `struct inode' declared inside parameter list
nv.c:1589: conflicting types for `nv_kern_ioctl'
nv.c:213: previous declaration of `nv_kern_ioctl'
nv.c: In function `nv_kern_ioctl':
nv.c:1592: `nvl' undeclared (first use in this function)
nv.c:1596: parse error before ')' token
nv.c:1596: dereferencing pointer to incomplete type
nv.c:1608: warning: implicit declaration of function `atomic_set'
nv.c:1608: union has no member named `usecount'
nv.c:1635: warning: implicit declaration of function `copy_from_user'
nv.c:1647: `tnvl' undeclared (first use in this function)
nv.c:1652: warning: left-hand operand of comma expression has no effect
nv.c:1671: warning: implicit declaration of function `copy_to_user'
nv.c:1652: warning: value computed is not used
nv.c: In function `nv_kern_isr':
nv.c:1711: `nvl' undeclared (first use in this function)
nv.c: At top level:
nv.c:1782: warning: `struct file' declared inside parameter list
nv.c:1782: warning: `struct inode' declared inside parameter list
nv.c:1783: conflicting types for `nv_kern_ctl_open'
nv.c:225: previous declaration of `nv_kern_ctl_open'
nv.c: In function `nv_kern_ctl_open':
nv.c:1785: `nvl' undeclared (first use in this function)
nv.c:1794: dereferencing pointer to incomplete type
nv.c:1796: union has no member named `usecount'
nv.c:1807: sizeof applied to an incomplete type
nv.c:1808: sizeof applied to an incomplete type
nv.c: At top level:
nv.c:1837: warning: `struct file' declared inside parameter list
nv.c:1837: warning: `struct inode' declared inside parameter list
nv.c:1838: conflicting types for `nv_kern_ctl_close'
nv.c:226: previous declaration of `nv_kern_ctl_close'
nv.c: In function `nv_kern_ctl_close':
nv.c:1839: dereferencing pointer to incomplete type
nv.c:1847: `nvl' undeclared (first use in this function)
nv.c:1847: parse error before ')' token
nv.c:1856: `current' undeclared (first use in this function)
nv.c:1859: dereferencing pointer to incomplete type
nv.c:1860: dereferencing pointer to incomplete type
nv.c:1861: dereferencing pointer to incomplete type
nv.c:1863: union has no member named `usecount'
nv.c: At top level:
nv.c:1876: parse error before "poll_table"
nv.c:1877: warning: `struct file' declared inside parameter list
nv.c: In function `nv_kern_ctl_poll':
nv.c:1879: `nvl' undeclared (first use in this function)
nv.c:1883: parse error before ')' token
nv.c:1883: `file' undeclared (first use in this function)
nv.c:1889: `wait' undeclared (first use in this function)
nv.c: In function `nv_set_hotkey_occurred_flag':
nv.c:1915: request for member `nv_state' in something not a structure or union
nv.c:1916: request for member `nv_state' in something not a structure or union
nv.c:1917: request for member `nv_state' in something not a structure or union
nv.c:1919: warning: implicit declaration of function `wake_up_interruptible'
nv.c:1919: request for member `event_queue' in something not a structure or union
nv.c: In function `nv_kern_read_cardinfo':

BLUESCREEN3D
07.10.02, 01:53
nv.c:2005: dereferencing pointer to incomplete type
nv.c:2030: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c: In function `nv_kern_read_agpinfo':
nv.c:2071: dereferencing pointer to incomplete type
nv.c:2075: dereferencing pointer to incomplete type
nv.c:2084: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c: In function `nv_kern_read_status':
nv.c:2121: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c:2129: warning: passing arg 1 of `nvos_find_agp_capability' from incompatible pointer type
nv.c: In function `nv_vtop':
nv.c:2202: warning: implicit declaration of function `put_user'
nv.c: In function `nv_find_kernel_mapping':
nv.c:2218: parse error before ')' token
nv.c:2222: dereferencing pointer to incomplete type
nv.c:2224: warning: return makes pointer from integer without a cast
nv.c: In function `nv_get_phys_address':
nv.c:2240: `pgd_t' undeclared (first use in this function)
nv.c:2240: `pg_dir' undeclared (first use in this function)
nv.c:2241: `pmd_t' undeclared (first use in this function)
nv.c:2241: `pg_mid_dir' undeclared (first use in this function)
nv.c:2242: `pte_t' undeclared (first use in this function)
nv.c:2242: `pte__' undeclared (first use in this function)
nv.c:2242: `pte' undeclared (first use in this function)
nv.c:2242: warning: left-hand operand of comma expression has no effect
nv.c:2245: `high_memory' undeclared (first use in this function)
nv.c:2255: `PAGE_OFFSET' undeclared (first use in this function)
nv.c:2256: warning: implicit declaration of function `__pa'
nv.c:2259: `init_mm' undeclared (first use in this function)
nv.c:2261: `current' undeclared (first use in this function)
nv.c:2267: warning: implicit declaration of function `pmd_val'
nv.c:2276: parse error before ')' token
nv.c:2282: warning: implicit declaration of function `pte_val'
nv.c: In function `nv_alloc_pages':
nv.c:2319: `nvl' undeclared (first use in this function)
nv.c:2319: parse error before ')' token
nv.c:2321: `GFP_KERNEL' undeclared (first use in this function)
nv.c:2330: `current' undeclared (first use in this function)
nv.c:2356: `PG_reserved' undeclared (first use in this function)
nv.c:2356: invalid type argument of `->'
nv.c: In function `nv_free_pages':
nv.c:2450: `nvl' undeclared (first use in this function)
nv.c:2450: parse error before ')' token
nv.c:2495: `PG_reserved' undeclared (first use in this function)
nv.c:2495: invalid type argument of `->'
nv.c:2500: warning: implicit declaration of function `free_pages'
nv.c: In function `nv_lock_init_locks':
nv.c:2525: `nvl' undeclared (first use in this function)
nv.c:2525: parse error before ')' token
nv.c:2532: warning: implicit declaration of function `spin_lock_init'
nv.c: In function `nv_lock_rm':
nv.c:2552: `nvl' undeclared (first use in this function)
nv.c:2552: parse error before ')' token
nv.c: In function `nv_unlock_rm':
nv.c:2609: `nvl' undeclared (first use in this function)
nv.c:2612: parse error before ')' token
nv.c: In function `nv_lock_ldata':
nv.c:2631: `nvl' undeclared (first use in this function)
nv.c:2631: parse error before ')' token
nv.c: In function `nv_unlock_ldata':
nv.c:2683: `nvl' undeclared (first use in this function)
nv.c:2686: parse error before ')' token
nv.c: In function `nv_lock_at':
nv.c:2707: `nvl' undeclared (first use in this function)
nv.c:2707: parse error before ')' token
nv.c: In function `nv_unlock_at':
nv.c:2759: `nvl' undeclared (first use in this function)
nv.c:2762: parse error before ')' token
nv.c: In function `nv_lock_bh':
nv.c:2783: `nvl' undeclared (first use in this function)
nv.c:2783: parse error before ')' token
nv.c: In function `nv_unlock_bh':
nv.c:2822: `nvl' undeclared (first use in this function)
nv.c:2825: parse error before ')' token
nv.c: In function `nv_post_event':
nv.c:2848: `nvl' undeclared (first use in this function)
nv.c:2852: dereferencing pointer to incomplete type
nv.c:2853: parse error before ')' token
nv.c:2853: dereferencing pointer to incomplete type
nv.c: In function `nv_post_vblank':
nv.c:2870: `nvl' undeclared (first use in this function)
nv.c:2870: parse error before ')' token
nv.c: In function `nv_agp_init':
nv.c:2925: warning: implicit declaration of function `inter_module_get'
nv.c:2926: warning: implicit declaration of function `inter_module_put'
nv.c: In function `nv_agp_translate_address':
nv.c:2997: parse error before ')' token
nv.c: In function `nv_agp_retrieve_mapping':
nv.c:3023: parse error before ')' token
/usr/include/linux/highmem.h: At top level:
nv.c:236: storage size of `nv_fops' isn't known
nv.c:1124: storage size of `nv_vm_ops' isn't known
make: *** [nv.o] Error 1
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.64636
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd NVIDIA_kernel-1.0-2960
+ LANG=C
+ export LANG
+ rm -f /tmp/files.lst
+ '[' -z '' ']'
++ uname -r
+ export TARGET_KERNEL=2.4.18-14
+ TARGET_KERNEL=2.4.18-14
+ '[' -d /lib/modules/2.4.18-14/kernel ']'
+ INSTALLPATH=/lib/modules/2.4.18-14/kernel/drivers/video
+ mkdir -p /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-14/kernel/drivers/video
+ install -m 0444 NVdriver /var/tmp/NVIDIA_kernel-1.0//lib/modules/2.4.18-14/kernel/drivers/video
install: cannot stat `NVdriver': No such file or directory
Fehler: Bad exit status from /var/tmp/rpm-tmp.64636 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.64636 (%install)

---------------------------------------

so, das wars - schon ;)

kapier nichts mehr und ich habe auch höhere Versionen als nach der nvidia-readme benötigt - nur das Paket spec-helper fehlt mir und ich weiss nicht, wo ich das runterladen kann

zander
07.10.02, 09:44
In file included from /usr/include/linux/fs.h:23,
from nv-linux.h:26,
from nv.c:27:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!


Hier wird bereits Dein Problem genannt, Du benutzt nicht die richtigen Headerdateien. Bitte lies Dir die NVIDIA Dokumentation und/oder einen der vielen threads zu den Themen "modversions.h nicht gefunden", "kann NVIDIA_kernel nicht kompilieren", u.a. durch, falls Du nicht weisst, wie Du an die Kernelheader/quellen kommen sollst.

BLUESCREEN3D
07.10.02, 15:22
in der nvidia-readme steht was davon, dass ich bei "make install" noch "SYSINCLUDE=path/to/kernel/headers" hinterschreiben soll. Ich habe die Kernelsourcen aber nicht installiert und da ich von Festplatte installiert habe und die ISO-Images auf einer anderen Partiton (Windows) liegen, komme ich irgendwie nicht an die CD, die ich bracue, dran (habe auch keinen Brenner) - deshalb habe ich mir die Kernelsourcen runtergeladen, entpackt und "make mrproper" ausgeführt, wie es in der readme, die dabei war, steht (Kernelversion 2.4.18-14). Anschließend habe ich "make config" ausgeführt und bei den ganzen [Y/n/?]-Fragen Enter gedrückt. Da ich ja nur die Sourcen brauche, habe ich den kernel nicht kompiliert.

Hinter dem SYSINCLUDE soll sowas wie /lib/modules/2.4.18-14/build/include stehen
build ist ein link dessen ziel nicht existiert: ../../../usr/src/linux-2.4.18-14 also /usr/src/linux-2.4.18-14
ich habe unter /usr/src aber nur das Verezeichnis redhat und darin sind die Verzeichnisse BUILD, RPMS, SOURCES, SPECS, SRPMS aber kein include :confused:

Belkira
07.10.02, 16:26
bracue, dran (habe auch keinen Brenner) - deshalb habe ich mir die Kernelsourcen runtergeladen, entpackt und "make mrproper" ausgeführt, wie es in der readme, die dabei war, steht (Kernelversion 2.4.18-14). Anschließend habe ich "make config" ausgeführt und bei den ganzen [Y/n/?]-Fragen Enter gedrückt. Da ich ja nur die Sourcen brauche, habe ich den kernel nicht kompiliert.
Nach "make mrproper" kopierst Du die Kernel Config Datei für Deinen Kernel entweder aus dem ./configs Unterverzeichnis oder aus /boot: cp /boot/config-2.4.18-14 /usr/src/linux-2.4/.config und rufst make oldconfig auf. Danach paßt Du ggf. im Makefile ganz oben den Präfix in der EXTRAVERSION= Definition an, damit Modul- und Kernelversion übereinstimmen.

BLUESCREEN3D
07.10.02, 22:16
bin mir nicht ganz sicher, ob jetzt alles stimmt - ich habe das gemacht:
1. das Verzeichnis /usr/src/linux-2.4.18-14 erstellt
2. die Datei /boot/config-2.4.18-14 nach /usr/src/linux-2.4.18-14/.config kopiert
3. unter /home/user/linux "make oldconfig" aufgerufen
4. in /home/user/linux/Makefile hinter EXTRAVERSION = 2.4.18-14 eingefügt

Ergebnis:
der Link "/lib/modules/2.4.18-14/build" ist nicht mehr defekt und zeigt auf "/usr/src/linux-2.4.18-14" :D
das Verzeichnis "/usr/src/linux-2.4.18-14" ist aber leer - es sollte aber das Unterverzeichnis "include" enthalten :confused:

Belkira
07.10.02, 22:25
bin mir nicht ganz sicher, ob jetzt alles stimmt - ich habe das gemacht:
1. das Verzeichnis /usr/src/linux-2.4.18-14 erstellt
2. die Datei /boot/config-2.4.18-14 nach /usr/src/linux-2.4.18-14/.config kopiert
3. unter /home/user/linux "make oldconfig" aufgerufen

Hups? Warum dieser Punkt 3? Das hat doch sicher Fehler gegeben. Du rufst es natürlich in /usr/src/linux-2.4 auf, im Kernel Source Verzeichnis!

4. in /home/user/linux/Makefile hinter EXTRAVERSION = 2.4.18-14 eingefügt

Watt'n das für ein Makefile? Du nimmst in /usr/src/linux-2.4/Makefile das "custom" hinter EXTRAVERSION=... heraus! Dein Kernel hat doch Version 2.4.18-14 und nicht 2.4.18-14custom.
das Verzeichnis "/usr/src/linux-2.4.18-14" ist aber leer - es sollte aber das Unterverzeichnis "include" enthalten :confused:
Du hast das kernel-source-2.4.18-14.i386.rpm noch garnicht installiert. Nachholen, und dann gehe zurück zu LOS und ziehe keine 2045.17 Euro ein. ;)

BLUESCREEN3D
07.10.02, 23:40
muss ich nach "make mrproper" noch irgendwas an den kernel-sourcen machen? make dep oder so?

BLUESCREEN3D
08.10.02, 00:04
Nochmal ganz von vorne:

-ich habe die Datei linux-2.4.18.tar.gz runtergeladen
-entpackt nach /usr/src/linux-2.4.18-14
-in /usr/src/linux-2.4.18-14 "make mrproper" ausgeführt
-die Datei /boot/config-2.4.18-14 nach /usr/src/linux-2.4.18-14/.config kopiert
-unter /usr/src/linux-2.4.18-14 "make oldconfig" aufgerufen
-in /usr/src/linus-2.4.18-14/Makefile die Zeile mit EXTRAVERSION geändert in "EXTRAVERSION = 2.4.18-14"

dann der Grafikkartentreiber:
-die glx.tar.gz und die kernel.tar.gz runtergeladen
-entpackt in /home/user
-in /home/user/kernel/ "make install" ausgeführt mit folgendem fehler:

[root@localhost NVIDIA_kernel-1.0-2960]# make install
cc -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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960
-I. -I/lib/modules/2.4.18-14/build/include -Wno-cast-qual nv.c
In file included from nv.c:22:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
make: *** [nv.o] Fehler 1

hat das was mit der modversions.h zu tun?

meine modversions.h liegt im verzeichnis /usr/include/linux und enthält diesen text:
#error Modules should never use kernel-headers system headers,
#error but rather headers from an appropriate kernel-source package.
#error Change -I/usr/src/linux/include (or similar) to
#error -I/lib/modules/$(uname -r)/build/include
#error to build against the currently-running kernel.

Hier wird bereits Dein Problem genannt, Du benutzt nicht die richtigen Headerdateien.

ich habe doch die kernelsourcen installiert, damit ich die richtige modversions.h habe - aber es geht imernoch nicht... :confused:

BLUESCREEN3D
08.10.02, 00:16
ok, ich musste "make dep" ausführen bevor ich "make install" für den nvidia-treiber starten kann
habe trotzdem ein problem mit "make install":

[root@localhost NVIDIA_kernel-1.0-2960]# make install
cc -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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960
-I. -I/lib/modules/2.4.18-14/build/include -Wno-cast-qual nv.c
cc -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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960
-I. -I/lib/modules/2.4.18-14/build/include -Wno-cast-qual os-interface.c
cc -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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960
-I. -I/lib/modules/2.4.18-14/build/include -Wno-cast-qual os-registry.c
ld -r -o Module-linux nv.o os-interface.o os-registry.o
ld -r -o NVdriver Module-linux Module-nvkernel
size NVdriver
text data bss dec hex filename
823808 52756 52396 928960 e2cc0 NVdriver
depmod: *** Unresolved symbols in /lib/modules/2.4.18-14/kernel/drivers/video/NVdriver
/lib/modules/2.4.18-14/kernel/drivers/video/NVdriver: The module you are trying to load (/lib/modules/2.4.18-14/kernel/drivers/video/NVdriver) is compiled with a gcc
version 2 compiler, while the kernel you are running is compiled with
a gcc version 3 compiler. This is known to not work.
/lib/modules/2.4.18-14/kernel/drivers/video/NVdriver: insmod /lib/modules/2.4.18-14/kernel/drivers/video/NVdriver failed
/lib/modules/2.4.18-14/kernel/drivers/video/NVdriver: insmod NVdriver failed
make: *** [package-install] Fehler 255
[root@localhost NVIDIA_kernel-1.0-2960]#

BLUESCREEN3D
08.10.02, 00:18
"make install SYSINCLUDE=/lib/modules/2.4.18-14/build/include" ging auch nicht

Belkira
08.10.02, 01:58
-ich habe die Datei linux-2.4.18.tar.gz runtergeladen

Du lädst nirgendwo etwas herunter, sondern installierst das kernel-source-2.4.18-14.i386.rpm von CD 2. Du willst den Red Hat Linux kernel, nicht den ungepatchten.

-entpackt nach /usr/src/linux-2.4.18-14

Du löscht das und installierst das kernel-source rpm, z.B. rpm -ivh kernel-source-2.4.18-14.i386.rpm, und bekommst /usr/src/linux-2.4.

-in /usr/src/linus-2.4.18-14/Makefile die Zeile mit EXTRAVERSION geändert in "EXTRAVERSION = 2.4.18-14"

Du nimmst in der Zeile das "custom" in "EXTRAVERSION = -14custom" heraus, damit Du Deinen installierten Kernel 2.4.18-14 von Red Hat Linux 8.0 verwenden kannst. Andernfalls bräuchte das Modul einen 2.4.18-14-custom Kernel.

dann der Grafikkartentreiber:
-die glx.tar.gz und die kernel.tar.gz runtergeladen
-entpackt in /home/user

Warum nicht die rpms?

-in /home/user/kernel/ "make install" ausgeführt mit folgendem fehler:

[root@localhost NVIDIA_kernel-1.0-2960]# make install
cc -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 -D_X86=1 -Di386=1 -DUNIX -DLINUX -DNV4_HW -DNTRM -DRM20 -D_GNU_SOURCE -DRM_HEAPMGR -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_MAJOR_VERSION=1 -DNV_MINOR_VERSION=0 -DNV_PATCHLEVEL=2960
-I. -I/lib/modules/2.4.18-14/build/include -Wno-cast-qual nv.c
In file included from nv.c:22:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but rather headers from an appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include (or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the currently-running kernel.
make: *** [nv.o] Fehler 1

hat das was mit der modversions.h zu tun?

Immernoch die falschen glibc kernel headers in /usr/include, die nicht für kernel Module verwendet werden! Die vorletzte Zeile der Fehlermeldung gibt genaue Anweisung, was Du tun bräuchtest, damit die korrekten Kernel Header gefunden werden.

meine modversions.h liegt im verzeichnis /usr/include/linux und enthält diesen text:

Falsches Verzeichnis, falsche Datei. Die Kernel Header sind in /usr/src/linux-2.4, die Datei in
/usr/src/linux-2.4/include/linux/modversions.h

BLUESCREEN3D
08.10.02, 11:49
Ich habe die Kernelsourcen aber nicht installiert und da ich von Festplatte installiert habe und die ISO-Images auf einer anderen Partiton (Windows) liegen, komme ich irgendwie nicht an die CD, die ich bracue, dran (habe auch keinen Brenner)


nochmal: ICH HABE DIE CDS NUR AUF FESTPLATTE UND WENN ICH UNTER LINUX PAKETE NACHINSTALLIEREN WILL, VERSUCHT ER DIE DATEIEN VOM CD-ROM-LAUFWERK ZU HOLEN UND ZEIGT DANACH DIE MELDUNG "CD NICHT GEFUNDEN" AN


unter win habe ich son proggi, das daemon-tools heisst und aus iso-images cd-rom-laufwerke emulieren kann - gibt es sowas nicht auch für linux?
außerdem habe ich es noch nicht geschafft, von linux aus auf die win-partition, auf der die cd-images sind, zuzugreifen - muss ich dafür auch noch irgendwelche pakete installieren?

BLUESCREEN3D
08.10.02, 11:56
Immernoch die falschen glibc kernel headers in /usr/include, die nicht für kernel Module verwendet werden! Die vorletzte Zeile der Fehlermeldung gibt genaue Anweisung, was Du tun bräuchtest, damit die korrekten Kernel Header gefunden werden.

meinst du mit vorletzte zeile das hier?
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname -r)/build/include

wenn ja: zuerst zeigte der link build auf ein nicht vorhandenes bverzeichnis, weil die kernel-sourcen nicht installiert ware - nach der kernel-sourcen-installation war das verzeichnis da und ich habe versucht statt "make install" "make install SYSINCLUDE=/lib/modules/2.4.18-14/build/include" aufzurufen, aber es entstand genau der gleiche fehler
was ist glibc? woher kriege ich das? bevor ichs wieder falsch mache: wohin installiere ich das?

ich kann mit den daemon-tools die 2. cd emulieren und darauf zugreifen, bin aber gerade unter windows - werde jetzt mal probieren, die 30mb-datei kernel-source-2.4.18-14.i386.rpm auf meinen server zu kopieren und dann von da aus wieder nach linux - wie kopiere ich daten über netzwerk von einem linux-pc (SuSE 7.3) auf einen anderen (Red Hat 8.0)? Um Daten vom Win-PC auf den Server zu kopieren benutze ich immer putty_scp

BLUESCREEN3D
08.10.02, 12:01
Warum nicht die rpms?

ka - die habe ich auch runtergeladen und wollte sie ursprünglich benutzen, aber irgendwie mache ich jetzt alles mit den tar-archiven - weiss auch nicht mehr warum... irgendwas ging mit denen auch nich...
gibt es da einen unterschied, ob ich die src.rpm oder die tar-datei benutze? oder geht nur eins von beiden?

Belkira
08.10.02, 12:25
unter win habe ich son proggi, das daemon-tools heisst und aus iso-images cd-rom-laufwerke emulieren kann - gibt es sowas nicht auch für linux?

Natürlich: mount -o loop,ro datei.iso /mnt/irgendwas

was ist glibc? woher kriege ich das?
rpm -q glibc glibc-devel

Die System C Library. Dürfest Du installiert haben. Ohne glibc liefe Dein System nicht.

Ansonsten. Halt Dich an die Dokumentation und was das Forum zu nvidia Treiber hergibt (ist massig!).

BLUESCREEN3D
08.10.02, 13:40
/mnt/irgendwas ging nich (kann ich mir da nicht eigenen namen aussuchen?) deshalb habe ich meine win-partition als /mnt/cdrom gemountet und das ging sogar :eek: habe dann das image auf die linux-partition kopiert und die datei dann als /mnt/cdrom gemountet und dann von /mnt/cdrom die "kernel-source-2.4.18-14.i386.rpm" auf die linux-partition kopiert

stimmt das so?:
[root@localhost user]# rpm -q glibc glibc-devel
glibc-2.2.93-5
glibc-devel-2.2.93-5
[root@localhost user]#

BLUESCREEN3D
08.10.02, 13:51
die kernelsourcen habe ich mit "rpm -ivh kernel-source-2.4.18-14.i386.rpm" installiert - muss ich jetzt noch irgendwas machen, bevor ich unter "/home/user/NVIDIA_kernel-1.0-2960/" "make" starten kann? wenn ich es jetzt starte kommt folgende fehlermeldung:

[root@localhost NVIDIA_kernel-1.0-2960]# make
make: *** Keine Regel vorhanden, um das Target »/lib/modules/2.4.18-14/build/include/linux/modules/fsm.ver«,
benötigt von »nv.o«, zu erstellen. Schluss.
[root@localhost NVIDIA_kernel-1.0-2960]#

Belkira
08.10.02, 13:52
/mnt/irgendwas ging nich (kann ich mir da nicht eigenen namen aussuchen?)
Autsch! ;) Hätte ich geschrieben mount -o loop,ro datei.iso /irgendeinpfad, hättest Du entweder geantwortet datei.iso nicht gefunden oder /irgendeinpfad nicht gefunden. ;) Natürlich nimmt Du statt /mnt/irgendetwas ein Verzeichnis, das bei Dir existiert! :rolleyes:

stimmt das so?:
[root@localhost user]# rpm -q glibc glibc-devel
glibc-2.2.93-5
glibc-devel-2.2.93-5
[root@localhost user]#
Ja.

Belkira
08.10.02, 15:09
Bevor das hier eskaliert und komplizierter wirkt, als es in Wirklichkeit ist:
/usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
http://www.nvidia.com/view.asp?IO=linux_display_1.0-3123

Bitte diese Version vom September nehmen, nicht irgendeine Asbachversion vom Mai!

Fragen bitte öffentlich im Forum, nicht privat an mich. Es gibt hier genug kompetente User, die auch helfen würden-

BLUESCREEN3D
08.10.02, 17:04
ist das eine *******e, dass es bei nvidia.de nur einen älteren Treiber gibt als bei nvidia.com - und ich bin wegen der übersetzten Readme natürlich bei nvidia.de gewesen...

/usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
^^ soll ich die da speichern und entpacken? ^^

Belkira
08.10.02, 17:10
Original geschrieben von BLUESCREEN3D
ist das eine *******e, dass es bei nvidia.de nur einen älteren Treiber gibt als bei nvidia.com - und ich bin wegen der übersetzten Readme natürlich bei nvidia.de gewesen...

/usr/src/redhat/SOURCES/NVIDIA_kernel-1.0-2960.tar.gz
^^ soll ich die da speichern und entpacken? ^^
Völlig egal, wo Du sie hintust.

Nimm die src.rpm Dateien und mach einfach ein rpmbuild --rebuild auf sie. Und falls Du rpmbuild nicht hast, nachinstallieren. ;)

Echt schwere Geburt mit Dir hier. :p :D

BLUESCREEN3D
08.10.02, 17:37
:ugly: :ugly: :ugly: KEIN KOMMENTAR ZU NVIDIA! :ugly: :ugly: :ugly:

habe mir die aktuelle version von nvidia.com runtergelden, genau das gemacht, was in der readme steht und es ging auf anhieb! :cool: