program not compiling on fresh FC1 installation
hello,
I am trying to compile the programs downloaded from p2p.wrox.com. i have fresh reinstalled Fedora core 1. But getting following errors help which previously not appeared?
Makefile is
INCLUDE = /usr/src/linux-2.4.22-1.2115.nptl
CC = gcc
CFLAGS = -D__KERNEL__ -I$(INCLUDE) -DMODULE -Wall -O2
TARGET = schar
SRC = schar.c
all: $(TARGET).o
clean:
rm -f *.o *~ core
ERRORS are=>
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2115.nptl/include -DMODULE -Wall -O2 -c -o schar.o schar.c
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/semaphore.h:39,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/fs.h:202,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/capability.h:17,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/binfmts.h:4,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/sched.h:10,
from schar.c:17:
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h: In function `__set_64bit_var':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/system.h:189: warning: dereferencing type-punned pointer will break strict-aliasing rules
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/highmem.h:5,
from /usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:8,
from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/io.h:47,
from schar.c:26:
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:79: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:79: error: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:79: error: for each function it appears in.)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:90: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:123: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux-2.4.22-1.2115.nptl/include/asm/pgalloc.h:133: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.22-1.2115.nptl/include/asm/io.h:47,
from schar.c:26:
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h: In function `vmalloc':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:40: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h: In function `vmalloc_dma':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:49: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h: In function `vmalloc_32':
/usr/src/linux-2.4.22-1.2115.nptl/include/linux/vmalloc.h:58: error: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
make: *** [schar.o] Error 1
Last edited by cranium2004; 03-26-2005 at 11:40 PM.
|