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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-23-2006, 03:31 AM
|
#1
|
LQ Newbie
Registered: Mar 2006
Posts: 2
Rep:
|
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
|
|
|
03-23-2006, 03:38 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-23-2006, 03:45 AM
|
#3
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
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.
|
|
|
03-24-2006, 05:22 AM
|
#4
|
LQ Newbie
Registered: Mar 2006
Posts: 2
Original Poster
Rep:
|
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
|
|
|
03-24-2006, 06:06 AM
|
#5
|
Senior Member
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|