Re: unresolved symbol main_table and local_table

From: Nicholas Dearham (Dearhamn@nu.ac.za)
Date: Fri Nov 15 2002 - 05:26:35 EST


> 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.

-
To unsubscribe from this list: 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



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:01 EST