i all,

I'm triyng to compile ipmi driver on linux-2.4.20-18.7. Neverthless
i'm getting some errors :

bash-2.05a# make modules SUBDIRS=drivers/char/ipmi


make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-18.7.cern'
make[1]: Circular /usr/src/linux-2.4.20-18.7.cern/include/asm/smplock.h
<- /usr/src/linux-2.4.20-18.7.cern/include/linux/interrupt.h
dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-18.7.cern/include/linux/netfilter_ipv4/ip_conntrack_helper.h
<- /usr/src/linux-2.4.20-18.7.cern/include/linux/netfilter_ipv4/ip_conntrack.h
dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-18.7.cern'
make -C drivers/char/ipmi CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.20-18.7.cern/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386
-fno-optimize-sibling-calls -DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.20-18.7.cern/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[1]: Entering directory
`/usr/src/linux-2.4.20-18.7.cern/drivers/char/ipmi'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-18.7.cern/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
-fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2
-march=i386 -fno-optimize-sibling-calls -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.20-18.7.cern/include/linux/modversions.h
-nostdinc -iwithprefix include -DKBUILD_BASENAME=ipmi_msghandler
-DEXPORT_SYMTAB -c ipmi_msghandler.c In file included from
/usr/src/linux-2.4.20-18.7.cern/include/linux/prefetch.h:13,
from
/usr/src/linux-2.4.20-18.7.cern/include/linux/list.h:6,
from
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:12,
from ipmi_msghandler.c:35:
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:51: warning:
parameter names (without types) in function declaration
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:51: field
`loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:74: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:74: parse
error before `0657d037'
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:74: warning:
function declaration isn't a prototype
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:257: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:257: parse
error before `7413793a'
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:257: warning:
function declaration isn't a prototype
/usr/src/linux-2.4.20-18.7.cern/include/asm/processor.h:261: warning:
parameter names (without types) in function declaration In file
included from ipmi_msghandler.c:35:
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183: parse
error before `62dada05'
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183:
`inter_module_register_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:183: warning:
function declaration isn't a prototype
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:184: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:184: missing
white space after number `7a9e845'
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:184: parse
error before `7a9e845'
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:184:
`inter_module_unregister_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:184: warning:
function declaration isn't a prototype
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:185:
`inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:185: warning:
parameter names (without types) in function declaration
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:186:
`inter_module_get_request_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:186: warning:
parameter names (without types) in function declaration
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:187: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:187: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:187: nondigits
in number and not hexadecimal
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:187: parse
error before `6b99f7d8'
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:187:
`inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:187: warning:
function declaration isn't a prototype
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:196:
`try_inc_mod_count_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-18.7.cern/include/linux/module.h:196: warning:
parameter names (without types) in function declaration In file
included from /usr/src/linux-2.4.20-18.7.cern/include/linux/poll.h:11,
from ipmi_msghandler.c:39:
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h: In function
`verify_area':
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h:64:
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h:64: (Each
undeclared identifier is reported only once
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h:64: for each
function it appears in.)
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h:65: warning:
control reaches end of non-void function
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h: In function
`__constant_copy_to_user':
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h:550:
`boot_cpu_data_R0657d037' undeclared (first use in this function)
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h: In function
`__constant_copy_from_user':
/usr/src/linux-2.4.20-18.7.cern/include/asm/uaccess.h:558:
`boot_cpu_data_R0657d037' undeclared (first use in this function)
make[1]: *** [ipmi_msghandler.o] Error 1
make[1]: Leaving directory
`/usr/src/linux-2.4.20-18.7.cern/drivers/char/ipmi'
make: *** [_mod_drivers/char/ipmi] Error 2


Can someone give me some hints of what is going wrong .....


Thank you,

Hugo