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

On Mon, 4 Aug 2008 19:03:09 +0300
"Mihai Criveti" <cmihai@xxxxxxxxx> wrote:
> Thanks Peter, that did the trick for module.c, it compiles. Though
> make fails a bit after that.
> gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2
> -o curses..o curses.c
> In file included from ../../Src/zsh.mdh:18,
>                  from curses.mdh:17,
>                  from curses.c:32:
> ../../Src/zsh.h:1871: error: field 'winsize' has incomplete type
> gmake[3]: *** [curses..o] Error 1

"struct winsize" is used throught the zsh source; this suggests that it's
not being defined in this case because of different code options.  The
obvious candidate is _XOPEN_SOURCE_EXTENDED, which has caused problems on
other systems.

The best I can think of is therefore to turn that off, which requires
rebuilding configure.  Not defining _XOPEN_SOURCE_EXTENDED might have side
effects in curses.

If it's not easy to track down what's going on, it might simply want to set
the "link=no" against the zsh/curses line in config.modules and run "make
prep" before compiling so as not to compile zsh/curses.  It's not currently
required by anything else.

Index: configure.ac
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.106
diff -u -r1.106 configure.ac
--- configure.ac	21 Jul 2008 00:29:49 -0000	1.106
+++ configure.ac	4 Aug 2008 16:11:13 -0000
@@ -679,7 +679,7 @@
 AC_CACHE_CHECK(if _XOPEN_SOURCE_EXTENDED should not be defined,
 [[case "$host_os" in
-  *openbsd*|*freebsd5*|*freebsd6.[012]*)
+  *openbsd*|*freebsd5*|*freebsd6.[012]*|*aix*)

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