home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.aux
- Path: sparky!uunet!gatech!enterpoop.mit.edu!world!rhs
- From: rhs@world.std.com (Richard H Schwartz)
- Subject: Re: Has anyone ported gnu make?
- Message-ID: <C03CHs.FM7@world.std.com>
- Organization: The World Public Access UNIX, Brookline, MA
- References: <C0333E.1vD@world.std.com>
- Date: Wed, 30 Dec 1992 21:17:52 GMT
- Lines: 27
-
- rhs@world.std.com (Richard H Schwartz) writes:
-
- >I've been having loads of trouble (i.e., memory faults, segmentation
- >errors, random hangs) porting gnu Make v 3.62. Has anyone else tried
- >this port? I'm getting close to giving up.
-
- But I didn't give up :-) I found the problem. For anyone who is
- interested, the key was one line in main.c:
-
- setvbuf(stdout, _IOLBUF, (char *) 0, BUFSIZ);
-
- According to setbuf(3S) A/UX 3.0 expects the arguments to this function
- in a slightly different order (i.e., reverse arg2 and arg3). And since
- the call doesn't really do much (the default buffering for stdout is
- _IOLBUF, and BUFSIZ in <stdio.h> is probably the default size) I just
- #ifdef-ed it out of there.
-
- I didn't get the man page installation worked out, and file permissions
- on the executable file were set inappropriately, but all-in-all it was
- a successful port.
-
- -rich
- --
- Richard H. Schwartz, Scheduling Systems Inc.,
- 1000 Massachusetts Avenue, Cambridge, MA 02138
- (617) 864 8330; FAX (617) 864 8377
- rhs@world.std.com
-