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 13095
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- 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, 4 Aug 2008 17:17:07 +0100
- In-reply-to: <22c159aa0808040903w2f0fc8a9pbb26d83c09da4205@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <22c159aa0808040635u17488c7an9df3ecc31a0af799@xxxxxxxxxxxxxx> <200808041512.m74FC6DB022841@xxxxxxxxxxxxxx> <22c159aa0808040903w2f0fc8a9pbb26d83c09da4205@xxxxxxxxxxxxxx>
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,
zsh_cv_no_xopen,
[[case "$host_os" in
- *openbsd*|*freebsd5*|*freebsd6.[012]*)
+ *openbsd*|*freebsd5*|*freebsd6.[012]*|*aix*)
zsh_cv_no_xopen=yes
;;
*)
--
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