home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / aux / 4455 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.4 KB  |  38 lines

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