From: Peter Stephenson <pws@csr.com>
To: zsh-workers@sunsite.dk, Daniel Qarras <dqarras@yahoo.com>
Subject: Re: Compile errors on AIX 5.2
Date: Tue, 19 Jun 2007 19:10:25 +0100 [thread overview]
Message-ID: <20070619191025.0ee07c06@news01.csr.com> (raw)
In-Reply-To: <20070619180144.56203.qmail@web36806.mail.mud.yahoo.com>
On Tue, 19 Jun 2007 11:01:44 -0700 (PDT)
Daniel Qarras <dqarras@yahoo.com> 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
next prev parent reply other threads:[~2007-06-19 18:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-19 18:01 Daniel Qarras
2007-06-19 18:10 ` Peter Stephenson [this message]
2007-06-19 18:19 ` Daniel Qarras
2007-06-19 18:21 ` Daniel Qarras
2007-06-19 18:55 ` Daniel Qarras
2007-06-19 20:31 ` Peter Stephenson
2007-06-19 20:37 ` Daniel Qarras
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=20070619191025.0ee07c06@news01.csr.com \
--to=pws@csr.com \
--cc=dqarras@yahoo.com \
--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).