home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / minix / 5269 < prev    next >
Encoding:
Text File  |  1993-01-26  |  3.1 KB  |  77 lines

  1. Newsgroups: comp.os.minix
  2. Path: sparky!uunet!mcsun!sun4nl!star.cs.vu.nl!kjb
  3. From: kjb@cs.vu.nl (Kees J. Bot)
  4. Subject: Re: ACK ANSI Compiler
  5. Message-ID: <C1GJ41.FDp@cs.vu.nl>
  6. Sender: news@cs.vu.nl
  7. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  8. References: <1993Jan21.075806.29635@philce.ce.philips.nl> <93012418390@monty.apana.org.au>
  9. Date: Tue, 26 Jan 1993 10:43:13 GMT
  10. Lines: 65
  11.  
  12. newton@monty.apana.org.au (Mark Newton) writes:
  13. >
  14. >(not to mention the lockups that bar = time() would cause when time()
  15. >would try to write its current timer value to a pointer argument that
  16. >hadn't been supplied - bar = time(NULL) was the simple fix for that.
  17. >bar = time() doesn't crash at all when c68 is used over the same source
  18. >code).
  19.  
  20. How people can make the rest of their words null and void by saying
  21. things like this...  "bar = time()", I want a core dump dammit!
  22. (No fault of c68, just pure luck that it worked.)
  23.  
  24. Slight change of subject:
  25.  
  26. _KJB's guide to installing software_.
  27.  
  28. 1. Unpack the stuff in a fresh directory, usually
  29.    /usr/local/src/cmd/<package-name>-<version-number>.
  30.  
  31. 2. Look at the installation docs, if it needs more than a lib dir, more
  32.    than one binary per user function, more than one environment variable
  33.    or $HOME/.<package>rc:  Remove package.
  34.  
  35. 3. Set your compiler to maximum amount of checking, this is default for
  36.    ACK.  If you have gcc use 'gcc -ansi -pedantic -Wall', this will
  37.    even check printf arguments to the format string.  Enable separate
  38.    I&D and null pointer dereference checking.
  39.  
  40. 4. Decide how much of your time this package is worth and start your
  41.    timer.  If it runs out:  Remove package.
  42.  
  43. 5. Twiddle Makefile and/or a configuration include file to get the
  44.    package to understand that its support files are in
  45.    /usr/local/lib/<package>, and binaries go to /usr/local/bin.  If it
  46.    doesn't like it:  Remove package.
  47.  
  48. 6. Twiddle Makefile to make silent commands (those with @ in front) not
  49.    silent.  Remove echo's.  No surprises please.  Remove 'rm -f' of the
  50.    target binaries, they break links.  Study output of 'make -n'.
  51.  
  52. 7. Run make.  Look at the error messages and warnings.  If it is about
  53.    K&R style code then add '-wo' or remove '-ansi'.  No problem with
  54.    proper K&R style code.  Check the warnings, if they indicate that the
  55.    author doesn't have a clue about portable programming:  Remove package.
  56.    Make repairs and rerun make until the package compiles or the timer
  57.    runs out.
  58.  
  59. 8. Try to run the package, do some of step 9 first if necessary.
  60.    If it craches then try to repair.
  61.  
  62. 9. Look at the installation instructions and/or run 'make -n install'
  63.    and study it's output carefully.  Do the installation by hand.
  64.  
  65. Yes I do have some third-party software on my system, I set the timer
  66. high sometimes.  For Minix it will never expire.
  67.  
  68. First release of Minicom did not survive its 30 minutes, I have
  69. forgotten why.  I won't try again, kermit is good enough for the few
  70. KB that I move around.
  71.  
  72. High time I tried c386.  It sounds promising, so I'll give it a day.
  73. One can't have too many compilers.
  74. --
  75.                             Kees J. Bot  (kjb@cs.vu.nl)
  76.                   Systems Programmer, Vrije Universiteit Amsterdam
  77.