Question regarding exported symbols

From: Nat Ersoz (nat.ersoz@myrio.com)
Date: Thu Jul 18 2002 - 20:05:55 EST


Greetings,

I am trying to dynamically load a video frambuffer module, rather than
compile it into the kernel (it is the Geode framebuffer module).

=== 1. Prior to modification, I get the following error when performing
a "make modules_install":

find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.18-i3m;
fi
depmod: *** Unresolved symbols in
/lib/modules/2.4.18-i3m/kernel/drivers/video/geode/geode.o
depmod: PROC_CONSOLE
depmod: set_all_vcs
make: *** [_modinst_post] Error 1

=== 2. I find that these functions are defined in the file:

linux-2.4.18/drivers/video/fbcon.c

So I add the following 2 lines to fbcon.c in order to export the functions for use
by geode.o:

EXPORT_SYMBOL(set_all_vcs);
EXPORT_SYMBOL(PROC_CONSOLE);

Once I recompile the kernel (make bzImage), I find that the System.map
is updated with the following entries:

c0185ed0 T PROC_CONSOLE
c0185f30 T set_all_vcs

So it appears that the kernel has proper (.text) entry points for my 2
newly exported functions.

=== 3. I then proceed with "make modules", and then "make
modules_install" - yet I still get the same error when make
modules_install completes:

depmod: *** Unresolved symbols in
/lib/modules/2.4.18-i3m/kernel/drivers/video/geode/geode.o
depmod: PROC_CONSOLE
depmod: set_all_vcs
make: *** [_modinst_post] Error 1

=== HELP!

Thanks,

Nat

-- 
_________________________________________
Nat Ersoz             Myrio Corporation    -o) 
nat.ersoz@myrio.com   Cell: 425-417-5182   /\\
Phone: 425.897.7278   Fax:  425.897.5600  _\_V
3500 Carillon Point   Kirkland, WA 98033 

- 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 : Tue Jul 23 2002 - 22:00:28 EST