1.3.82 problems

Kevin Buettner (kev@primenet.com)
Tue, 2 Apr 1996 15:53:11 -0700 (MST)


I had two problems with 1.3.82:

1) Did not build without errors...

gcc -D__KERNEL__ -I/fin/home/kev/kernel/linux-1.3.82/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o dev_mcast.o dev_mcast.c
gcc -D__KERNEL__ -I/fin/home/kev/kernel/linux-1.3.82/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o firewall.o firewall.c
/fin/home/kev/kernel/linux-1.3.82/include/asm/system.h: In function `unregister_firewall':
/fin/home/kev/kernel/linux-1.3.82/include/asm/system.h:213: inconsistent operand constraints in an `asm'
make[3]: *** [firewall.o] Error 1
make[3]: Leaving directory `/fin/home/kev/kernel/linux-1.3.82/net/core'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/fin/home/kev/kernel/linux-1.3.82/net/core'
make[1]: *** [sub_dirs] Error 2
make[1]: Leaving directory `/fin/home/kev/kernel/linux-1.3.82/net'
make: *** [linuxsubdirs] Error 2

I made the following modifications to get it to compile cleanly...

--- include/asm/system.h-orig Tue Apr 2 14:33:37 1996
+++ include/asm/system.h Tue Apr 2 14:33:50 1996
@@ -192,9 +192,9 @@
#define tas(ptr) (xchg((ptr),1))

struct __xchg_dummy { unsigned long a[100]; };
-#define __xg(x) ((struct __xchg_dummy *)(x))
+#define __xg(x) ((volatile struct __xchg_dummy *)(x))

-static inline unsigned long __xchg(unsigned long x, void * ptr, int size)
+static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size)
{
switch (size) {
case 1:

I'm using gcc-2.7.2. Here is the configuration:

CONFIG_MODULES=y
CONFIG_NET=y
CONFIG_PCI=y
CONFIG_PCI_OPTIMIZE=y
CONFIG_SYSVIPC=y
CONFIG_BINFMT_AOUT=y
CONFIG_BINFMT_ELF=y
CONFIG_KERNEL_ELF=y
CONFIG_M586=y
CONFIG_BLK_DEV_FD=y
CONFIG_FIREWALL=y
CONFIG_INET=y
CONFIG_IP_FORWARD=y
CONFIG_IP_FIREWALL=y
CONFIG_IP_ACCT=y
CONFIG_IP_FIREWALL_VERBOSE=y
CONFIG_IP_MASQUERADE=y
CONFIG_IP_NOSR=y
CONFIG_SKB_LARGE=y
CONFIG_ATALK=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_CHR_DEV_ST=y
CONFIG_BLK_DEV_SR=y
CONFIG_CHR_DEV_SG=y
CONFIG_SCSI_NCR53C7xx=y
CONFIG_NETDEVICES=y
CONFIG_DUMMY=y
CONFIG_SLIP=y
CONFIG_PPP=y
CONFIG_NET_VENDOR_3COM=y
CONFIG_EL3=y
CONFIG_MINIX_FS=y
CONFIG_EXT2_FS=y
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_PROC_FS=y
CONFIG_NFS_FS=y
CONFIG_ISO9660_FS=y
CONFIG_SERIAL=y
CONFIG_PRINTER=y
CONFIG_SOUND=y

2) While booting 1.3.82, /sbin/init was mysteriously removed! I did not
try to reproduce this problem. I was able to recover /sbin/init from
a backup tape so all's well. (I use the 53c7,8xx.c SCSI driver.)

Back at 1.3.79 for a while longer.

Kevin