home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23021 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.1 KB  |  68 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!news
  2. From: jefftep@cs.utexas.edu (Jeffrey Grills)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: 0.99.2 compile problem
  5. Date: 7 Jan 1993 02:41:38 -0600
  6. Organization: CS Dept, University of Texas at Austin
  7. Lines: 55
  8. Message-ID: <lknr62INNl22@bovina.cs.utexas.edu>
  9. References: <1993Jan2.210327.8869@tc.cornell.edu> <C0Fw86.E2t@ppcger.ppc.sub.org>
  10. NNTP-Posting-Host: bovina.cs.utexas.edu
  11. Keywords: 0.99.2 compile problem
  12.  
  13. In article <C0Fw86.E2t@ppcger.ppc.sub.org> sepp@ppcger.ppc.sub.org (Josef Wolf) writes:
  14. >torvalds@klaava.Helsinki.FI (Linus Torvalds) writes:
  15. >>I've now seen two compilation problem reports, and they both looked like
  16. >>being due to bad include-file setups, probably due to a problem with the
  17. >>SLS files. 
  18. >
  19. >>IMPORTANT! To get any linux kernel to compile, your /usr/include/linux
  20. >>and /usr/include/asm directories should be symlinks to the linux
  21. >>include-dirs.  If they aren't, correct the problem with:
  22. >
  23. >>    # rm -rf /usr/include/linux
  24. >>    # rm -rf /usr/include/asm
  25. >>    # ln -s /usr/src/linux/include/linux /usr/include/linux
  26. >>    # ln -s /usr/src/linux/include/asm /usr/include/asm
  27. >
  28. >This problem originates in the new include-files as packaged in inc-4.2.TZ.
  29.  
  30. [...]
  31.  
  32. >Greetings
  33. >    Sepp
  34. >
  35. >-- 
  36. >sepp@ppcger.ppc.sub.org
  37. >Josef Wolf, Germersheim, Germany
  38. >..!ira.uka.de!smurf.sub.org!ppcger.ppc.sub.org
  39.  
  40. SLS comes (at least did come) with the links backwards.
  41.  
  42. if you did a
  43.  
  44.   cd /usr/src
  45.   rm -r linux
  46.   tar zxvf linux.tar.Z
  47.  
  48. and didn't have your sym links correct, you ended up with
  49. the old headers in /usr/inlude/{asm,linux}.  Thid happened to me.
  50.  
  51. In my case, the kernel compiled just fine, but refused to
  52. boot.  much harder to find than these errors where the comiler
  53. balks.  Perhaps we can make it always balk with the wrong header
  54. files...  maybe an
  55.  
  56. #define LINUX_0_99_2
  57.  
  58. in one of the header files, and then in some real kernel source,
  59.  
  60. #ifndef LINUX_0_99_2
  61. # error wrong header files being used to compile
  62. #endif
  63.  
  64. Just an idea to maybe save new users (and ourselves) some problems.
  65. -- 
  66. jeff grills
  67. jefftep@cs.utexas.edu
  68.