Nachtrag: Wlan/Centrino/Ndiswrapper
Hallo,
hatte noch vergessen, die kryptische Fehlermeldung beizufügen - sorry!
linux:/home/wh/ndiswrapper/ndiswrapper-0.7 # make install
make -C driver install
make[1]: Entering directory `/home/wh/ndiswrapper/ndiswrapper-0.7/driver'
cc -DDRV_VERSION=\"0.7\" -DLINUX -D__KERNEL__ -DMODULE
-I/lib/modules/2.4.21-202-default/build/include -Wall -Wstrict-prototypes
-fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2
-O2 -c -o wrapper.o wrapper.c
In file included from /usr/include/linux/module.h:20,
from wrapper.c:16:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/mm.h:205,
from /usr/include/asm/pci.h:7,
from /usr/include/linux/pci.h:677,
from wrapper.c:25:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a
constant
In file included from wrapper.c:27:
/usr/include/linux/netdevice.h:165: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/netdevice.h:165: error: requested alignment is not a
constant
In file included from /usr/include/linux/irq.h:19,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/asm/irq.h:16:25: irq_vectors.h: Datei oder Verzeichnis nicht
gefunden
In file included from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/linux/irq.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/linux/irq.h:67: error: requested alignment is not a constant
/usr/include/linux/irq.h:69: error: `NR_IRQS' undeclared here (not in a
function)
In file included from /usr/include/linux/irq.h:71,
from /usr/include/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a
function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a
function)
In file included from /usr/include/linux/interrupt.h:10,
from /usr/include/linux/netdevice.h:489,
from wrapper.c:27:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared
here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
wrapper.c:31:28: net/iw_handler.h: Datei oder Verzeichnis nicht gefunden
In file included from ndiswrapper.h:33,
from ntoskernel.h:17,
from ndis.h:18,
from wrapper.c:38:
/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
Hallo Wolfgang, hallo Leute, eine Bitte vorweg: Nachträge bitte künftig als Antwort auf die eigene Mail senden, dann steht alles in einem Thread und ist nicht quer über die Mailingliste verteilt ;-) Am Dienstag, 27. April 2004 17:02 schrieb Wolfgang Hoppe:
hatte noch vergessen, die kryptische Fehlermeldung beizufügen -
linux:/home/wh/ndiswrapper/ndiswrapper-0.7 # make install [...] /usr/include/asm/irq.h:16:25: irq_vectors.h: Datei oder Verzeichnis nicht gefunden [...] net/iw_handler.h: Datei oder Verzeichnis nicht gefunden
Der beliebteste Fehler beim Kompilieren: "file not found" (bzw. seine deutsche Entsprechung). Mittels pin dateiname erfährst Du dann auch recht schnell, welches Paket fehlt. Oft ist es ein *-devel-Paket. Mal nachgucken... ./CD2/suse/i586/glibc-devel-2.3.2-87.i586.rpm: /usr/include/asm/<arch>/irq_vectors.h Allerdings stammt die Datei /usr/include/asm/irq.h, die darauf verweist , aus dem gleichen Paket, es müsste also installiert sein. Kommen wir zum zweiten beliebten Fehler beim Kompilieren: man sollte lesen, was da steht ;-) [...]
/usr/include/linux/version.h (ich formatiere die Meldungen mal etwas lesbarer) #error "To build kernel modules please do the following:" #error "" #error " o Have the kernel sources installed"
Paket kernel-source - ist das installiert?
#error " o Make sure that the symbolic link" #error " /lib/modules/`uname -r`/build exists and points to" #error " the matching kernel source directory"
Dieser Symlink müsste automatisch angelegt werden.
#error " o Configure kernel sources:" #error " - cd /usr/src/linux" #error " - make mrproper"
Anmerkung: Vorsicht, falls Du einen eigenen Kernel compiliert hast (was ich bei einem Newbie eher nicht vermute) - make mrproper löscht auch die .config! Falls Du am Kernel noch nichts gemacht hast, braucht Dich diese Anmerkung übrigens nicht zu stören.
#error " - make cloneconfig" #error " - make dep"
Die beiden Befehle müssen unbedingt sein. (der erste liest übrigens die Konfiguration des aktuellen Kernels aus /proc/config.gz und schreibt sie in die .config [1])
#error " o When compiling, make sure to use the following" #error " compiler option to use the correct include files:" #error "" #error " -I/lib/modules/`uname -r`/build/include" #error "" #error " instead of" #error "" #error " -I/usr/include/linux" #error "" #error " Please adjust the Makefile accordingly."
Das nur als Hinweis, falls es weitere Probleme geben sollte. Der Rest dürfte dann aus Folgefehlern resultieren. So, jetzt rufe aber bitte erstmal im Verzeichnis mit den ndiswrapper-Sourcen "make clean" auf, damit nicht irgendwelche störenden Überreste aus dem ersten Versuch übrigbleiben. Gruß Christian Boltz [1] funktioniert nur bei SuSE-Kerneln --
kennt jemand einen schönen WYSIWYG Editor für SuSE 9.0?? Klar, NEdit natürlich. Damit bekomme ich immer genau die Quelltexte, die ich vorher sehe. [> Stefan Eggert und Thorsten Haude in suse-linux]
participants (2)
-
Christian Boltz
-
Wolfgang Hoppe