LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2004, 06:33 AM   #1
saajii
Member
 
Registered: Sep 2003
Location: sydney
Distribution: Redhat 8.0
Posts: 36

Rep: Reputation: 15
Exclamation how does depmod find dependency


hi guys;

i was wondering how does depmod find dependency among modules inorder to create the modules.dep file?
 
Old 09-16-2004, 07:57 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
It's not very complicated. Each module exports a list of symbols that it provides (i.e. are defined in the module) and that it requires (i.e. used in the module but not defined there).

depmod just goes through the modules and builds up a tree of these symbols. If a module A exports a symbol that is required by another module B, it will mark A as a dependency of B.
 
Old 09-19-2004, 09:34 PM   #3
saajii
Member
 
Registered: Sep 2003
Location: sydney
Distribution: Redhat 8.0
Posts: 36

Original Poster
Rep: Reputation: 15
Question

the problem i have is,my module uses the crc32_le function in crc32 module which exports this functions for other modules to use.
however when i do a depmod on my module, it returns with unresolved symbol:crc32_le.why does'nt depmod f'nd the dependency and
load the crc32 module automatically?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
depmod got cleared out? slinky2004 Linux - General 1 10-10-2005 11:58 PM
where can i find 0:8.14.13.1-0.lvn.1 dependency linuxmandrake Linux - General 1 07-23-2005 11:18 AM
Valknut RPM cant find dependency thats blatently there dangerousdave Linux - Software 2 02-18-2005 08:19 AM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM
Help! depmod Mike-BB Linux - Software 7 08-11-2004 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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