[TriLUG] Linux Kernel build

Andy Hart wahart at portbridge.com
Sun Feb 3 14:10:12 EST 2002


I'm trying to build support into my kernel for an alpha version of the WD
7197 SCSI driver. In doing so, I'm rebuilding the kernel, but I'm running
into the following compile error:

gcc -D__KERNEL__ -I/usr/src/redhat/BUILD/kernel-2.4.7/linux/include -Wall -W
strict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasi
ng -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -c -o
uid16.o uid16.c
gcc -D__KERNEL__ -I/usr/src/redhat/BUILD/kernel-2.4.7/linux/include -Wall -W
strict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasi
ng -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586    -DEXPORT_SY
MTAB -c ksym
s.c
In file included from
ksyms.c:18:/usr/src/redhat/BUILD/kernel-2.4.7/linux/include/linux/kernel_sta
t.h: In function `kstat_irqs':
/usr/src/redhat/BUILD/kernel-2.4.7/linux/include/linux/kernel_stat.h:48:
`smp_num_cpus' undeclared (first use in this function)
/usr/src/redhat/BUILD/kernel-2.4.7/linux/include/linux/kernel_stat.h:48:
(Each undeclared identifier is reported only once
/usr/src/redhat/BUILD/kernel-2.4.7/linux/include/linux/kernel_stat.h:48: for
each function it appears in.)
make[2]: *** [ksyms.o] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.4.7/linux/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.4.7/linux/kernel'
make: *** [_dir_kernel] Error 2


The linux source is from the Red-Hat Source CDs from 7.2.
The wd719x driver source is from knowplace.org and has been used
successfully.

I did the following:

make xconfig
make depend
make clean
make bzImage

Any ideas?

Andy Hart
8409 Camellia Dr.
Raleigh, NC 27613
Phone: (919) 846-5662
Cell:    (919) 264-8699





More information about the TriLUG mailing list