home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6829 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  3.0 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!uakari.primate.wisc.edu!unmvax!uservx.plk.af.mil!simonich
  2. From: simonich@uservx.plk.af.mil
  3. Newsgroups: comp.os.linux
  4. Subject: Re: Installing from 0.96c root disk(success)
  5. Message-ID: <1992Jul27.204146.35137@uservx.plk.af.mil>
  6. Date: 27 Jul 92 20:41:46 GMT
  7. References: <1992Jul25.233826.2624@athena.mit.edu>
  8. Organization: Phillips Laboratory - Kirtland AFB
  9. Lines: 81
  10.  
  11. In article <1992Jul25.233826.2624@athena.mit.edu>, balister@pdsrvr.salem.ge.com (Philip Balister) writes:
  12. > Hi,
  13. > I've been installing my second linux machine from the 0.96c boot/root disks.
  14. > I have the machine building the kernel and running X. Along the way I ran
  15. > into a few minor problems:
  16. > 1) After installing the base system from trhe 0.96c root disk I installed
  17. > the base and extra X packages. Success!
  18. > 2) Then I installed Gccv2.2.2. The following utilities are not on the root
  19. > disk or the binutils package: ln, find, make, awk, grep. These are used in
  20. > the install scripts. (cp --link works but I didn't want to hack the scripts)
  21. > Should these be included in the binutils tar, the 0.96c root disk looks
  22. > pretty full?
  23. > 3) The kernel stuff goes OK, excpet when compiling build.c. It looks for
  24. > linux/include/fs.h, not around any more. After some research I patched it
  25. > to use <sys/sysmacros.h> (The cdiffs follow)
  26. > Thanks to all working on this system, It is GREAT!
  27. > Philip Balister
  28. > balister@salem.salem.ge.com
  29. > *** ./build.c    Sat Jul 25 19:13:47 1992
  30. > --- ./build.c.old    Tue May 26 12:40:55 1992
  31. > ***************
  32. > *** 25,31 ****
  33. >   #include <stdlib.h>    /* contains exit */
  34. >   #include <sys/types.h>    /* unistd.h needs this */
  35. >   #include <sys/stat.h>
  36. > ! #include <sys/sysmacros.h> 
  37. >   #include <unistd.h>    /* contains read/write */
  38. >   #include <fcntl.h>
  39. >   
  40. > --- 25,31 ----
  41. >   #include <stdlib.h>    /* contains exit */
  42. >   #include <sys/types.h>    /* unistd.h needs this */
  43. >   #include <sys/stat.h>
  44. > ! #include <linux/fs.h>
  45. >   #include <unistd.h>    /* contains read/write */
  46. >   #include <fcntl.h>
  47. >   
  48. > ***************
  49. > *** 69,76 ****
  50. >                   perror(argv[4]);
  51. >                   die("Couldn't stat root device.");
  52. >               }
  53. > !             major_root = major(sb.st_rdev);
  54. > !             minor_root = minor(sb.st_rdev);
  55. >           } else {
  56. >               major_root = 0;
  57. >               minor_root = 0;
  58. > --- 69,76 ----
  59. >                   perror(argv[4]);
  60. >                   die("Couldn't stat root device.");
  61. >               }
  62. > !             major_root = MAJOR(sb.st_rdev);
  63. > !             minor_root = MINOR(sb.st_rdev);
  64. >           } else {
  65. >               major_root = 0;
  66. >               minor_root = 0;
  67.  
  68.  
  69. I applied your fix to build.c with the following results:
  70.  
  71.     in file included from tools/build.c:25:
  72.     /usr/include/stdlib.h:115: parse error before '*'
  73.     /usr/include/stdlib.h:118: parse error before 'wchar_t'
  74.     /usr/include/stdlib.h:121: parse error before '*'
  75.     /usr/include/stdlib.h:123: parse error before '*'
  76.  
  77. (Note: I also changed one line in Makefilerror before '*'
  78.   (Note: in Makefile:
  79.     HOSTCC    =gcc -static
  80. becomes
  81.     HOSTCC    =gcc -static -I$(KERNELHDRS)
  82. )
  83.  
  84. Any suggestestions?  Thanks
  85.