2.4.19-pre8 compile error [in drivers/char/serial.c]
Hi,
got the following compile error :
make-kpkg --revision=1 kernel_image
.
.
.
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -I/usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=console -DEXPORT_SYMTAB -c console.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -I/usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=selection -DEXPORT_SYMTAB -c selection.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -I/usr/lib/gcc-lib/i386-linux/2.95.4/include -DKBUILD_BASENAME=serial -DEXPORT_SYMTAB -c serial.c
In file included from serial.c:186:/usr/src/linux-2.4/include/linux/serialP.h:27: parse error serial.c:206: parse error
serial.c:209: parse error
serial.c:230: parse error
serial.c:683: parse error
serial.c:1444: parse error
serial.c:1593: parse error
serial.c:2169: parse error
serial.c:2216: parse error
serial.c:2393: parse error
serial.c:2550: parse error
serial.c:2565: parse error
serial.c:3179: parse error
serial.c:3846: parse error
serial.c:3851: linux/symtab_begin.h: No such file or directory serial.c:3854: linux/symtab_end.h: No such file or directory serial.c:5360: parse error
serial.c:5363: parse error
serial.c:5398: parse error
serial.c:5401: parse error
serial.c:5412: parse error
serial.c:5419: parse errorserial.c: In function `receive_chars':
serial.c:686: warning: implicit declaration of function queue_task_irq_off' serial.c: In function rs_write':
serial.c:1888: warning: implicit declaration of function copy_from_user' serial.c: In function get_serial_info':
serial.c:2086: warning: implicit declaration of function `copy_to_user' serial.c: At top level:
serial.c:3850: variable serial_syms' has initializer but incomplete type serial.c:3852: warning: implicit declaration of function X' serial.c:3852: warning: excess elements in struct initializer serial.c:3852: warning: (near initialization for serial_syms') serial.c:3853: warning: excess elements in struct initializer serial.c:3853: warning: (near initialization for serial_syms') serial.c:2410: warning: rs_break' defined but not used serial.c:3850: warning: serial_syms' defined but not used make[4]: *** [serial.o] Fehler 1
make[4]: Leaving directory `/usr/src/linux-2.4/drivers/char' make[3]: *** [first_rule] Fehler 2
make[3]: Leaving directory `/usr/src/linux-2.4/drivers/char' make[2]: *** [_subdir_char] Fehler 2
make[2]: Leaving directory `/usr/src/linux-2.4/drivers'
make[1]: *** [_dir_drivers] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.4'
make: *** [stamp-build] Fehler 2
asterix:/usr/src/linux/scripts# ./ver_linux If some fields are empty or look unusual you may have an old version. Compare to the current minimal requirements in Documentation/Changes.
Linux asterix 2.4.18-a1 #1 Mon Apr 15 19:53:06 CEST 2002 i686 unknown
Gnu C 2.95.4 Gnu make 3.79.1 util-linux 2.11n mount 2.11n modutils 2.4.15 e2fsprogs 1.27 PPP 2.4.1 Linux C Library 2.2.5 Dynamic linker (ldd) 2.2.5 Procps 2.0.7 Net-tools 1.60 Console-tools 0.2.3 Sh-utils 2.0.11 Modules Loaded parport_pc lp parport snd-seq-midi snd-seq-oss
snd-seq-midi-event snd-seq snd-pcm-oss snd-mixer-oss snd-cs46xx snd-pcm snd-timer snd-rawmidi snd-seq-device snd-ac97-codec snd soundcore 3c59x w83781d i2c-proc i2c-viapro i2c-matroxfb i2c-algo-bit i2c-core apm ide-scsi rtc
This is on Debian sid using the kernel-package.
Bye, Stefan
Signature · 4 lines
Proboscis: The rudimentary organ of an elephant which serves him in place of the knife-and-fork that Evolution has as yet denied him. For purposes of humor it is popularly called a trunk. -- Ambrose Bierce
Sorry for the false alarm. "Problem" solved. I had modified the SUBLEVEL field in the Makefile. Set it back to 19 and all is well now.
Bye, Stefan
Signature · 2 lines
If Machiavelli were a hacker, he'd have worked for the CSSG. -- Phil Lapsley