Exporting from a preloaded module

Barney Cordoba barney_cordoba at yahoo.com
Tue Jan 27 12:49:08 PST 2009


I have a module foo that depends on bar.  If I load the module bar normally,
I can access the function I need in foo with no problem. However if I preload
foo in loader.conf, I have a problem:

1) bar can't be loaded because it says foo isn't available if I keep the 
MODULE_DEPEND declaration.
2) If I remove the dependence, bar gets unresolved externals.

It seems that the dependence is broken, as bar is loaded and shows in the
module list.

Barney


      


More information about the freebsd-current mailing list