From: Jakub Z. <dar...@da...> - 2007-10-25 09:31:13
|
On Thu, Oct 25, 2007 at 02:25:40PM +0530, kaka wrote: > Hi All, > > Thanks for the overhelming responses. > I was able to remove the problem of Unknown symbols by linking the proper > libraries. Now the problem got reduced to the following messages. > > # insmod brcmstfb.ko > brcmstfb: Unknown symbol printf instead of printf() you should use printk() sample, printk(KERN_INFO "somethink happen! var1=%d\n", var1); instead of KERN_INFO you've got defined in <linux/kernel.h> other message type like: KERN_EMERG, KERN_ERR, KERN_WARNING, KERN_NOTICE, KERN_DEBUG see include/linux/kernel.h for details. > brcmstfb: Unknown symbol malloc kmalloc() ? kzalloc() ? > brcmstfb: Unknown symbol free kfree() > The properitiary graphics lib code is using malloc,print and free from < > stdlib.h> and that is why those symbols are coming undefined. Because you're in kernelspace, not in userspace with (g)libc. |