Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-16-2004, 06:33 AM   #1
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
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

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
Registered: Sep 2003
Location: sydney
Distribution: Redhat 8.0
Posts: 36

Original Poster
Rep: Reputation: 15

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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: 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 > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration