Re: unresolved symbol main_table and local_table

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

 



> think u need to define two more symbols on > ur command line when u compile 
> not prety sure of this but u will need to 
> -DMODULE -D__KERNEL__ 
 
> with gcc it would look like 
> gcc  -O2 -Wall -DMODULE -D__KERNEL__ -
> smem.c -c
 
Thanks amit, but I've already done this and it still does not work. Here is my Makefile: 
 
# Makefile for klar
 
CC=arm-linux-gcc
KINC=-I/skiff/src/linux/linux-2.4.18-rmk3/include
KDEFS=-D__KERNEL__ -DMODULE -DMODVERSIONS -include /skiff/local/arm-linux/include/linux/modversions.h
KC_ALL=-Wall -W -O2 $(KDEFS) $(KINC)
 
klar.o: klar.c
 $(CC) $(KC_ALL) -o $@ -c $<
 
If you see anything wrong, let me know! 
 
Thanks again.


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux