Toon posts:

Drivers nForce Rebuilden voor Mandrake 9.1

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb dus nu Mandrake 9.1 geinstalleerd en ik heb een nForce moederbord van MSI. Hiervoor heb ik de drivers gedownload, maar dit werkte dus niet, want deze waren voor een andere kernel. dus ik dacht, ik ga ze rebuilden met rpm --rebuild (bestandsnaam). Echter dit lukt niet echt, want ik krijg zo'n beetje 1,5 pagina aan fouten.... Doe ik het nou fout of doet die computer het nou fout....hoe los ik dit op?

Dit krijg ik te zien:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[root@ROSSLINUX root]# rpmbuild --recompile NVIDIA_nforce-1.0-0248.src.rpm
Installing NVIDIA_nforce-1.0-0248.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.40640
+ umask 022
+ cd /usr/src/RPM/BUILD
+ echo '---- Copying Sources ----'
---- Copying Sources ----
+ cd /usr/src/RPM/BUILD
+ rm -rf nforce
+ /bin/gzip -dc /usr/src/RPM/SOURCES/nvnet.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm  0 2002-11-26 09:07:59 nforce/
drwxr-xr-x buildmeister/adm  0 2002-11-26 09:08:37 nforce/nvnet/
-r--r--r-- buildmeister/adm 14079 2002-11-26 09:08:37 nforce/nvnet/adapter.h
-r--r--r-- buildmeister/adm   794 2002-11-26 09:08:37 nforce/nvnet/basetype.h
-r--r--r-- buildmeister/adm  6416 2002-11-26 09:08:37 nforce/nvnet/nvnet.h
-r--r--r-- buildmeister/adm  3864 2002-11-26 09:08:37 nforce/nvnet/os.h
-r--r--r-- buildmeister/adm  4749 2002-11-26 09:08:37 nforce/nvnet/phy.h
-r--r--r-- buildmeister/adm 34214 2002-11-26 09:08:37 nforce/nvnet/nvnet.c
-rw-r--r-- buildmeister/adm 21768 2002-11-26 09:08:37 nforce/nvnet/nvnetlib.o
-r--r--r-- buildmeister/adm  2661 2002-11-26 09:08:37 nforce/nvnet/Makefile
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /bin/gzip -dc /usr/src/RPM/SOURCES/nvaudio.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm  0 2002-11-26 09:08:37 nforce/
drwxr-xr-x buildmeister/adm  0 2002-11-26 09:08:37 nforce/nvaudio/
-r--r--r-- buildmeister/adm 2599 2002-11-26 09:08:37 nforce/nvaudio/Makefile
-r--r--r-- buildmeister/adm 1088 2002-11-26 09:08:37 nforce/nvaudio/i810_audio-nforce23.patch
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ cd /usr/src/RPM/BUILD
+ /bin/gzip -dc /usr/src/RPM/SOURCES/nvmaster.tgz
+ tar -xvvf -
drwxr-xr-x buildmeister/adm  0 2002-11-26 09:08:37 nforce/
-r--r--r-- buildmeister/adm 1084 2002-11-26 09:08:36 nforce/Makefile
-r--r--r-- buildmeister/adm 12052 2002-11-26 09:08:36 nforce/README
-r--r--r-- buildmeister/adm  5404 2002-11-26 09:08:36 nforce/NVLicense.txt
-r--r--r-- buildmeister/adm 18007 2002-11-26 09:08:36 nforce/GNULicense.txt
-rw-r--r-- buildmeister/adm 100614 2002-11-26 09:08:37 nforce/ReleaseNotes.pdf
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd nforce
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.40640
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd nforce
+ echo '---- Building Drivers ----'
---- Building Drivers ----
+ make
make -C  nvnet
make[1]: Entering directory `/usr/src/RPM/BUILD/nforce/nvnet'
cc -c -DLINUX -DMODULE -DEXPORT_SYMTAB -D__KERNEL__ -O -Wstrict-prototypes -DCONFIG_PM  -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -falign-functions=4 -DMODULE -I/usr/src/linux-2.4.21/include   nvnet.c
In file included from /usr/include/linux/prefetch.h:13,
                 from /usr/include/linux/list.h:6,
                 from /usr/include/linux/module.h:11,
                 from nvnet.h:20,
                 from nvnet.c:21:
/usr/include/asm/processor.h:55: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: requested alignment is not a constant
In file included from /usr/include/linux/module.h:20,
                 from nvnet.h:20,
                 from nvnet.c:21:
/usr/include/linux/modversions.h:1:2: #error "======================================================="
/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error ""
/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"
/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"
/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error ""
/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"
/usr/include/linux/modversions.h:14:2: #error ""
/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"
/usr/include/linux/modversions.h:16:2: #error ""
/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"
/usr/include/linux/modversions.h:18:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error "   the matching kernel source directory"
/usr/include/linux/modversions.h:20:2: #error ""
/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error ""
/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/modversions.h:25:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/modversions.h:26:2: #error ""
/usr/include/linux/modversions.h:27:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/modversions.h:28:2: #error ""
/usr/include/linux/modversions.h:29:2: #error "   instead of"
/usr/include/linux/modversions.h:30:2: #error ""
/usr/include/linux/modversions.h:31:2: #error "   -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error ""
/usr/include/linux/modversions.h:33:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/modversions.h:34:2: #error "======================================================="
In file included from /usr/include/linux/module.h:297,
                 from nvnet.h:20,
                 from nvnet.c:21:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nvnet.h:20,
                 from nvnet.c:21:
/usr/include/linux/module.h:299: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
In file included from /usr/include/asm/hardirq.h:6,
                 from /usr/include/linux/interrupt.h:46,
                 from nvnet.h:30,
                 from nvnet.c:21:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
                 from nvnet.h:30,
                 from nvnet.c:21:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from nvnet.h:30,
                 from nvnet.c:21:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
In file included from nvnet.h:31,
                 from nvnet.c:21:
/usr/include/linux/version.h:2:2: #error "======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"
/usr/include/linux/version.h:23:2: #error "   /lib/modules/`uname -r`/build/include/linux/version.h"
/usr/include/linux/version.h:24:2: #error ""
/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"
/usr/include/linux/version.h:26:2: #error "   compiler option to use the correct include files:"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error "   -I/lib/modules/`uname -r`/build/include"
/usr/include/linux/version.h:29:2: #error ""
/usr/include/linux/version.h:30:2: #error "   instead of"
/usr/include/linux/version.h:31:2: #error ""
/usr/include/linux/version.h:32:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:33:2: #error ""
/usr/include/linux/version.h:34:2: #error "   Please adjust the Makefile accordingly."
/usr/include/linux/version.h:35:2: #error "======================================================="
In file included from nvnet.h:35,
                 from nvnet.c:21:
/usr/include/linux/netdevice.h:165: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:165: requested alignment is not a constant
In file included from nvnet.h:35,
                 from nvnet.c:21:
/usr/include/linux/netdevice.h:507: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/netdevice.h:507: requested alignment is not a constant
nvnet.c:40:41: missing binary operator before '('
nvnet.c:1208:41: missing binary operator before '('
make[1]: *** [nvnet.o] Error 1
make[1]: Leaving directory `/usr/src/RPM/BUILD/nforce/nvnet'
make: *** [nvnet_make] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.40640 (%build)


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

