Click to See Complete Forum and Search --> : problems when building a console driver.


TomSi
08-28-2002, 10:50 PM
Hi ALL,
I have builded someone's console device driver in RH7.3/7.2 (without rebuilding the kernel), when I insmod the driver, the system reply:
unit.o: unresolved symbol vc_allocate
unit.o: unresolved symbol change_console
unit.o: unresolved symbol pckbd_leds

Refering to the /usr/include and kernel source codes, these functions are defined in the vt_kern.h & console.c, but I don't konw how to add the functions to my system, Should I add a driver or module to my system? (but I think it have been in my system.)

Thanks for your help!

truls
08-29-2002, 01:17 PM
You could try depmod instead of insmod to see if that fixes things. depmod loads the module, and in addition loads any modules which the module depends on. That could fix your problem.

bwkaz
08-29-2002, 01:53 PM
Originally posted by truls
You could try depmod instead of insmod to see if that fixes things. depmod loads the module, and in addition loads any modules which the module depends on. That could fix your problem. Actually, that'd be modprobe that does that. depmod just updates the module dependency file that modprobe uses -- try doing a depmod first, then a modprobe <modulename>

TomSi
08-29-2002, 09:10 PM
Fristly, thanks for your help.
After one day's study, I found out the functions my driver deponding on is in the kernel and without exported by the kernel. the old driver is kernel build in mode, by now, I should changed it as a module mode, I think I should remove the --DEEXPROT from the Makefile, is it sure?