home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnuawk.zip / README_d / README.irix < prev    next >
Internet Message Format  |  1996-12-08  |  2KB

  1. From: "Kaveh R."  <ghazi@caip.rutgers.edu!>
  2. Date: Fri, 6 Dec 1996 11:51:27 -0500 (EST)
  3. To: arnold@skeeve.atl.ga.us
  4. Subject: Re:  new (and I sure hope final) test release of 3.0.1
  5.  
  6.     Gawk built everywhere except on irix-4.0.5:
  7.  
  8. cc -c  -DGAWK -I. -I.. -DHAVE_CONFIG_H ../array.c
  9. accom: Error: ../protos.h, line 73: One declaration for is non-prototype style,)
  10.        extern int fprintf () ; 
  11.        ----------------------^
  12. accom: Error: ../protos.h, line 73: One declaration for fprintf is non-prototyp)
  13.        extern int fprintf () ; 
  14.        ----------------------^
  15. accom: Error: ../protos.h, line 78: redeclaration of fwrite
  16.        extern int fwrite();
  17.        -------------------^
  18. accom: Error: ../protos.h, line 91: One declaration for is non-prototype style,)
  19.        extern int sscanf () ;
  20.        ---------------------^
  21. accom: Error: ../protos.h, line 91: One declaration for sscanf is non-prototype)
  22.        extern int sscanf () ;
  23.        ---------------------^
  24. accom: Error: ../protos.h, line 126: One declaration for is non-prototype style)
  25.        extern int        sprintf () ;
  26.        -----------------------------^
  27. accom: Error: ../protos.h, line 126: One declaration for sprintf is non-prototy)
  28.        extern int        sprintf () ;
  29.        -----------------------------^
  30. accom: Error: /usr/include/unistd.h, line 96: One declaration for is non-protot)
  31.        extern int       execl(  char *,   char *, ...);
  32.        -----------------------------------------------^
  33. accom: Error: /usr/include/unistd.h, line 96: One declaration for execl is non-)
  34.        extern int       execl(  char *,   char *, ...);
  35.        -----------------------------------------------^
  36. make: *** [array.o] Error 1
  37.  
  38.  
  39.     The compiler on irix-4.0.5 understands and uses prototypes in
  40. its headers, but does not define __STDC__.  Since gawk's source code
  41. prototypes various systems calls and libc functions, without function
  42. arguments since __STDC__ is not defined, you get these problems.
  43.  
  44.     I was able to get around it by setting CFLAGS to "-D__STDC__=1".
  45. Then gawk's source code prototyped functions with arguments, and the above
  46. errors did not occur.  I wonder why gawk is prototyping system functions.
  47.  
  48.     Anyway, after using the CFLAGS hack (only necessary on irix-4.0.5)
  49. all systems built and passed "make check".
  50.  
  51.         --Kaveh
  52. --
  53. Kaveh R. Ghazi                Systems Engineer / Project Leader
  54. ghazi@caip.rutgers.edu            ICon CMT Corp.
  55.  
  56.