Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Beta 18 Compilation Problem Under Nextstep 3.3



>> On Tue, 21 May 1996 14:47:13 -0700 (PDT),
>> Irving Wolfe(IW) wrote:
IW> cc -c -I.. -I. -I.  -DHAVE_CONFIG_H -Wall -Wno-implicit -Wmissing-prototypes -O -pipe builtin.c
IW> builtin.c: In function `bin_kill':
IW> builtin.c:662: `sigs' undeclared (first use this function)

I had the same problem under Solaris-2.5 (but it's not an OS bug).

I tracked it down to the change made to signames.awk, which on my
system is interpreted by mawk,

  $ mawk -Wv
  mawk 1.2.2 Jan 1996, Copyright (C) Michael D. Brennan

which generated a bogus signames.h file.

Anyway, I backed out the change (why is it necessary to escape the
`#else'?) and it worked fine.

The only thing SUNWspro's cc complains about now is stuff like:

----------------------------------------
"hashtable.c", line 233: warning: argument #1 is incompatible with prototype:
	prototype: pointer to const uchar : "./utils.pro", line 85
	argument : pointer to char
----------------------------------------

Good luck.

*** signames.awk	Mon May 20 06:40:00 1996
--- ../../zsh-2.6-beta17/Src/signames.awk	Mon May  6 08:08:58 1996
***************
*** 1,5 ****
  # 
! # $Id: signames.awk,v 2.1 1996/05/20 01:24:24 hzoli Exp $
  #
  # {g,n}awk script to generate signals.h
  # provided by Geoff Wing <mason@xxxxxxxxxxxxxxxxxxx>
--- 1,5 ----
  # 
! # $Id: signames.awk,v 2.0 1996/05/02 22:57:04 hzoli Exp $
  #
  # {g,n}awk script to generate signals.h
  # provided by Geoff Wing <mason@xxxxxxxxxxxxxxxxxxx>
***************
*** 52,58 ****
  
  END {
      ps = "%s"
!     ifdstr = sprintf("#ifdef USE_SUSPENDED\n\t%csuspended%s%c,\n\#else\n\t%cstopped%s%c,\n#endif\n", 034, ps, 034, 034, ps, 034)
  
      printf("%s\n%s\n\n%s\t%d\n\n%s\n\n%s\n\t%c%s%c,\n", "/** signals.h                                 **/", "/** architecture-customized signals.h for zsh **/", "#define SIGCOUNT", max, "#ifdef GLOBALS", "char *sigmsg[SIGCOUNT+2] = {", 034, "done", 034)
  
--- 52,58 ----
  
  END {
      ps = "%s"
!     ifdstr = sprintf("#ifdef USE_SUSPENDED\n\t%csuspended%s%c,\n#else\n\t%cstopped%s%c,\n#endif\n", 034, ps, 034, 034, ps, 034)
  
      printf("%s\n%s\n\n%s\t%d\n\n%s\n\n%s\n\t%c%s%c,\n", "/** signals.h                                 **/", "/** architecture-customized signals.h for zsh **/", "#define SIGCOUNT", max, "#ifdef GLOBALS", "char *sigmsg[SIGCOUNT+2] = {", 034, "done", 034)
  
***************
*** 87,93 ****
      print "\tNULL"
      print "};"
      print ""
!     print "\#else"
      print "extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];"
      print "#endif"
  }
--- 87,93 ----
      print "\tNULL"
      print "};"
      print ""
!     print "#else"
      print "extern char *sigs[SIGCOUNT+4],*sigmsg[SIGCOUNT+2];"
      print "#endif"
  }

-- 
  -mb-




Messages sorted by: Reverse Date, Date, Thread, Author