kernel

robert seczkowski
2001-05-31T11:28:02Z

I have problem with kernel 2.4.2 from red hat 7.2 distribution.
This problem appears when I type make modules.
and it seems like compiler doesn't understand extern in function
declaration
gcc version 2.96 20000731
Thanks in advance

below log:

make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE
-DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[1]: Wchodzę katalog `/home/linux-2.4.2/kernel'
make[1]: Nie nic do roboty w `modules'.
make[1]: Opuszczam katalog `/home/linux-2.4.2/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common
-Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE
-DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[1]: Wchodzę katalog `/home/linux-2.4.2/drivers'
make -C block modules
make[2]: Wchodzę katalog `/home/linux-2.4.2/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4/include/linux/modversions.h -c -o floppy.o floppy.c
In file included from /usr/src/linux-2.4/include/linux/spinlock.h:35,
from /usr/src/linux-2.4/include/linux/module.h:11,
from floppy.c:137:
/usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/asm/spinlock.h:8: parse error before `1b7d4074'
/usr/src/linux-2.4/include/asm/spinlock.h:9: `printk_R_ver_str' declared as
function returning a function
/usr/src/linux-2.4/include/asm/spinlock.h:9: warning: function declaration
isn't a prototype
In file included from floppy.c:137:
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: parse error before `62dada05'
/usr/src/linux-2.4/include/linux/module.h:173:
`inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:173: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:174: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:174: missing white space after
number `7a9e845'
/usr/src/linux-2.4/include/linux/module.h:174: parse error before `7a9e845'
/usr/src/linux-2.4/include/linux/module.h:174:
`inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:174: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:175: `inter_module_get_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:175: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:176:
`inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:176: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not
hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: parse error before `6b99f7d8'
/usr/src/linux-2.4/include/linux/module.h:177: `inter_module_put_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:177: warning: function declaration
isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:186: `try_inc_mod_count_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:186: warning: parameter names
(without types) in function declaration
make[2]: *** [floppy.o] Błąd 1
make[2]: Opuszczam katalog `/home/linux-2.4.2/drivers/block'
make[1]: *** [_modsubdir_block] Błąd 2
make[1]: Opuszczam katalog `/home/linux-2.4.2/drivers'
make: *** [_mod_drivers] Błąd 2