[ Voor 98% gewijzigd door Verwijderd op 22-05-2003 21:33 . Reden: Code toegevoerd (beetje groot) ]


Verwijderd

ik denk dat die CONFIG_X86_L1_CACHE_SHIFT error erger is dan die warning dat je eigenlijk de /usr/include/asm/ moet overslaan en zelf moet compileren.
Als je enig idee hebt wat CONFIG_X86_L1_CACHE_SHIFT zou moeten zijn kan je export doen

  • mpol
  • Registratie: September 2002
  • Laatst online: 19-01 18:45

mpol

root@localhost

Ik neem aan dat dit kernelmodules zijn die je compileert? Dan moeten ze gelinkt worden tegen /usr/src/linux/include/linux en niet tegen /usr/include/linux. Dat is wel duidelijk vermeld in de foutmeldingen. Heb je de kernel-source rpm geinstalleerd? Die heb je nodig. Als hij dan nog tegen de verkeerde include files aanlinkt zal je de specfile of de makefile aan moeten passen.

https://timelord.nl


Verwijderd

Topicstarter
Euuhmm....wat....?? Ik ben niet zoŽn linux expert.....
en ja...ik heb de kernel-source geinstalleerd.

[ Voor 31% gewijzigd door Verwijderd op 23-05-2003 18:23 ]


Verwijderd

Topicstarter
Ik probeer het nog een keer opnieuw ik heb net de 9 cd versie va mandrake 7.3 besteld...voor 5 euro! .. Hier zijn wel passende drivers voor....

Verwijderd

oeps. niks gezegd.

[ Voor 93% gewijzigd door Verwijderd op 24-05-2003 19:16 ]

Pagina: 1