[SLUG] Kernel module compile errors

From: Mario Lombardo (mario@alienscience.com)
Date: Sun Jan 11 2004 - 16:02:16 EST


I'm currently using 2.4.20-18.8 and I want to upgrade to 2.4.20-27.9. I have
installed modutils-2.4.22-8 I've installed kernel-source-2.4.20-27.9. After
jumping to /usr/src/linux-2.4.20-27.9, I run 'make menuconfig', I run 'make
dep' and then 'make bzImage'.

After that, I run 'make modules' and here's some of the tail of errors I get:

/usr/src/linux-2.4.20-27.9/include/net/tcp.h:1349: invalid suffix on integer
constant
/usr/src/linux-2.4.20-27.9/include/net/tcp.h:1349: called object is not a
function
In file included from netconsole.c:34:
/usr/src/linux-2.4.20-27.9/include/net/tcp.h: In function `tcp_paws_check':
/usr/src/linux-2.4.20-27.9/include/net/tcp.h:1829: `f31ddf83' undeclared
(first use in this function)
In file included from netconsole.c:39:
/usr/src/linux-2.4.20-27.9/include/linux/delay.h: At top level:
/usr/src/linux-2.4.20-27.9/include/linux/delay.h:10: warning: parameter names
(without types) in function declaration
In file included from /usr/src/linux-2.4.20-27.9/include/linux/delay.h:12,
                 from netconsole.c:39:
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:13: invalid suffix on floating
constant
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:13: parse error before numeric
constant
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:13: `__udelay_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:13: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:14: `__ndelay_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:14: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:15: `__const_udelay_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:15: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:16: invalid suffix on integer
constant
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:16: parse error before numeric
constant
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:16: `__delay_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/asm/delay.h:16: warning: function
declaration isn't a prototype
In file included from netconsole.c:40:
/usr/src/linux-2.4.20-27.9/include/linux/random.h:49: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:49: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:49:
`batch_entropy_store_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:49: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/random.h:51: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:51: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:51:
`add_keyboard_randomness_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:51: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/random.h:52: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:52: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:52:
`add_mouse_randomness_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:52: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/random.h:53: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:53: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:53:
`add_interrupt_randomness_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:53: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/random.h:54:
`add_blkdev_randomness_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:54: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/linux/random.h:56: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:56: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:56:
`get_random_bytes_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:56: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/random.h:57:
`generate_random_uuid_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:57: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/linux/random.h:60: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/random.h:61:
`secure_tcp_sequence_number_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-27.9/include/linux/random.h:61: warning: function
declaration isn't a prototype
In file included from netconsole.c:41:
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:37: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:37: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:37:
`register_reboot_notifier_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:37: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:38: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:38: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:38:
`unregister_reboot_notifier_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:38: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:45:
`machine_restart_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:45: warning: parameter names
(without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:46: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:46: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:46: `machine_halt_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:46: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:47: numeric constant
contains digits beyond the radix
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:47: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:47:
`machine_power_off_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/reboot.h:47: warning: function
declaration isn't a prototype
In file included from netconsole.c:42:
/usr/src/linux-2.4.20-27.9/include/linux/module.h:183: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/module.h:183: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/module.h:183:
`inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/module.h:183: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/module.h:184: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/module.h:184: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/module.h:184:
`inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/module.h:184: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/module.h:185:
`inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/module.h:185: warning: parameter
names (without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/linux/module.h:186:
`inter_module_get_request_R_ver_str' declared as function returning a
function
/usr/src/linux-2.4.20-27.9/include/linux/module.h:186: warning: parameter
names (without types) in function declaration
/usr/src/linux-2.4.20-27.9/include/linux/module.h:187: invalid suffix on
integer constant
/usr/src/linux-2.4.20-27.9/include/linux/module.h:187: parse error before
numeric constant
/usr/src/linux-2.4.20-27.9/include/linux/module.h:187:
`inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/module.h:187: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.20-27.9/include/linux/module.h:196:
`try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-27.9/include/linux/module.h:196: warning: parameter
names (without types) in function declaration
netconsole.c: In function `zap_completion_queue':
netconsole.c:174: warning: implicit declaration of function `printk_R1b7d4074'
netconsole.c:175: warning: implicit declaration of function
`__const_udelay_Reae3dfd6'
netconsole.c:175: warning: implicit declaration of function
`__udelay_R9e7d6bd0'
netconsole.c:176: warning: implicit declaration of function
`machine_restart_Re6e3ef70'
netconsole.c:186: `jiffies_R0da02d67' undeclared (first use in this function)
netconsole.c: In function `write_netconsole_msg':
netconsole.c:437: `netdump_mode_Rdf9f075e' undeclared (first use in this
function)
netconsole.c: In function `alloc_req':
netconsole.c:556: warning: implicit declaration of function
`kmalloc_R93d4cfe6'
netconsole.c: In function `netconsole_rx_hook':
netconsole.c:570: `netdump_mode_Rdf9f075e' undeclared (first use in this
function)
netconsole.c: In function `send_netdump_mem':
netconsole.c:744: `max_mapnr_R01139ffc' undeclared (first use in this
function)
netconsole.c:745: warning: implicit declaration of function
`sprintf_R1d26aa98'
netconsole.c:752: `empty_zero_page_R84daabab' undeclared (first use in this
function)
netconsole.c: In function `netdump_startup_handshake':
netconsole.c:782: `netdump_mode_Rdf9f075e' undeclared (first use in this
function)
netconsole.c:804: warning: implicit declaration of function `kfree_R037a0cba'
netconsole.c: In function `print_status_Re4c08ccd':
netconsole.c:833: `jiffies_R0da02d67' undeclared (first use in this function)
netconsole.c: In function `netconsole_netdump':
netconsole.c:904: `netdump_mode_Rdf9f075e' undeclared (first use in this
function)
netconsole.c:963: `max_mapnr_R01139ffc' undeclared (first use in this
function)
netconsole.c:982: warning: implicit declaration of function
`show_regs_R6ab1af98'
netconsole.c:983: warning: implicit declaration of function
`show_state_R41765e5e'
netconsole.c:984: warning: implicit declaration of function
`show_mem_R88171dda'
netconsole.c: In function `init_netconsole':
netconsole.c:1221: `netdump_func_R12e31521' undeclared (first use in this
function)
make[2]: *** [netconsole.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-27.9/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-27.9/drivers'
make: *** [_mod_drivers] Error 2
[root@baglady linux-2.4.20-27.9]#

Even if I remove some of the late-noted modules new ones appear. I haven't a
clue as to why this happens... Anybody??

/mario

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:20:03 EDT