Michael Bielicki
2004-May-13 01:41 UTC
[Asterisk-Users] zaptel does not compile on latest RHEL kernel
Hi After updating some Red Hat Enterprise linux machines to the latest RHEL kernel (RHEL crashes on vanilla kernels :)), I get tons of errors when trying to compile zaptel: In file included from tor2.c:30: /usr/src/linux-2.4/include/linux/kernel.h:61: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:61: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:61: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:62: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:62: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:63: `panic_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:63: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:69: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:69: `simple_strtoul_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:69: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:70: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:70: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:70: `simple_strtol_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:70: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:71: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:71: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:71: `simple_strtoull_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:71: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:73: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:73: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:74: `sprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:74: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:75: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:75: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:75: `vsprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:75: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:76: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:76: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:77: `snprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:77: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:78: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:78: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:78: `vsnprintf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:78: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:80: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:80: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:81: `sscanf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:81: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:82: `vsscanf_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:82: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/kernel.h:86: `get_option_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:86: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/kernel.h:87: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:87: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:87: `get_options_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:87: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:88: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:88: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:88: `memparse_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:88: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:96: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:96: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:97: `printk_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:97: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:114: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:114: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:115: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/kernel.h:120: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:120: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:120: `dump_stack_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:120: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/kernel.h:209: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/kernel.h:209: syntax error before numeric constant /usr/src/linux-2.4/include/linux/kernel.h:209: `__out_of_line_bug_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/kernel.h:209: warning: function declaration isn't a prototype In file included from /usr/src/linux-2.4/include/linux/prefetch.h:13, from /usr/src/linux-2.4/include/linux/list.h:6, from /usr/src/linux-2.4/include/linux/module.h:12, from tor2.c:32: /usr/src/linux-2.4/include/asm/processor.h:61: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/asm/processor.h:61: field `loops_per_jiffy_R_ver_str' declared as a function /usr/src/linux-2.4/include/asm/processor.h:84: invalid suffix on integer constant /usr/src/linux-2.4/include/asm/processor.h:84: syntax error before numeric constant /usr/src/linux-2.4/include/asm/processor.h:84: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/asm/processor.h:268: invalid suffix on integer constant /usr/src/linux-2.4/include/asm/processor.h:268: syntax error before numeric constant /usr/src/linux-2.4/include/asm/processor.h:268: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/asm/processor.h:272: warning: parameter names (without types) in function declaration In file included from tor2.c:32: /usr/src/linux-2.4/include/linux/module.h:190: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/module.h:190: syntax error before numeric constant /usr/src/linux-2.4/include/linux/module.h:190: `inter_module_register_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:190: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/module.h:191: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/module.h:191: syntax error before numeric constant /usr/src/linux-2.4/include/linux/module.h:191: `inter_module_unregister_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:191: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/module.h:192: `inter_module_get_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:192: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/module.h:193: `inter_module_get_request_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:193: warning: parameter names (without types) in function declaration /usr/src/linux-2.4/include/linux/module.h:194: invalid suffix on integer constant /usr/src/linux-2.4/include/linux/module.h:194: syntax error before numeric constant /usr/src/linux-2.4/include/linux/module.h:194: `inter_module_put_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:194: warning: function declaration isn't a prototype /usr/src/linux-2.4/include/linux/module.h:203: `try_inc_mod_count_R_ver_str' declared as function returning a function /usr/src/linux-2.4/include/linux/module.h:203: warning: parameter names (without types) in function declaration In file included from /usr/src/linux-2.4/include/linux/fs.h:19, from /usr/src/linux-2.4/include/linux/capability.h:17, from /usr/src/linux-2.4/include/linux/binfmts.h:4, from /usr/src/linux-2.4/include/linux/sched.h:10, from /usr/src/linux-2.4/include/linux/mm.h:22, from /usr/src/linux-2.4/include/linux/slab.h:14, from /usr/src/linux-2.4/include/asm/pci.h:37, from /usr/src/linux-2.4/include/linux/pci.h:669, from tor2.c:33: /usr/src/linux-2.4/include/linux/dcache.h: In function `dget': /usr/src/linux-2.4/include/linux/dcache.h:254: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5' In file included from /usr/src/linux-2.4/include/asm/highmem.h:29, from /usr/src/linux-2.4/include/linux/highmem.h:11, from /usr/src/linux-2.4/include/linux/vmalloc.h:8, from /usr/src/linux-2.4/include/asm/io.h:47, from /usr/src/linux-2.4/include/asm/pci.h:40, from /usr/src/linux-2.4/include/linux/pci.h:669, from tor2.c:33: /usr/src/linux-2.4/include/asm/atomic_kmap.h: In function `__kmap_atomic_noflush': /usr/src/linux-2.4/include/asm/atomic_kmap.h:42: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4/include/asm/atomic_kmap.h:42: (Each undeclared identifier is reported only once /usr/src/linux-2.4/include/asm/atomic_kmap.h:42: for each function it appears in.) /usr/src/linux-2.4/include/asm/atomic_kmap.h: In function `__kmap_atomic': /usr/src/linux-2.4/include/asm/atomic_kmap.h:65: `boot_cpu_data_R0657d037' undeclared (first use in this function) In file included from /usr/src/linux-2.4/include/asm/io.h:47, from /usr/src/linux-2.4/include/asm/pci.h:40, from /usr/src/linux-2.4/include/linux/pci.h:669, from tor2.c:33: /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc': /usr/src/linux-2.4/include/linux/vmalloc.h:40: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc_dma': /usr/src/linux-2.4/include/linux/vmalloc.h:49: `boot_cpu_data_R0657d037' undeclared (first use in this function) /usr/src/linux-2.4/include/linux/vmalloc.h: In function `vmalloc_32': /usr/src/linux-2.4/include/linux/vmalloc.h:58: `boot_cpu_data_R0657d037' undeclared (first use in this function) tor2.c: In function `tor2_spanconfig': tor2.c:206: warning: implicit declaration of function `printk_R1b7d4074' tor2.c: In function `init_spans': tor2.c:274: warning: implicit declaration of function `sprintf_R1d26aa98' make: *** [tor2.o] Error 1 I tried latest zaptel cvs as well as 2 versions of kapejods patched zaptel, same effect. ANybody else who has that proiblem or has a solution for it ? Kernel is: 2.4.21-9.0.3.EL