Regarding - unresolved symbol

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, 
I am developing a device driver module related to the
real time clock on Linux 2.4 kernel. [This is done
with regard to changing one of the existing timer chip
on the  system.] For some reason, I am getting into an
unresolved symbol.

I am following sequence of code in the module (not
necessarily in the sequential manner though).

----------
extern void *sys_call_table[];
static int (*timer_mknod)(const char *, ... ); 
timer_mknod = sys_call_table[__NR_mknod];
----------

Whenever I try to insert the module into the kernel, I
get the following error:
timer.o: unresolved symbol sys_call_table

All the necessary headers are present and I am able to
see the symbol 'sys_call_table' in System.map. I do
not see any error in this regard. Can somebody help me
in pointing out the flaw? 

[I am able to fix this problem by simply using the
'sys_mknod()' call in my module, but I really would
like to know why the above piece of code can not
work!]

Thank you,
Vinay Hegde


		
__________________________________________________________ 
Yahoo! India Matrimony: Find your partner now. Go to http://yahoo.shaadi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux