Re: Updated:Error opening framebuffer device/Unknown symbol

Jakub Zawadzki <[email protected]> Thu, 25 Oct 2007 11:31:00 +0200
Newsgroups gmane.linux.fbdev.user
Message-ID <[email protected]>
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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/