When building md.o as module, make modules_install fails, because of
an unresolved symbol:
$ make modules_install
...
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.3-pre2-ut1; fi
depmod: *** Unresolved symbols in /lib/modules/2.4.3-pre2-ut1/kernel/drivers/md/md.o
depmod: md_autodetect_dev
This is because the defintion of md_autodetect_dev() is in
#ifndef MODULE
...
void md_autodetect_dev (kdev_t dev)
{
...
}
...
#endif
while this function is called from export_rdev() which is always
compiled, i.e. also when building as module.
urs
Hi,
I've got a bit more ->
depmod: *** Unresolved symbols in /lib/modules/2.4.3-pre2/kernel/drivers/i2o/i2o_scsi.o
depmod: i2o_install_handler
depmod: i2o_remove_handler
depmod: i2o_find_controller
depmod: i2o_query_scalar
depmod: i2o_num_controllers
depmod: *** Unresolved symbols in /lib/modules/2.4.3-pre2/kernel/drivers/md/md.o
depmod: md_autodetect_dev
--
Mario Miko?evi? (Mozgy)
My favourite FUBAR ...