---------- Forwarded message ---------- Date: Tue, 3 Apr 2001 16:52:35 +0530 (IST) From: Chandrashekhar S <chandras@pcc-1-181.sasi.com> To: matti.aarnio@zmailer.org Subject: Questions ............. (fwd) Hello, My name is Chandra, I have some probelms... I am doing some kernel coding in the IP layer. and I am using kmalloc and printk and the timer functions in my module. **************************************************************************** I have included the following header files in my .h file include <linux/skbuff.h> #include <linux/ip.h> #include <net/ip.h> #include <linux/tcp.h> #include <linux/modversions.h> #include <linux/timer.h> #include <linux/module.h> ************************************************************************** The kernel version I am using is linux-2.4.2 form compillation. When I compile my module in the top level make file , it is showing some linker errors for kmalloc and printk and for timer function, WHat is the problem ? which are the header files still I need to add ?? ************************************************************************** For kmalloc and kfree which header file I should include ?? For printk which header file I should include ?? for timer functions Which header file I should include ?? for ip_options_compile which are the header files i should include ?? ********************************************************************** The following are the errors listed when I compiled my code in top level make file. net/network.o(.text+0x52f84): undefined reference to`ip_options_compile_Rsmp_b8621391' net/network.o(.text+0x534e0): undefined reference to`kmalloc_Rsmp_93d4cfe6' net/network.o(.text+0x5358e): undefined reference to`jiffies_Rsmp_0da02d67' net/network.o(.text+0x53647): undefined reference to`kmalloc_Rsmp_93d4cfe6' net/network.o(.text+0x53743): undefined reference to`jiffies_Rsmp_0da02d67' net/network.o(.text+0x53750): undefined reference to`mod_timer_Rsmp_1f13d309' net/network.o(.text+0x537ab): undefined reference to`del_timer_Rsmp_fc62f16d' net/network.o(.text+0x53811): undefined reference to `kfree_Rsmp_037a0cba' net/network.o(.text+0x53846): undefined reference to `kfree_Rsmp_037a0cba' net/network.o(.text+0x5391b): undefined reference to`kmalloc_Rsmp_93d4cfe6' net/network.o(.text+0x5398a): undefined reference to`kmalloc_Rsmp_93d4cfe6' net/network.o(.text+0x53a8e): undefined reference to`kmalloc_Rsmp_93d4cfe6' net/network.o(.text+0x53afa): undefined reference to `kfree_Rsmp_037a0cba' *************************************************************************** Regards, Chandra - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org