home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / linux / 8553 < prev    next >
Encoding:
Text File  |  1992-08-18  |  3.4 KB  |  73 lines

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!matt.ksu.ksu.edu!news
  2. From: probreak@matt.ksu.ksu.edu (James Michael Chacon)
  3. Newsgroups: comp.os.linux
  4. Subject: Re: header woes with 2.2.2d
  5. Date: 18 Aug 1992 14:00:32 -0500
  6. Organization: Kansas State University
  7. Lines: 61
  8. Message-ID: <16rhcgINNgp0@matt.ksu.ksu.edu>
  9. References: <1992Aug18.064024.13631@rs6000.cmp.ilstu.edu>
  10. NNTP-Posting-Host: matt.ksu.ksu.edu
  11.  
  12. jliddle@rs6000.cmp.ilstu.edu (Jean Liddle) writes:
  13.  
  14. >Well, my hopes of flawless compilation of the ps package under 2.2.2d
  15. >have been dashed.  I followed the instructions in the FAQ, README, and
  16. >release docs, namely (1) removing all old gcc stuff (and all /usr/include
  17. >directories except /usr/include/X11/*).  I even removed the linux
  18. >sources, reinstalled them from scratch, applied patch 1 and the buffer fix,
  19. >to make sure all headers were unadultered. (2) ran the install script.
  20.  
  21. >The kernel compiled flawlessly.  But, ps dies with a whole slew of errors
  22. >such as 
  23.  
  24. >/usr/include/linux/termios.h:69: parse error before `tcflag_t'
  25. >/usr/include/linux/termios.h:69: warning: no semicolon at end of struct or union
  26. >/usr/include/linux/termios.h:70: warning: data definition has no type or storage class
  27.  
  28. >[approx 10E666 lines removed]
  29.  
  30. >/usr/include/linux/fs.h:172: field `msdos_sb' has incomplete type
  31. >/usr/include/linux/fs.h:177: parse error before `off_t'
  32. >In file included from cmdline.c:12:
  33. >/usr/include/linux/sched.h:236: parse error before `grp'
  34. >cmdline.c: In function `swapread':
  35. >cmdline.c:187: parse error before `off_t'
  36. >make: *** [cmdline.o] Error 1
  37.  
  38. >This seems to indicate to me that the header files are screwed up in
  39. >some way.  As all headers had been deleated before {unning the install
  40. >script, I can only assume that this means the headers with the new
  41. >release (2.2.2d) still have some problems.  I am extremely reluctant to
  42. >tear into these things, hacking quick fixes which break something else.
  43.  
  44. >Has anyone got ps-0.97 compiling under linux 0.97.1 and gcc 2.2.2d?  Has
  45. >anyone got the headers figured out?  If so, could you please post a step
  46. >by step procedure for installing gcc/linux sources/whatever else?  After
  47. >reading the aforementioned doc files several times I am unable to make any 
  48. >progress.  I would like to figure out this header stuff once and for all,
  49. >then simply put it out of my mind and go on to other things.
  50.  
  51. >Thanks for any and all help!
  52.  
  53. >Jean.
  54.  
  55. I got ps to compile just fine last night. As all of the header files are now
  56. in /usr/include, ps doesn't need the -I/usr/src/linux/include stuff. When
  57. cmdline.c tries to compile, it gets lost on some symlink and generates all 
  58. those errors you mentioned. You should cp the blk.h file from from /usr/src
  59. linux/kernel/blk_drv/ directory to your ps directory and change the 
  60. #include "../kernel/blk_drv/blk.h" in free.c to #include "blk.h"
  61. After doing all this, it should compile with no problem. The problem I think
  62. was happening was that ps would include a file from the linux/include tree
  63. which would try and include a file from /usr/include/linux and the symlinks
  64. would confuse the compiler to no end.
  65.  
  66.  
  67. -----------------------                              ---------------------------
  68. -Oh the joy of finding-       James Chacon           -probreak@matt.ksu.ksu.edu-
  69. -That last pizza slice-                              ---------------------------
  70. -----------------------                     --------------------------
  71. -
  72.  
  73.