home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / utils / bug / 2439 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!caip.rutgers.edu!ghazi
  2. From: ghazi@caip.rutgers.edu (Kaveh R. Ghazi)
  3. Newsgroups: gnu.utils.bug
  4. Subject: NGROUPS_MAX problem in make-3.62.30
  5. Date: 21 Jan 1993 18:22:48 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 36
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301212258.AA18867@caip.rutgers.edu>
  12.  
  13.     I had a problem with NGROUPS_MAX in the file job.c in make-3.62.30
  14. on a Tek XD88/10 running UTekV 3.2e.
  15.  
  16.     The problem is that it is defined to 0 in <sys/limits.h> which causes
  17. a warning during the compile:
  18. '"job.c", line 850: warning: Negative or zero array size'
  19.  
  20.     Since sysconf(_SC_NGROUPS_MAX) returns 16 and the value of NGROUP in
  21. <sys/param.h> is also 16, I added a little code to #undef NGROUPS_MAX if it
  22. equals zero so those other methods of determining the max # of groups will
  23. be utilized in job.c.
  24.  
  25.     Here is the context diff:
  26. diff -c job.c~ job.c
  27. *** job.c~      Tue Jan 19 00:32:39 1993
  28. --- job.c       Thu Jan 21 22:50:34 1993
  29. ***************
  30. *** 28,33 ****
  31. --- 28,38 ----
  32.   /* Default shell to use.  */
  33.   char default_shell[] = "/bin/sh";
  34.   
  35. + /* If NGROUPS_MAX == 0 then try other methods for finding max # groups.  */
  36. + #if defined(NGROUPS_MAX) && (NGROUPS_MAX == 0)
  37. + #undef NGROUPS_MAX
  38. + #endif /* NGROUPS_MAX == 0 */
  39.   #ifndef       NGROUPS_MAX
  40.   #ifdef        POSIX
  41.   #define       GET_NGROUPS_MAX sysconf (_SC_NGROUPS_MAX)
  42.  
  43.         --Kaveh
  44. --
  45. Kaveh R. Ghazi            CAIP Center, Rutgers University.
  46. ghazi@caip.rutgers.edu        rutgers!caip.rutgers.edu!ghazi
  47.  
  48.