home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / bsd / 5519 < prev    next >
Encoding:
Text File  |  1992-09-11  |  1.8 KB  |  48 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!mcsun!sun4nl!eur.nl!pk
  3. From: pk@cs.few.eur.nl (Paul Kranenburg)
  4. Subject: Re: 386bsd: elvis won't compile
  5. Message-ID: <1992Sep11.110750.24748@cs.few.eur.nl>
  6. Sender: news@cs.few.eur.nl
  7. Reply-To: pk@cs.few.eur.nl
  8. Organization: Erasmus University Rotterdam
  9. References: <1992Sep8.185716.23623@hippo.ru.ac.za> <BuA04M.J6H@ibmpcug.co.uk>
  10. Date: Fri, 11 Sep 1992 11:07:50 GMT
  11. Lines: 35
  12.  
  13. In <BuA04M.J6H@ibmpcug.co.uk> adrian@ibmpcug.co.uk (Adrian Hall) writes:
  14.  
  15. >In article <1992Sep8.185716.23623@hippo.ru.ac.za> ccml@hippo.ru.ac.za (Mike Lawrie) writes:
  16. >>In /usr/src/usr.bin/elvis, I type "make" and end up with the message
  17. >>
  18. >>    make: obj: No such file or directory
  19. >>
  20. >>There is a link /usr/src/usr.bin/elvis/obj->/usr/obj/contrib/elvis-1.5,
  21. >>but there is not even a directory /usr/obj/contrib.
  22. >>
  23.  
  24. >Ummmm
  25.  
  26. >    mkdir -p /usr/obj/contrib/elvis-1.5
  27.  
  28. >Seriously though (sorry if I assumedyou didnt know the usage of the
  29. >mkdir command!), there are a lot of directories under /usr/othersrc
  30. >which ask for obj dirs and do not have one. The appropriate mkdir -p
  31. >clears it up, so it is no great problem.
  32.  
  33. There is a related problem with make if you try to overrule the object
  34. directory by setting the environment var MAKEOBJDIR. If I set it to "."
  35. (doing "setenv MAKEOBJDIR ." or just "setenv MAKEOBJDIR"), make will
  36. erroneously set its variable ${.CURDIR} to "..", causing a number of
  37. Makefiles to get confused. A look at the code (right at the beginning
  38. of main()) reveales that any value of MAKEOBJDIR that does not evaluate
  39. to a subdirectory of the current directory (in which make was started)
  40. will cause this error to show up.
  41.  
  42. A quick fix would be to change the line (#358, main.c)
  43.     if (S_ISDIR(sb.st_mode))
  44. to
  45.     if (S_ISDIR(sb.st_mode) && !strcmp(path, _PATH_OBJDIR))
  46.  
  47. -pk
  48.