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



"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