Re: 2.1.81 won't compile

Linus Torvalds (torvalds@transmeta.com)
Fri, 23 Jan 1998 21:48:04 -0800 (PST)


On Fri, 23 Jan 1998, David Fries wrote:
>
> On Sat, Jan 24, 1998 at 04:33:18AM +0000, Linus Torvalds wrote:
> > Does this patch fix it?
> >
> > Linus
>
> I had to manually add the patch, it gets a lot further in the compile,
> but still bombs.
>
> make[1]: Entering directory `/usr/src/v2.1/linux-2.1/arch/i386/kernel'
> gcc -D__KERNEL__ -I/usr/src/v2.1/linux-2.1/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe
> -fno-strength-reduce -m486 -DCPU=486 -DEXPORT_SYMTAB -c i386_ksyms.c
> i386_ksyms.c:42: `global_bh_lock' undeclared here (not in a function)
> i386_ksyms.c:42: initializer element for
> `__ksymtab_global_bh_lock.value' is not constant

Move the "global_bh_lock" line downwards a bit into the section that is
protected with #ifdef __SMP__ (along with entries like "global_irq_holder"
and what not).

> Also 2.1.80 seems to be having nfs problems 2.0.29 didn't have. This
> is on a diskless pc and when I goto mount using nfs I get,
> Jan 22 21:26:37 SlowPoke kernel: IP-Config: Got BOOTP answer from
> 192.168.0.150, my address is 192.168.0.200
> Jan 22 21:26:37 SlowPoke kernel: Looking up port of RPC 100003/2 on 192.168.0.150
> Jan 22 21:26:37 SlowPoke kernel: Looking up port of RPC 100005/1 on 192.168.0.150
> Jan 22 21:26:37 SlowPoke kernel: VFS: Mounted root (nfs filesystem).
> Jan 22 21:26:37 SlowPoke kernel: Freeing unused kernel memory: 36k freed
> Jan 22 21:26:37 SlowPoke kernel: portmap: RPC call returned error 111
> Jan 22 21:26:37 SlowPoke kernel: RPC: task of released request still queued!
> Jan 22 21:26:37 SlowPoke kernel: RPC: (task is on xprt_pending)

The RPC errors tend to be due to portmap being started after NFS: this is
a bug in at least the RedHat 4.1 setup (and possibly others). The simplest
solution is to rename the file

/etc/rc.d/rc3.d/S40portmap

to

/etc/rc.d/rc3.d/S13portmap

(so that it gets started before S15nfsfs)

Note that my setup may not be quite standard, so the above may not be
exactly the right numbers, but the idea should be fairly obvious.

> Also I'm having routing problems, default routes are ignored, once I
> add a route it can't be removed.

When upgrading from 2.0.x to 2.1.x you do need to upgrade various
utilities. The network utilities are one of those. See
Documentation/Changes for some details..

Linus