Unresolved symbols while inserting a module in linux

2 messages, 2 authors, 2008-03-05 · open the first message on its own page

Unresolved symbols while inserting a module in linux

From: mahendra varman <hidden>
Date: 2008-03-05 14:45:00

Hi all

For a customised hdlc card we have written hdlc driver.
we need to compile it as a module in linux 2.4.25 version
Thru Config.in we have defined the customised driver as tristate and
selected 'M' in menuconfig for that driver
The other dependencies generic hdlc driver, cisco , framedelay , ppp
etc are compiled as configured within the kernel itself
By giving make modules we have produced driver.o file

When I insert the driver.o using insmod iam getting the following
unresolved symbols
Even though the dependencies have been configured with the kernel
itself iam getting these unresolved symbols

If we use modprobe driver.o (or) modprobe driver it is reporting
driver:applet not found..

Help me to produce a module with its dependencies also to solve the
unresolved symbols error


Thanks

---------------------------------------------------- unresolved
symbols after insmod
------------------------------------------------------

Using driver.o
insmod: unresolved symbol pci_write_config_byte
insmod: unresolved symbol __netdev_watchdog_up
insmod: unresolved symbol schedule_timeout
insmod: unresolved symbol __kfree_skb
insmod: unresolved symbol alloc_skb
insmod: unresolved symbol pci_register_driver
insmod: unresolved symbol register_hdlc_device
insmod: unresolved symbol unregister_hdlc_device
insmod: unresolved symbol __release_region
insmod: unresolved symbol kmalloc
insmod: unresolved symbol pci_free_consistent

24 more lines

Re: Unresolved symbols while inserting a module in linux

From: <hidden>
Date: 2008-03-05 15:01:44

Hi,
    In 2.6 kernel All the functions that are being used by a module should 
have been exported by the provider..
For Example If your driver module say foo.ko wants to use function x ( ) 
defined in bar.c, then in bar.c the function x () had be exported using
EXPORT_SYMBOL_GPL(x); If not when you try to insmod foo.ko U will get 
unresolved symbol x.
There should be something similar in 2.4..
 Thanks,
Ravishankar Govindarao
RFL Electronics Inc.
E-mail : Ravi.Rao@rflelect.com
Voice: 973.334.3100 Ext. 233
Fax: 973.334.3863
 
CONFIDENTIALITY NOTE
This e-mail, including any attachments, may contain confidential and/or 
legally privileged information.  The Information is intended only for the 
use of the individual or entity named on this e-mail .  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or the taking of any action in reliance on the contents of 
this transmitted Information is strictly prohibited.  Further, if you are 
not the intended recipient, please notify us by return e-mail and delete 
the Information promptly.
 
 
 



"mahendra varman" [off-list ref] 
Sent by: linuxppc-embedded-bounces+ravi.rao=rflelect.com@ozlabs.org
03/05/2008 09:44 AM

To
linuxppc-embedded@ozlabs.org, linux-kernel@vger.kernel.org
cc

Subject
Unresolved symbols while inserting a module in linux

75 more lines

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help