Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Beta 18 Compilation Problem Under Nextstep 3.3
- X-seq: zsh-workers 1113
- From: Mark Borges <mdb@xxxxxxxxxxxx>
- To: Irving Wolfe <irving@xxxxxxxxx>
- Subject: Re: Beta 18 Compilation Problem Under Nextstep 3.3
- Date: 21 May 1996 17:36:12 -0600
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: Irving Wolfe's message of Tue, 21 May 1996 14:47:13 -0700 (PDT)
- References: <Pine.NXT.3.93.960521144604.28147A-100000@racoon>
- Sender: mdb@xxxxxxxxxxxx
>> 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