Compiling Linux 2.1.21...

Juan Cespedes (cespedes@LANDER.ES)
Mon, 20 Jan 1997 15:57:37 +0100 (MET)


I haven't been able to compile Linux 2.1.21 at all:

root@gizmo:/usr/src/linux-2.1.21# make distclean
... all well
root@gizmo:/usr/src/linux-2.1.21# make menuconfig
... all well
root@gizmo:/usr/src/linux-2.1.21# make dep && make clean zImage
...
make[3]: Entering directory `/usr/src/linux-2.1.21/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.1.21/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o ide.o ide.c
ide.c:2831: parse error before `EXPORT_SYMTAB_not_defined'
ide.c:2831: warning: data definition has no type or storage class
ide.c:2832: parse error before `EXPORT_SYMTAB_not_defined'
ide.c:2832: warning: data definition has no type or storage class
... lots of errors like that one...
ide.c:2879: parse error before `EXPORT_SYMTAB_not_defined'
ide.c:2879: warning: data definition has no type or storage class
make[3]: *** [ide.o] Error 1

My system:
root@gizmo:~# uname -a
Linux gizmo 2.0.28 #1 Sat Jan 18 12:34:50 MET 1996 i586 unknown
root@gizmo:~# cat /proc/cpuinfo
processor : 0
cpu : 586
model : Pentium 75+
vendor_id : GenuineIntel
stepping : 6
fdiv_bug : no
hlt_bug : no
fpu : yes
fpu_exception : yes
cpuid : yes
wp : yes
flags : fpu vme de pse tsc msr mce cx8
bogomips : 39.73
root@gizmo:~# ldd -V
/lib/ld.so: version 1.8.5
root@gizmo:~# ls -l /lib/libc.so.5*
lrwxrwxrwx 1 root root 14 Jan 9 18:06 /lib/libc.so.5 -> libc.so.5.4.17
-rwxr-xr-x 1 root root 565296 Dec 15 06:50 /lib/libc.so.5.4.17
root@gizmo:~# gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.2.1/specs
gcc version 2.7.2.1
root@gizmo:~# ld -v
ld version 2.7 (with BFD 2.7.0.3)

My config:

root@gizmo:/usr/src/linux-2.1.21# egrep "=y|=m" .config
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_SYSVIPC=y
CONFIG_BINFMT_ELF=y
CONFIG_M586=y
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_INET=y
CONFIG_PATH_MTU_DISCOVERY=y
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y
CONFIG_NETDEVICES=y
CONFIG_NET_ETHERNET=y
CONFIG_LANCE=y
CONFIG_EXT2_FS=y
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
CONFIG_SERIAL=y
CONFIG_MOUSE=y
CONFIG_PSMOUSE=y