Problems building a simple kernel module for kernel 2.6.7
Linux - SoftwareThis 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Problems building a simple kernel module for kernel 2.6.7
Hi,
I'm a newbie to Linux and I'm trying to build a simple kernel module with some problems. I'm calling an external C function in the kernel source and I'm getting "implicit declaration" warnings in the first pass and undefined symbols in the MODPOST pass. I don't understand why I'm getting these.
The module will not even load due to these errors. Here is the error I get when I do "insmod mcf25.ko":
insmod: error inserting 'mcf25.ko': -1 Unknown symbol in module
Which is interesting that if I take out the "CardServices" function call, building and insmoding work just fine.
I've pasted my source (which is small) and the Makefile also.
This is Slackware 10. I'm sure there is something extremely simple that I didn't do, I just don't know what the heck it is.
Thanks,
I have that already. I just stripped down my code for example purposes. My problem is getting the external references correct so I can build this against kernel 2.6.x. The second pass, MODPOST warnings are preventing the module from loading properly with the error:
insmod: error inserting 'mcf25.ko': -1 Unknown symbol in module
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.