From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17256 invoked by alias); 16 Aug 2012 12:04:23 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30616 Received: (qmail 13637 invoked from network); 16 Aug 2012 12:04:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at danbala.ifoer.tuwien.ac.at does not designate permitted sender hosts) Date: Thu, 16 Aug 2012 14:04:21 +0200 From: Thomas Klausner To: zsh-workers@zsh.org Subject: tgoto issue in zsh-5.0.0 Message-ID: <20120816120421.GE2428@danbala.tuwien.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi! zsh-5.0.0 has two prototypes for tgoto (in case they lack in the system headers) which do not have the same signature (except on AIX). The first one is in Src/prototypes.h: #if !(defined(USES_TERMCAP_H) || defined(USES_TERM_H)) /* * These prototypes are only used where we don't have the * headers. In some cases they need tweaking. * TBD: we'd much prefer to get hold of the header where * these are defined. */ #ifdef _AIX #define TC_CONST const #else #define TC_CONST #endif ... extern char *tgoto _((TC_CONST char *cm, int destcol, int destline)); ... #undef TC_CONST #endif The second one is in Src/zsh_system.h: #ifdef TGOTO_PROTO_MISSING char *tgoto(const char *cap, int col, int row); #endif This causes a compile error due to conflicting prototypes (on at least NetBSD-5.99.40/amd64, an older development version of NetBSD-6; it's fine on another newer snapshot). Thomas