2.4.3-pre2: Can't build md.o as module: unresolved symbol

From: Urs Thuermann (thuerman@ibr.cs.tu-bs.de)
Date: Mon Mar 05 2001 - 06:00:54 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Mar 07 2001 - 21:00:16 EST