zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Zsh workers <zsh-workers@sunsite.dk>
Subject: building latest sources
Date: Tue, 02 Mar 2004 19:17:21 +0100	[thread overview]
Message-ID: <27115.1078251441@trentino.logica.co.uk> (raw)

I tried compiling the latest sources on a few of the SourceForge
compile farm machines.

On Mac OS X, it built fine. make test has one problem I couldn't work
out and I'm not sure why it failed to load zpty because I could load it
manually. The patch below suppresses a couple of compiler warnings and
adjusts _groups to use the netinfo database.

On Solaris 9, there were no problems except those caused by their
installation of GNU libiconv being found at linktime but not runtime.

NetBSD built and tested fine. I got warnings there and MacOS X for
implicit declaration of function 'ioctl'. Should we be including
sys/ioctl.h more widely?

Oliver

Index: Completion/Unix/Type/_groups
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_groups,v
retrieving revision 1.3
diff -u -r1.3 _groups
--- Completion/Unix/Type/_groups	18 Feb 2004 12:45:36 -0000	1.3
+++ Completion/Unix/Type/_groups	2 Mar 2004 18:04:35 -0000
@@ -6,7 +6,9 @@
 
 if ! zstyle -a ":completion:${curcontext}:" groups groups; then
   (( $+_cache_groups )) ||
-      if (( ${+commands[getent]} )); then
+      if [[ $OSTYPE = darwin* ]]; then
+        : ${(A)_cache_groups:=${${(M)${(f)"$(_call_program groups lookupd -q group)"}:#name*}##*: }}
+      elif (( ${+commands[getent]} )); then
         : ${(A)_cache_groups:=${${(s: :)$(_call_program groups getent group 2>/dev/null)}%%:*}}
       else
         : ${(A)_cache_groups:=${${${(s: :)$(</etc/group)}%%:*}:#+}}
Index: Src/Modules/socket.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/socket.c,v
retrieving revision 1.4
diff -u -r1.4 socket.c
--- Src/Modules/socket.c	22 May 2003 09:48:29 -0000	1.4
+++ Src/Modules/socket.c	2 Mar 2004 18:04:36 -0000
@@ -171,7 +171,7 @@
 	    tv.tv_sec = 0;
 	    tv.tv_usec = 0;
 	    
-	    if (ret = select(lfd+1, &rfds, NULL, NULL, &tv)) return 1;
+	    if ((ret = select(lfd+1, &rfds, NULL, NULL, &tv))) return 1;
 	    else if (ret == -1)
 	    {
 		zwarnnam(nam, "select error: %e", NULL, errno);
Index: Src/Modules/tcp.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Modules/tcp.c,v
retrieving revision 1.37
diff -u -r1.37 tcp.c
--- Src/Modules/tcp.c	29 Oct 2003 19:17:48 -0000	1.37
+++ Src/Modules/tcp.c	2 Mar 2004 18:04:36 -0000
@@ -515,7 +515,7 @@
 	    tv.tv_sec = 0;
 	    tv.tv_usec = 0;
 	    
-	    if (ret = select(lfd+1, &rfds, NULL, NULL, &tv)) return 1;
+	    if ((ret = select(lfd+1, &rfds, NULL, NULL, &tv))) return 1;
 	    else if (ret == -1)
 	    {
 		zwarnnam(nam, "select error: %e", NULL, errno);
Index: Src/Zle/zle_params.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_params.c,v
retrieving revision 1.12
diff -u -r1.12 zle_params.c
--- Src/Zle/zle_params.c	15 Dec 2003 22:45:29 -0000	1.12
+++ Src/Zle/zle_params.c	2 Mar 2004 18:04:36 -0000
@@ -365,7 +365,7 @@
 	free(cutbuf.buf);
     cutbuf.flags = 0;
     if (x) {
-	unmetafy(x, &cutbuf.len);
+	unmetafy(x, (int *)&cutbuf.len);
 	cutbuf.buf = zalloc(cutbuf.len);
 	memcpy((char *)cutbuf.buf, x, cutbuf.len);
 	free(x);
@@ -420,7 +420,7 @@
 	for (p = x; *p; p++) {
 	    int len = strlen(*p);
 	    kptr = kring + kpos;
-	    unmetafy(*p, &kptr->len);
+	    unmetafy(*p, (int *)&kptr->len);
 	    kptr->buf = (char *)zalloc(kptr->len);
 	    memcpy(kptr->buf, *p, kptr->len);
 	    zfree(*p, len+1);


             reply	other threads:[~2004-03-02 18:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-02 18:17 Oliver Kiddle [this message]
2004-03-02 18:29 ` Peter Stephenson
2004-03-03 18:52 ` Wayne Davison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27115.1078251441@trentino.logica.co.uk \
    --to=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).