From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1880 invoked from network); 19 Jun 2007 18:11:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Jun 2007 18:11:23 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 98003 invoked from network); 19 Jun 2007 18:11:17 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Jun 2007 18:11:17 -0000 Received: (qmail 19232 invoked by alias); 19 Jun 2007 18:11:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23571 Received: (qmail 19222 invoked from network); 19 Jun 2007 18:11:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Jun 2007 18:11:13 -0000 Received: (qmail 97602 invoked from network); 19 Jun 2007 18:11:13 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 19 Jun 2007 18:11:08 -0000 Received: from rly20c.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly20c.srv.mailcontrol.com (MailControl) with ESMTP id l5JIAwro021789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 19 Jun 2007 19:10:59 +0100 Received: from submission.mailcontrol.com (submission.mailcontrol.com [86.111.216.190]) by rly20c.srv.mailcontrol.com (MailControl) id l5JIASLa020749 for zsh-workers@sunsite.dk; Tue, 19 Jun 2007 19:10:28 +0100 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly20c-eth0.srv.mailcontrol.com (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id l5JIAPBD020652; Tue, 19 Jun 2007 19:10:27 +0100 (BST) Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Tue, 19 Jun 2007 19:10:25 +0100 Date: Tue, 19 Jun 2007 19:10:25 +0100 From: Peter Stephenson To: zsh-workers@sunsite.dk, Daniel Qarras Subject: Re: Compile errors on AIX 5.2 Message-ID: <20070619191025.0ee07c06@news01.csr.com> In-Reply-To: <20070619180144.56203.qmail@web36806.mail.mud.yahoo.com> References: <20070619180144.56203.qmail@web36806.mail.mud.yahoo.com> Organization: CSR X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 19 Jun 2007 18:10:25.0409 (UTC) FILETIME=[1C14E710:01C7B29D] X-Scanned-By: MailControl A-07-07-10 (www.mailcontrol.com) on 10.67.1.130 On Tue, 19 Jun 2007 11:01:44 -0700 (PDT) Daniel Qarras wrote: > Hi! > > I got a temporary access to an AIX 5.2 system and of course I tried to > compile latest zsh from CVS. configure passed ok but during > compilation I get this error: > > gcc -c -I. -DHAVE_CONFIG_H -Wall -Wmissing-prototypes -O2 -o > module.o module.cmodule.c: In function `dyn_setup_module': > module.c:1344: error: too many arguments to function ... Yes, sorry, I knew this was a problem because I changed the interface and couldn't test it on AIX. Try the following. (There could still be a problem even if it compiles, although I hope not.) Index: Src/module.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/module.c,v retrieving revision 1.29 diff -u -r1.29 module.c --- Src/module.c 29 May 2007 21:39:32 -0000 1.29 +++ Src/module.c 19 Jun 2007 18:08:00 -0000 @@ -1341,42 +1341,42 @@ static int dyn_setup_module(Module m) { - return ((int (*)_((int,Module))) m->u.handle)(0, m, NULL); + return ((int (*)_((int,Module, void*))) m->u.handle)(0, m, NULL); } /**/ static int dyn_features_module(Module m, char ***features) { - return ((int (*)_((int,Module))) m->u.handle)(4, m, features); + return ((int (*)_((int,Module, void*))) m->u.handle)(4, m, features); } /**/ static int dyn_enables_module(Module m, int **enables) { - return ((int (*)_((int,Module))) m->u.handle)(5, m, enables); + return ((int (*)_((int,Module, void*))) m->u.handle)(5, m, enables); } /**/ static int dyn_boot_module(Module m) { - return ((int (*)_((int,Module))) m->u.handle)(1, m, NULL); + return ((int (*)_((int,Module, void*))) m->u.handle)(1, m, NULL); } /**/ static int dyn_cleanup_module(Module m) { - return ((int (*)_((int,Module))) m->u.handle)(2, m, NULL); + return ((int (*)_((int,Module, void*))) m->u.handle)(2, m, NULL); } /**/ static int dyn_finish_module(Module m) { - return ((int (*)_((int,Module))) m->u.handle)(3, m, NULL); + return ((int (*)_((int,Module,void *))) m->u.handle)(3, m, NULL); } /**/ To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview