Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ZSH 4.3.6 fails to compile (module.c: 1453) on AIX 5300-08-01 (AIX 5.3 TL 8), ZSH 4.2.7 compiles
- X-seq: zsh-users 13093
- From: Peter Stephenson <pws@xxxxxxx>
- To: "Mihai Criveti" <cmihai@xxxxxxxxx>
- Subject: Re: ZSH 4.3.6 fails to compile (module.c: 1453) on AIX 5300-08-01 (AIX 5.3 TL 8), ZSH 4.2.7 compiles
- Date: Mon, 04 Aug 2008 16:12:06 +0100
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <22c159aa0808040635u17488c7an9df3ecc31a0af799@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <22c159aa0808040635u17488c7an9df3ecc31a0af799@xxxxxxxxxxxxxx>
"Mihai Criveti" wrote:
> Hi. I'm trying to build zsh 4.3.6 on AIX 5300-08-01 using gcc 4.2.4
> and Autoconf 2.61. Configure works fine, but the build fails after
> some time with:
>
> gcc -c -I. -DHAVE_CONFIG_H -Wall -Wmissing-prototypes -O2 -o
> module.o module.c
> module.c: In function 'load_and_bind':
> module.c:1453: warning: assignment from incompatible pointer type
> module.c:1454: error: 'struct module' has no member named 'flags'
> module.c:1455: error: 'struct module' has no member named 'flags'
> make: 1254-004 The error code from the last command is 1.
This should fix that bit... unfortunately I am writing this completely
blind for AIX, so please report any further problems.
Index: Src/module.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/module.c,v
retrieving revision 1.38
diff -u -r1.38 module.c
--- Src/module.c 8 May 2008 14:04:52 -0000 1.38
+++ Src/module.c 4 Aug 2008 15:08:36 -0000
@@ -1450,9 +1450,9 @@
int i, err = loadbind(0, (void *) addbuiltin, ret);
for (i = 0; i < modulestab->hsize && !err; i++) {
for (m = (Module)modulestab->nodes[i]; m && !err;
- m = m->node.next) {
- if (!(m->flags & MOD_ALIAS) &&
- m->u.handle && !(m->flags & MOD_LINKED))
+ m = (Module)m->node.next) {
+ if (!(m->node.flags & MOD_ALIAS) &&
+ m->u.handle && !(m->node.flags & MOD_LINKED))
err |= loadbind(0, m->u.handle, ret);
}
}
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author