From: Matt Welsh (mdw@theory.TC.Cornell.EDU)
Date: 09/13/92


From: mdw@theory.TC.Cornell.EDU (Matt Welsh)
Subject: Re: compiling 0.97p5
Date: Mon, 14 Sep 1992 02:49:14 GMT

In article <kegzWfS00WBM44l0x3@andrew.cmu.edu> ce12+@andrew.cmu.edu (Christopher Aaron Ekberg) writes:
>Hello,
>
>Until now, I have never had any problems upgrading kernels. I am
>currently running 0.97pl4 (upgraded originally from 0.97.2 MCC), and
>when I applied patch 5, everything looked ok. But when I make'ed it,
>make choked: in init/main.c, mem_init had the wrong number of
>parameters! It wanted two, and it had three:
>(low_memory_start,memory_start,memory_end) or something like that.

[Description of errors deleted]

>
>This exact thing happened when I tried to make from the 0.97.5 sources.
>
>Am I missing some files or anything? Incorrect libs/headers? I did ln
>-fs the include directories (and the asm dirs). I haven't seen anyone
>else having these problems! I know that a new version will be out
>shortly, but I would really like to figure this out.

Oops. Okay, guys: the ln -fs will NOT work correctly if you ALREADY have
the target directory at the time you make the link. I.e. if you do

% mkdir foo
% ln -fs bar foo

You end up with the link "bar" being *inside* the directory foo, as in

foo/bar -> foo

I don't know if this is "correct" behavior or not, but this is what happened
to me when I made those links because (of course) the /usr/include/linux and
/usr/include/asm directories were already in existence when I made the
link, so it put the link inside those directories. The solution: either
rename or nuke the two existing directories, then make the link.

mdw

-- 
Matt Welsh    mdw@tc.cornell.edu        +1 607 253 2737
Random Hacker, Cornell Engineering and Theory Center 
  "I'll eat anything that's BRIGHT BLUE!!"