Hi,

--- On Fri, May 8, 2009 at 10:06 AM, Srinivas G.
<sriniv...@esntechnologies.co.in> wrote:
| I am getting the following errors
| in 2.6.28 kernel version only.
|
| insmod: error inserting 'import_func.ko': -1 Unknown symbol in module
\--

Firstly, that was a well written technical query with detailed code
and output messages.

---
| import_func: no symbol version for myexportfun
| import_func: Unknown symbol myexportfun
\--

I used the following Makefile, and built export_func and import_func
modules, and it works fine on Fedora 10, 2.6.27.5-117.fc10.i686:

=== Makefile ===

obj-m   += export_func.o

all:
        make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
        make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
        rm -f *~

=== END ===

Copy the same Makefile and use it in the import/ directory replacing
export_func.o with import_func.o.

=== dmesg ===

<exp_init> Module to demo export of symbols!
<my_init> Module to demo export of symbols
<myexportfun> I am a exported function - NEW!

== END ===

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
_______________________________________________
To unsubscribe, email ilugc-requ...@ae.iitm.ac.in with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to