Ich habe versucht einen Kernel 2.4.21-rc3 zu bauen und dabei kam es zu folgenden Fehlermeldungen: make[2]: Entering directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make all_targets make[3]: Entering directory `/usr/src/linux-2.4.21-rc3/drivers/ide' gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide -DEXPORT_SYMTAB -c ide.c ide.c: In function `ide_ioctl': ide.c:2826: warning: comparison between signed and unsigned ide.c: In function `ide_scan_devices': ide.c:3837: warning: comparison between signed and unsigned gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_features -DEXPORT_SYMTAB -c ide-features.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_taskfile -DEXPORT_SYMTAB -c ide-taskfile.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=cmd640 -c -o cmd640.o cmd640.c cmd640.c: In function `ide_probe_for_cmd640x': cmd640.c:816: warning: comparison between signed and unsigned gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_adma -c -o ide-adma.o ide-adma.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_dma -c -o ide-dma.o ide-dma.c ide-dma.c: In function `ide_build_sglist': ide-dma.c:282: warning: comparison between signed and unsigned gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_pci -c -o ide-pci.o ide-pci.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=piix -c -o piix.o piix.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=rz1000 -c -o rz1000.o rz1000.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_proc -c -o ide-proc.o ide-proc.c ide-proc.c: In function `xx_xx_parse_error': ide-proc.c:148: warning: comparison between signed and unsigned ld -m elf_i386 -r -o ide-mod.o ide.o ide-features.o ide-taskfile.o cmd640.o ide-adma.o ide-dma.o ide-pci.o piix.o rz1000.o ide-proc.o gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_probe -DEXPORT_SYMTAB -c ide-probe.c gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_geometry -c -o ide-geometry.o ide-geometry.c ide-geometry.c: In function `ontrack': ide-geometry.c:125: warning: comparison between signed and unsigned ld -m elf_i386 -r -o ide-probe-mod.o ide-probe.o ide-geometry.o gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_disk -c -o ide-disk.o ide-disk.c ide-disk.c: In function `lba_capacity_is_ok': ide-disk.c:130: warning: comparison between signed and unsigned ide-disk.c: In function `ide_multwrite': ide-disk.c:268: warning: comparison between signed and unsigned gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_cd -c -o ide-cd.o ide-cd.c In file included from ide-cd.c:318: ide-cd.h:440: error: long, short, signed or unsigned used invalidly for `slot_tablelen' ide-cd.c: In function `cdrom_analyze_sense_data': ide-cd.c:468: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_buffer_sectors': ide-cd.c:816: warning: comparison between signed and unsigned ide-cd.c:816: warning: signed and unsigned type in conditional expression ide-cd.c: In function `cdrom_read_intr': ide-cd.c:994: warning: comparison between signed and unsigned ide-cd.c:994: warning: signed and unsigned type in conditional expression ide-cd.c: In function `cdrom_read_from_buffer': ide-cd.c:1061: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_start_read_continuation': ide-cd.c:1100: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_write_intr': ide-cd.c:1607: warning: comparison between signed and unsigned ide-cd.c:1607: warning: signed and unsigned type in conditional expression make[3]: *** [ide-cd.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make[1]: *** [_subdir_ide] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers' make: *** [_dir_drivers] Error 2 Al
Hi Al,
Ich habe versucht einen Kernel 2.4.21-rc3 zu bauen und dabei kam es zu folgenden Fehlermeldungen:
[...]
In file included from ide-cd.c:318: ide-cd.h:440: error: long, short, signed or unsigned used invalidly for `slot_tablelen' ide-cd.c: In function `cdrom_analyze_sense_data': ide-cd.c:468: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_buffer_sectors': ide-cd.c:816: warning: comparison between signed and unsigned ide-cd.c:816: warning: signed and unsigned type in conditional expression ide-cd.c: In function `cdrom_read_intr': ide-cd.c:994: warning: comparison between signed and unsigned ide-cd.c:994: warning: signed and unsigned type in conditional expression ide-cd.c: In function `cdrom_read_from_buffer': ide-cd.c:1061: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_start_read_continuation': ide-cd.c:1100: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_write_intr': ide-cd.c:1607: warning: comparison between signed and unsigned ide-cd.c:1607: warning: signed and unsigned type in conditional expression make[3]: *** [ide-cd.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make[1]: *** [_subdir_ide] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers' make: *** [_dir_drivers] Error 2
Welche gcc-Version hast du verwendet? Gruß André
On Wednesday 28 May 2003 09:50, André Groß wrote:
In file included from ide-cd.c:318: ide-cd.h:440: error: long, short, signed or unsigned used invalidly for `slot_tablelen' ide-cd.c: In function `cdrom_analyze_sense_data': ide-cd.c:468: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_buffer_sectors': ide-cd.c:816: warning: comparison between signed and unsigned ide-cd.c:816: warning: signed and unsigned type in conditional expression ide-cd.c: In function `cdrom_read_intr': ide-cd.c:994: warning: comparison between signed and unsigned ide-cd.c:994: warning: signed and unsigned type in conditional expression ide-cd.c: In function `cdrom_read_from_buffer': ide-cd.c:1061: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_start_read_continuation': ide-cd.c:1100: warning: comparison between signed and unsigned ide-cd.c: In function `cdrom_write_intr': ide-cd.c:1607: warning: comparison between signed and unsigned ide-cd.c:1607: warning: signed and unsigned type in conditional expression make[3]: *** [ide-cd.o] Error 1 make[3]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make[2]: *** [first_rule] Error 2 make[2]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers/ide' make[1]: *** [_subdir_ide] Error 2 make[1]: Leaving directory `/usr/src/linux-2.4.21-rc3/drivers' make: *** [_dir_drivers] Error 2
Welche gcc-Version hast du verwendet?
gcc --version gcc (GCC) 3.3 20030226 (prerelease) (SuSE Linux) Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Al PS: Mein ISP hat seit gestern Probleme. PM könnten eventuell nicht ankommen.
Hallo, On Tue, 27 May 2003, Al Bogner wrote:
Ich habe versucht einen Kernel 2.4.21-rc3 zu bauen und dabei kam es zu folgenden Fehlermeldungen:
make[2]: Entering directory `/usr/src/linux-2.4.21-rc3/drivers/ide' [..] gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_cd -c -o ide-cd.o ide-cd.c In file included from ide-cd.c:318: ide-cd.h:440: error: long, short, signed or unsigned used invalidly for `slot_tablelen'
Das ist komisch. Im patch-2.4.21-rc3 findet sich: ==== diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.20/drivers/ide/ide-cd.h linux -2.4.21-rc3/drivers/ide/ide-cd.h --- linux-2.4.20/drivers/ide/ide-cd.h 2002-08-03 00:39:44.000000000 +0000 +++ linux-2.4.21-rc3/drivers/ide/ide-cd.h 2003-05-22 22:06:52.000000000 +0 000 @@ -437,7 +437,7 @@ byte curlba[3]; byte nslots; - __u8 short slot_tablelen; + __u16 slot_tablelen; }; ==== D.h. der Bug sollte mit dem patch behoben sein. -dnh -- Die Tatsache, daß Linux [..] läuft, hat deinem Ego doch viel mehr geschadet als wenn Linux einfach nicht gelaufen wäre! Insofern hat sich Linux wie eine stolze, verletzte Liebhaberin gezeigt und dir so richtig von hinten eins in die Weichteile versetzt. -- fefe in dasr
On Wednesday 28 May 2003 17:15, David Haller wrote:
make[2]: Entering directory `/usr/src/linux-2.4.21-rc3/drivers/ide'
[..]
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-rc3/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix include -DKBUILD_BASENAME=ide_cd -c -o ide-cd.o ide-cd.c In file included from ide-cd.c:318: ide-cd.h:440: error: long, short, signed or unsigned used invalidly for `slot_tablelen'
Das ist komisch. Im patch-2.4.21-rc3 findet sich:
==== diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.20/drivers/ide/ide-cd.h linux -2.4.21-rc3/drivers/ide/ide-cd.h --- linux-2.4.20/drivers/ide/ide-cd.h 2002-08-03 00:39:44.000000000 +0000 +++ linux-2.4.21-rc3/drivers/ide/ide-cd.h 2003-05-22 22:06:52.000000000 +0 000 @@ -437,7 +437,7 @@
byte curlba[3]; byte nslots; - __u8 short slot_tablelen; + __u16 slot_tablelen; };
====
D.h. der Bug sollte mit dem patch behoben sein.
Vielleicht habe ich was beim Patchen falsch gemacht. Ich hatte wie Thomas empfohlen, folgendes ausgeführt: gunzip -c /pfad/zu/patch-2.4.21-rc3.gz | patch -p1 Mit diff konnte ich auch Unterschiede zur ungepatchten Version feststellen. Ich probiere ASAP rc5 aus. Heute abend gibt es mal Vergnügen und keinen PC :-) Al
Al Bogner schrieb:
[...] Vielleicht habe ich was beim Patchen falsch gemacht. Ich hatte wie Thomas empfohlen, folgendes ausgeführt:
gunzip -c /pfad/zu/patch-2.4.21-rc3.gz | patch -p1 [...]
Wenn der Patch nicht passt, dann wird er nicht durchlaufen und Du bekommst das ganz schnell mit. Obiger Befehl sollte stimmen, und wenn Du dann eine Liste von Dateien, die ge- patcht wurden, uebers xterm laufen siehst und das bis zum Ende ohne Unterbrechung durchlaeuft, dann war das auch er- folgreich! CU, Thomson -- Thomas Hertweck, Dipl.-Geophys., GPI Universitaet Karlsruhe === First they ignore you, then they laugh at you, then === === they fight you, then you win. (M. Ghandi) ===
On Thursday 29 May 2003 12:01, Thomas Hertweck wrote:
Wenn der Patch nicht passt, dann wird er nicht durchlaufen und Du bekommst das ganz schnell mit. Obiger Befehl sollte stimmen, und wenn Du dann eine Liste von Dateien, die ge- patcht wurden, uebers xterm laufen siehst und das bis zum Ende ohne Unterbrechung durchlaeuft, dann war das auch er- folgreich!
Mit rc5 lief es durch. Al
participants (5)
-
Al Bogner
-
André Groß
-
David Haller
-
Michael Born
-
Thomas Hertweck