LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-24-2009, 07:54 AM   #1
kennedb3
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Rep: Reputation: 0
Module symbol versioning


Hi All,

I'm using kernel 2.6.28 with CentOS 5.2. I have a large source base that is normally compiled as a library file (libmodule.a), but sometimes must be build as a loadable kernel module. Now, I have that working ok, however, when the module is built, the resulting Module.symvers file has a problem. Instead of having values beside the function symbols, e.g.

0x706333a8 libmodule_func /module_dir EXPORT_SYMBOL

It has zeros:

0x00000000 libmodule_func /module_dir EXPORT_SYMBOL

Why is this and how can I get it to compile properly?

Other modules cannot be inserted because they cannot find the correct symbol version for the functions they want to use.

Regards,
Brendan
 
Old 07-24-2009, 08:14 AM   #2
kennedb3
LQ Newbie
 
Registered: Jul 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Just some more information, the kernel has been compiled with CONFIG_MODVERSIONS enabled and the CRC number is being added in other modules I'm compiling. I think this could be an issue to do with building the library in the first build step, then creating the module in the second step (rather than doing it all at once).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Symbol in module mdkusr Linux - Software 1 11-05-2006 01:10 AM
[HOWTO] Get Module Versioning working in FC2 paudle Fedora 1 09-07-2004 01:40 PM
How do I get module versioning into the kernel? paudle Linux - Software 1 09-03-2004 12:48 PM
What is symbol versioning newbie Mike Linux - Software 1 04-01-2004 04:24 AM
Module Versioning!!!???? Creator Linux - Newbie 9 01-07-2002 05:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration