home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!unmvax!uservx.plk.af.mil!simonich
- From: simonich@uservx.plk.af.mil
- Newsgroups: comp.os.linux
- Subject: Re: Installing from 0.96c root disk(success)
- Message-ID: <1992Jul27.204146.35137@uservx.plk.af.mil>
- Date: 27 Jul 92 20:41:46 GMT
- References: <1992Jul25.233826.2624@athena.mit.edu>
- Organization: Phillips Laboratory - Kirtland AFB
- Lines: 81
-
- In article <1992Jul25.233826.2624@athena.mit.edu>, balister@pdsrvr.salem.ge.com (Philip Balister) writes:
- > Hi,
- >
- > I've been installing my second linux machine from the 0.96c boot/root disks.
- > I have the machine building the kernel and running X. Along the way I ran
- > into a few minor problems:
- >
- > 1) After installing the base system from trhe 0.96c root disk I installed
- > the base and extra X packages. Success!
- >
- > 2) Then I installed Gccv2.2.2. The following utilities are not on the root
- > disk or the binutils package: ln, find, make, awk, grep. These are used in
- > the install scripts. (cp --link works but I didn't want to hack the scripts)
- > Should these be included in the binutils tar, the 0.96c root disk looks
- > pretty full?
- >
- > 3) The kernel stuff goes OK, excpet when compiling build.c. It looks for
- > linux/include/fs.h, not around any more. After some research I patched it
- > to use <sys/sysmacros.h> (The cdiffs follow)
- >
- > Thanks to all working on this system, It is GREAT!
- >
- > Philip Balister
- > balister@salem.salem.ge.com
- >
- > *** ./build.c Sat Jul 25 19:13:47 1992
- > --- ./build.c.old Tue May 26 12:40:55 1992
- > ***************
- > *** 25,31 ****
- > #include <stdlib.h> /* contains exit */
- > #include <sys/types.h> /* unistd.h needs this */
- > #include <sys/stat.h>
- > ! #include <sys/sysmacros.h>
- > #include <unistd.h> /* contains read/write */
- > #include <fcntl.h>
- >
- > --- 25,31 ----
- > #include <stdlib.h> /* contains exit */
- > #include <sys/types.h> /* unistd.h needs this */
- > #include <sys/stat.h>
- > ! #include <linux/fs.h>
- > #include <unistd.h> /* contains read/write */
- > #include <fcntl.h>
- >
- > ***************
- > *** 69,76 ****
- > perror(argv[4]);
- > die("Couldn't stat root device.");
- > }
- > ! major_root = major(sb.st_rdev);
- > ! minor_root = minor(sb.st_rdev);
- > } else {
- > major_root = 0;
- > minor_root = 0;
- > --- 69,76 ----
- > perror(argv[4]);
- > die("Couldn't stat root device.");
- > }
- > ! major_root = MAJOR(sb.st_rdev);
- > ! minor_root = MINOR(sb.st_rdev);
- > } else {
- > major_root = 0;
- > minor_root = 0;
-
-
- I applied your fix to build.c with the following results:
-
- in file included from tools/build.c:25:
- /usr/include/stdlib.h:115: parse error before '*'
- /usr/include/stdlib.h:118: parse error before 'wchar_t'
- /usr/include/stdlib.h:121: parse error before '*'
- /usr/include/stdlib.h:123: parse error before '*'
-
- (Note: I also changed one line in Makefilerror before '*'
- (Note: in Makefile:
- HOSTCC =gcc -static
- becomes
- HOSTCC =gcc -static -I$(KERNELHDRS)
- )
-
- Any suggestestions? Thanks
-