Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: SunOS build failures for the last 2 days



On Wednesday 17 August 2005 19:08, Vin Shelton wrote:
> "./utils.epro", line 14: warning: undefined or missing type for: c
[...]
> extern mod_import_function wchar_t*wcs_nicechar _((wint_t c));
>
> Here are the configure options I'm using:
>
> "'--prefix=/u/sheltonv/software/SunOS-5.8/zsh-2005-08-17'
> '--datadir=/u/sheltonv/software/SunOS-5.8/share' '--enable-zsh-mem'
> '--enable-etcdir=/u/sheltonv/software/SunOS-5.8/etc'
> '--enable-dynamic' '--with-tcsetpgrp' '--disable-nls'
> '--disable-locale' 'CC=cc' 'CFLAGS=-fast -xarch=v8plusa -xchip=ultra2i
> -xcache=16/32/1:512/64/1'"
>

Now zsh defaults to UNICODE support if available; does not Solaris 8 have it?

Anyway this patch plays it safe; does it help? (Offhand - configure.ac is 
using obsolete AC_CHECK_TYPE invocation)

Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.38
diff -u -p -r1.38 configure.ac
--- configure.ac        16 Aug 2005 23:16:27 -0000      1.38
+++ configure.ac        17 Aug 2005 16:50:32 -0000
@@ -847,6 +847,7 @@ AC_CHECK_TYPE(ino_t, unsigned long)
 AC_TYPE_MODE_T
 AC_TYPE_UID_T
 AC_TYPE_SIZE_T
+AC_CHECK_TYPES([wint_t])

 dnl ------------------------------------------------
 dnl Check size of long and try to find a 64-bit type
@@ -2079,6 +2080,7 @@ AC_ARG_ENABLE(multibyte,
 int main() {
 #if defined(HAVE_WCHAR_H) && defined(HAVE_WCTOMB) \
  && defined(HAVE_MBRTOWC) && defined(HAVE_WCRTOMB) \
+ && defined(HAVE_WINT_T) \
  && defined (__STDC_ISO_10646__)
     return 0;
 #else

Attachment: pgpKlNv9SGOZf.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author