Kernel 1.3.20/21 compile problems

Dave McGlumphy (davem@cotf.edu)
Fri, 1 Sep 1995 10:18:26 +0500


Hello,
I am trying to compile kernel 1.3.20 or 21 as ELF with ppp-2.2b3 -
950820. I am using the exact same options I have for other 1.3.X kernels(
I have compiled almost all of them), but with 1.3.20/21, it almost
finishes, then dies at this point:

rm -f $tmppiggy $tmppiggy.gz; \
objdump -k -q -o 0x100000 /2/usr/src/linux1320/vmlinux > $tmppiggy; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
encaps --target elf32-i386 piggy.o $tmppiggy.gz input_data input_len; \
rm -f $tmppiggy $tmppiggy.gz
gcc -D__KERNEL__ -I/2/usr/src/linux1320/include -traditional -c head.S
gcc -D__KERNEL__ -I/2/usr/src/linux1320/include -O2 -DSTDC_HEADERS -c
inflate.c -o inflate.o
gcc -D__KERNEL__ -I/2/usr/src/linux1320/include -O2 -DSTDC_HEADERS -c
unzip.c
-o unzip.o
gcc -D__KERNEL__ -I/2/usr/src/linux1320/include -O2 -DSTDC_HEADERS -c
misc.c -o misc.o
ld -m elf_i386 -Ttext 0x1000 -e startup_32 -o vmlinux head.o inflate.o
unzip.o
misc.o piggy.o
make[2]: Leaving directory `/2/usr/src/linux1320/arch/i386/boot/compressed'
gcc -I/2/usr/src/linux1320/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -m486 -D__BFD__ -o tools/build tools/build.c
-I/2/usr/src/linux1320/include
/tmp/cca020061.o(.text+0xdf): undefined reference to `stat'
/tmp/cca020061.o(.text+0x13e): undefined reference to `stat'
/tmp/cca020061.o(.text+0x519): undefined reference to `fstat'
make[1]: *** [tools/build] Error 1
make[1]: Leaving directory `/2/usr/src/linux1320/arch/i386/boot'
make: *** [zImage] Error 2

My system is all ELF, and I'm using GCC 2.7.0. I have tried it without ppp
and still have the same problem. I recently installed the new linux-ELF
alpha distribution, then upgraded GCC. Anyone have any ideas?

Thanks,

Dave McGlumphy, UNIX Programmer
NASA Classroom of the Future PHONE: (304)-243-2388
Wheeling Jesuit College FAX: (304)-243-2497
316 Washington Avenue INTERNET: davem@cotf.edu
Wheeling, WV 26003 davem@acclinux.wjc.edu

** The opinions I express are mine and not those of NASA, WJC, or the COTF
**
__ _ _ _ () ,
/ ) ' ) ) ) /`-'| /) /
/ / __. , ___ / / / _. / / // . . ____ _ /_ , ,
/__/_(_(__\/ (<_ / ' (_(_ /__-<_(/_(_/_/) ) )_/_)_/ /_(_/_
/ /
' '