LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-05-2006, 01:41 AM   #1
linux_3008
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
Red face Module compilation/linking in linux 2.6


I need to build a module having two files a.c and b.c and also I have another object file say d.c which is not in sourceform, I only have the object code and I need to link with my a.c and b.c.

My make file is something like this

obj-m :=a.o
a-y:=a.o b.o d.o

$(MAKE) -C $KERNELDIR M=`pwd` $@

and in my current directory I have d.o_shipped.I have used the example given in module file in /Documentation/kbuild dir.

Now my problem is everthing gets built and I do get "a.ko" module but make file gives me some warning on Undefined symbols which are there in d.o.Please let me know where am I wrong?
 
  


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
linking freeradius functions to an external auth module kky Programming 0 09-26-2006 09:16 AM
Linking precompile archive/object files with kernel module possible? Mechanic Linux - General 0 08-25-2006 02:08 PM
Linking module paths for sound? Slebine Slackware 1 06-26-2004 03:53 PM
module compilation aliyildiz Linux - General 6 03-31-2003 03:11 PM
module compilation aliyildiz Linux - General 0 12-08-2001 01:53 PM

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

All times are GMT -5. The time now is 09:29 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