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