hi
ich versuch mom. für captive mir das passende kernel module zu kompelieren
ich hab ein kernel-image-2.6.3-1-686
kernel headers hat er mir zwei packete installiert
kernel-headers-2.6.3-1-686
kernel-headers-2.6.3-1
wenn ich nun für captive den befehl ./prepmod aufrufe gibt es immer folgende fehlermeldung
mostix:/usr/share/lufs# ./prepmod
+ /sbin/modprobe lufs 2>/dev/null
Preparing LUFS kernel module... Run /usr/share/lufs/prepmod if problems occur.
Running kernel version: 2.6.3-1-686 (base version 2.6.3)
Destination module directory: /lib/modules/2.6.3-1-686/kernel/fs/lufs
Using kernel sources: /lib/modules/2.6.3-1-686/build
+ set -e; /bin/mkdir -p `dirname /var/lib/lufs/lufs.ko`; /bin/rm -f /var/lib/lufs/lufs.ko; make -C /lib/modules/2.6.3-1-686/build SUBDIRS="/usr/share/lufs/2.6" modules EXTRA_CFLAGS=""; /bin/mv -f /usr/share/lufs/2.6/lufs.ko /var/lib/lufs/lufs.ko; /bin/rm -f /usr/share/lufs/2.6/proc.o /usr/share/lufs/2.6/.proc.o.flags /usr/share/lufs/2.6/.proc.o.cmd /usr/share/lufs/2.6/inode.o /usr/share/lufs/2.6/.inode.o.flags /usr/share/lufs/2.6/.inode.o.cmd /usr/share/lufs/2.6/dir.o /usr/share/lufs/2.6/.dir.o.flags /usr/share/lufs/2.6/.dir.o.cmd /usr/share/lufs/2.6/file.o /usr/share/lufs/2.6/.file.o.flags /usr/share/lufs/2.6/.file.o.cmd /usr/share/lufs/2.6/symlink.o /usr/share/lufs/2.6/.symlink.o.flags /usr/share/lufs/2.6/.symlink.o.cmd /usr/share/lufs/2.6/lufs.mod.o /usr/share/lufs/2.6/.lufs.mod.o.flags /usr/share/lufs/2.6/.lufs.mod.o.cmd /usr/share/lufs/2.6/lufs.o /usr/share/lufs/2.6/.lufs.o.flags /usr/share/lufs/2.6/.lufs.o.cmd /usr/share/lufs/2.6/lufs.mod.c /usr/share/lufs/2.6/.lufs.ko.cmd;
make: Entering directory `/usr/src/kernel-headers-2.6.3-1'
CC scripts/empty.o
MKELF scripts/elfconfig.h
HOSTCC scripts/file2alias.o
scripts/file2alias.c:181: Warnung: `struct pnp_device_id' declared inside parameter list
scripts/file2alias.c:181: Warnung: its scope is only this definition or declaration, which is probably not what you want
scripts/file2alias.c: In Funktion »do_pnp_entry«:
scripts/file2alias.c:183: error: dereferencing pointer to incomplete type
scripts/file2alias.c: Auf höchster Ebene:
scripts/file2alias.c:189: Warnung: `struct pnp_card_device_id' declared inside parameter list
scripts/file2alias.c: In Funktion »do_pnp_card_entry«:
scripts/file2alias.c:193: error: dereferencing pointer to incomplete type
scripts/file2alias.c:194: error: `PNP_MAX_DEVICES' undeclared (first use in this function)
scripts/file2alias.c:194: error: (Each undeclared identifier is reported only once
scripts/file2alias.c:194: error: for each function it appears in.)
scripts/file2alias.c:195: error: dereferencing pointer to incomplete type
scripts/file2alias.c:197: error: dereferencing pointer to incomplete type
scripts/file2alias.c: In Funktion »handle_moddevtable«:
scripts/file2alias.c:269: error: invalid application of `sizeof' to an incomplete type
scripts/file2alias.c:272: error: invalid application of `sizeof' to an incomplete type
make[1]: *** [scripts/file2alias.o] Fehler 1
make: *** [scripts] Fehler 2
make: Leaving directory `/usr/src/kernel-headers-2.6.3-1'
+ find /lib/modules/2.6.3-1-686/build -name .depend|xargs rm -f; rm -f /lib/modules/2.6.3-1-686/build/scripts/mkdep; rm -f /lib/modules/2.6.3-1-686/build/scripts/split-include; make -C /lib/modules/2.6.3-1-686/build dep
make: Entering directory `/usr/src/kernel-headers-2.6.3-1'
*** Warning: make dep is unnecessary now.
make: Leaving directory `/usr/src/kernel-headers-2.6.3-1'
+ set -e; /bin/mkdir -p `dirname /var/lib/lufs/lufs.ko`; /bin/rm -f /var/lib/lufs/lufs.ko; make -C /lib/modules/2.6.3-1-686/build SUBDIRS="/usr/share/lufs/2.6" modules EXTRA_CFLAGS=""; /bin/mv -f /usr/share/lufs/2.6/lufs.ko /var/lib/lufs/lufs.ko; /bin/rm -f /usr/share/lufs/2.6/proc.o /usr/share/lufs/2.6/.proc.o.flags /usr/share/lufs/2.6/.proc.o.cmd /usr/share/lufs/2.6/inode.o /usr/share/lufs/2.6/.inode.o.flags /usr/share/lufs/2.6/.inode.o.cmd /usr/share/lufs/2.6/dir.o /usr/share/lufs/2.6/.dir.o.flags /usr/share/lufs/2.6/.dir.o.cmd /usr/share/lufs/2.6/file.o /usr/share/lufs/2.6/.file.o.flags /usr/share/lufs/2.6/.file.o.cmd /usr/share/lufs/2.6/symlink.o /usr/share/lufs/2.6/.symlink.o.flags /usr/share/lufs/2.6/.symlink.o.cmd /usr/share/lufs/2.6/lufs.mod.o /usr/share/lufs/2.6/.lufs.mod.o.flags /usr/share/lufs/2.6/.lufs.mod.o.cmd /usr/share/lufs/2.6/lufs.o /usr/share/lufs/2.6/.lufs.o.flags /usr/share/lufs/2.6/.lufs.o.cmd /usr/share/lufs/2.6/lufs.mod.c /usr/share/lufs/2.6/.lufs.ko.cmd;
make: Entering directory `/usr/src/kernel-headers-2.6.3-1'
HOSTCC scripts/split-include
HOSTCC scripts/file2alias.o
scripts/file2alias.c:181: Warnung: `struct pnp_device_id' declared inside parameter list
scripts/file2alias.c:181: Warnung: its scope is only this definition or declaration, which is probably not what you want
scripts/file2alias.c: In Funktion »do_pnp_entry«:
scripts/file2alias.c:183: error: dereferencing pointer to incomplete type
scripts/file2alias.c: Auf höchster Ebene:
scripts/file2alias.c:189: Warnung: `struct pnp_card_device_id' declared inside parameter list
scripts/file2alias.c: In Funktion »do_pnp_card_entry«:
scripts/file2alias.c:193: error: dereferencing pointer to incomplete type
scripts/file2alias.c:194: error: `PNP_MAX_DEVICES' undeclared (first use in this function)
scripts/file2alias.c:194: error: (Each undeclared identifier is reported only once
scripts/file2alias.c:194: error: for each function it appears in.)
scripts/file2alias.c:195: error: dereferencing pointer to incomplete type
scripts/file2alias.c:197: error: dereferencing pointer to incomplete type
scripts/file2alias.c: In Funktion »handle_moddevtable«:
scripts/file2alias.c:269: error: invalid application of `sizeof' to an incomplete type
scripts/file2alias.c:272: error: invalid application of `sizeof' to an incomplete type
make[1]: *** [scripts/file2alias.o] Fehler 1
make: *** [scripts] Fehler 2
make: Leaving directory `/usr/src/kernel-headers-2.6.3-1'
Failed to prepare lufs.ko module for your Linux kernel 2.6.3-1-686.
Detected Linux kernel sources "/lib/modules/2.6.3-1-686/build" do not appear to be valid.
Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
The following directory paths were search (first existing directory used):
/lib/modules/2.6.3-1-686/build
/usr/src/kernel-headers-2.6.3-1-686
/usr/src/linux-2.6.3-1-686
/usr/src/linux-2.6.3
/usr/src/linux
/usr/src/kernel-source-2.6.3-1-686
hab unter /lib/modules/2.6.3-1-686/ den link build schon probiert auf beide kernel header packages zu legen. jedesmal der selbe fehler
benütze aktuelles sid
thx4help
prob modul mit den kernel header zu kompelieren
das sind nicht 2 x kernelheaders ...die beiden gehören zusammen und sind fest verlinkt ,,hab unter /lib/modules/2.6.3-1-686/ den link build schon probiert auf beide kernel header packages zu legen. jedesmal der selbe fehler
deine headers sind :
kernel-headers-2.6.3-1-686
schau dort rein dann siehst du das dort fast alle dirs zu kernel-headers-2.6.3-1 gelinkt sind ...
build muss also auf kernel-headers-2.6.3-1-686 zeigen.
...
welche gcc benutzt du?
________________________
SID on Shuttle XPC SN41G2
SID on Shuttle XPC SN41G2
ich weiss nicht ,,,, gemeckert wird auf jedenfall das die falschen headers hinter build sind ... die vielleicht nochmal installieren (--reinstall)Detected Linux kernel sources "/lib/modules/2.6.3-1-686/build" do not appear to be valid.
Please install kernel-source-x.y.z.i386.rpm or kernel-headers_x.y.z_i386.deb.
The following directory paths were search (first existing directory used):
/lib/modules/2.6.3-1-686/build
________________________
SID on Shuttle XPC SN41G2
SID on Shuttle XPC SN41G2
ich weiss nicht was du gemacht hast ...aber machmal folgendes :
apt-get install lufs-source lufs-utils kernel-source-2.6.3 unp
cd /usr/src
unp kernel-source-2.6.3*
unp lufs.tar.bz2
cd kernel-source-2.6.3
nano Makefile <-- editiere das makefile vom kernel und trage dort "extraversion = -1-686" ein
make oldconfig
make-kpkg modules_image
cd ..
dpkg -i lufs-module*.deb
modprobe lufs
p.s. ich habe keinen debian kernel ..deswegen habe ich die sources statt headers ...kannst aber ruhig mal so probieren ... das läuft bestimmt
apt-get install lufs-source lufs-utils kernel-source-2.6.3 unp
cd /usr/src
unp kernel-source-2.6.3*
unp lufs.tar.bz2
cd kernel-source-2.6.3
nano Makefile <-- editiere das makefile vom kernel und trage dort "extraversion = -1-686" ein
make oldconfig
make-kpkg modules_image
cd ..
dpkg -i lufs-module*.deb
modprobe lufs
p.s. ich habe keinen debian kernel ..deswegen habe ich die sources statt headers ...kannst aber ruhig mal so probieren ... das läuft bestimmt
________________________
SID on Shuttle XPC SN41G2
SID on Shuttle XPC SN41G2