LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2006, 03:31 AM   #1
yogi_blore
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Urgent, Help me!


Hi All
I am facing following problem for installing kernel Module.
I have a Makefile which compiles multiple source files for the module and then link it using ld as follow,
(a potion of Makfile)

CFLAGS = -D__KERNEL__ -DMODULE -I$(KERNEL)/include
ent_api_mod.o: char_driver.o Ent_oal.o Ent_cfg_annc.o
ld -r -o ent_api_mod.o char_driver.o Ent_oal.o

I am using Linux Kernel 2.4.20-8. I am able to get the compiled module ent_api_mod.o
But when I try to use /sbin/insmod ent_api_mod.o, it gives me unresolved symbol errors for POSIX semaphohre system calls(sem_init,sme_destroy,sem_post,sem_wait)

Please help me how can I solve this problem

Regards
Yogi
 
Old 03-23-2006, 03:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
1) do not mark threads as urgent, it's just plain rude.

2) use decent titles that give an insight to the problem you are having.
 
Old 03-23-2006, 03:45 AM   #3
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
having unresolved symbols in most cases means that the module needs another module to be loaded before.
If the module is installed in /lib/modules/<kernel-version> with the rest of the modules then you may use modprobe instead of insmod. It tracks down this kind of dependencies.
 
Old 03-24-2006, 05:22 AM   #4
yogi_blore
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
unresolved symbols

Thanks for the responses.

Only the POSIX semaphore system calls are showing unresolved symbol(sem_init,sem_destroy,sem_wait,sem_post). So I am wondering if I can add some lib files in the ld command which can resolve these references before installing the module. But do not know which all libs to include. This could be one option.

Are there any other options to overcome this.

Please please reply!!!

Regards
yogi
 
Old 03-24-2006, 06:06 AM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 53
I don't think you can link any library to modules or the kernel.
The kernel does not use any library, not even glibc.
Anything you need for a module should be in another module or in the kernel.

*EDIT*
Have you tried make install?

Last edited by perfect_circle; 03-24-2006 at 06:08 AM.
 
  


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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 08:07 PM
Urgent jtapiaibm Linux - Networking 3 01-13-2006 05:57 PM
Urgent..Im Having A Nightmare..Urgent!!!! midgcool Linux - Software 41 11-30-2004 10:19 AM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM

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

All times are GMT -5. The time now is 02:03 AM.

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