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

Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC



Hi Peter,

first, thanks for the effort. I have applied the patch
and reran the testsuite.

Am 26.02.2008 um 15:14 schrieb Peter Stephenson:
On Tue, 26 Feb 2008 14:18:14 +0100
Dagobert Michelsen <dam@xxxxxxxxxxxxx> wrote:
I am building zsh 4.3.5 on Solaris 10 x86 with the
Sun Studio 12 compiler and I have some failed tests
in the teststuite:
...
./A03quoting.ztst: starting.
Test ./A03quoting.ztst failed: bad status 1, expected 0 from:
   print '<\u0041>'
   printf '%s\n' $'<\u0042>'
   print '<\u0043>'
   printf '%s\n' $'<\u0044>'
Error output:
(eval):1: cannot do charset conversion

./A03quoting.ztst: starting.
Test ./A03quoting.ztst failed: bad status 1, expected 0 from:
  print '<\u0041>'
  printf '%s\n' $'<\u0042>'
  print '<\u0043>'
  printf '%s\n' $'<\u0044>'
Error output:
(eval):1: cannot do charset conversion (iconv failed)
Was testing: \u in both print and printf

...
./D07multibyte.ztst: starting.
Testing multibyte with locale en_US.UTF-8
*** /tmp/zsh.ztst.out.19793     Tue Feb 26 08:06:28 2008
--- /tmp/zsh.ztst.tout.19793    Tue Feb 26 08:06:28 2008
***************
*** 1,4 ****
! OK
! OK
! OK
! OK
--- 1,4 ----
! Failed: no error message and no question mark
! Failed: no error message and no question mark
! Failed: no error message and no question mark
! Failed: no error message and no question mark
Test ./D07multibyte.ztst failed: output differs from expected as

./D07multibyte.ztst: starting.
Testing multibyte with locale en_US.UTF-8
*** /tmp/zsh.ztst.out.12712     Tue Feb 26 09:35:42 2008
--- /tmp/zsh.ztst.tout.12712    Tue Feb 26 09:35:42 2008
***************
*** 1,4 ****
! OK
! OK
! OK
! OK
--- 1,4 ----
! Failed: no error message and no question mark
! Failed: no error message and no question mark
! Failed: no error message and no question mark
! Failed: no error message and no question mark
Test ./D07multibyte.ztst failed: output differs from expected as shown above for:
  testfn() { (LC_ALL=C; print $'\u00e9') }
  repeat 4 testfn 2>&1 | while read line; do
    if [[ $line = *"character not in range"* ]]; then
      print OK
    elif [[ $line = "?" ]]; then
      print OK
    else
      print Failed: no error message and no question mark
    fi
  done
  true
Was testing: error handling in Unicode quoting


This means the it hasn't found either iconv or any other library to do
character conversion. (The error message is suppressed in the second case but there's a good chance it's the same error.) The shell has two basic
ways of doing this:

(i) compile environment directly supports ISO 10646
(ii) libraries support nl_langinfo(CODESET) and
     (a) the current locale uses UTF-8 so the shell
         can do a trivial conversion to UTF-8.
     (b) iconv() is available in -liconv.

(i) or (ii) are handled at compile time. The choice between (ii) (a) and
(ii)(b) is handled at run time so long as nl_langinfo(CODESET) is
available.  I don't think (ii)(a) applies in these tests, so this
presumably means both that the environment doesn't support ISO 10646, and
that iconv wasn't found.

At least the dynamic binding is working:

thor% ldd work/dam-thor.d/zsh-4.3.5/Src/zsh
        libpcre.so.0 =>  /opt/csw/lib/i386/libpcre.so.0
        libiconv.so.2 =>         /opt/csw/lib/i386/libiconv.so.2
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libncurses.so.5 =>       /opt/csw/lib/i386/libncurses.so.5
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2

It may be of interest that I am doing a "package build" with
DESTDIR installation as following:

cd work/dam-thor.d/zsh-4.3.5 && prefix="/opt/csw" exec_prefix="/opt/ csw" bindir="/opt/csw/bin" optbindir="/opt/csw/bin/i386" sbindir="/ opt/csw/sbin" libexecdir="/opt/csw/libexec" datadir="/opt/csw/share" sysconfdir="/opt/csw/etc" sharedstatedir="/opt/csw/share" localstatedir="/opt/csw/var" libdir="/opt/csw/lib" optlibdir="/opt/ csw/lib/i386" infodir="/opt/csw/share/info" lispdir="/opt/csw/share/ emacs/site-lisp" includedir="/opt/csw/include" mandir="/opt/csw/share/ man" docdir="/opt/csw/share/doc" sourcedir="/opt/csw/src" CPPFLAGS=" - I/export/medusa/dam/build/build.5.8-i386/opt/csw/include -I/opt/csw/ include" CFLAGS="-I/opt/csw/include/ncurses -xO3 -xtarget=generic - xarch=generic -I/export/medusa/dam/build/build.5.8-i386/opt/csw/ include -I/opt/csw/include " CXXFLAGS="-xO3 -xtarget=generic - xarch=generic -I/export/medusa/dam/build/build.5.8-i386/opt/csw/ include -I/opt/csw/include" LDFLAGS=" -L/export/medusa/dam/build/ build.5.8-i386/opt/csw/lib -L/opt/csw/lib" ASFLAGS="" OPTFLAGS="-xO3 - xtarget=generic -xarch=generic" CC="cc" CXX="CC" LD_OPTIONS="-R/opt/ csw/lib/\$ISALIST -R/opt/csw/lib" CC_HOME="/opt/studio/SOS11/ SUNWspro" CC_VERSION="Sun C 5.8 Patch 121016-07 2007/10/03" CXX_VERSION="Sun C++ 5.8 Patch 121018-11 2007/05/02" VENDORNAME="" VENDORSTAMP="" GARCH="i386" GAROSREL="5.8" GARPACKAGE="zsh" PKG_CONFIG_PATH="/export/medusa/dam/build/build.5.8-i386/opt/csw/lib/ pkgconfig:/opt/csw/lib/pkgconfig:" DESTDIR="/export/medusa/dam/build/ build.5.8-i386" ./configure --prefix=/opt/csw --exec_prefix=/opt/csw --bindir=/opt/csw/bin --sbindir=/opt/csw/sbin --libexecdir=/opt/csw/ libexec --datadir=/opt/csw/share --sysconfdir=/opt/csw/etc -- sharedstatedir=/opt/csw/share --localstatedir=/opt/csw/var --libdir=/ opt/csw/lib --infodir=/opt/csw/share/info --includedir=/opt/csw/ include --mandir=/opt/csw/share/man --enable-maildir-support --enable- fndir=/opt/csw/share/zsh/functions --enable-pcre

zsh configuration
-----------------
zsh version               : 4.3.5
host operating system     : i386-pc-solaris2.8
source code location      : .
compiler                  : cc
preprocessor flags : -I/export/medusa/dam/build/build.5.8- i386/opt/csw/include -I/opt/csw/include -I/opt/csw/include executable compiler flags : -I/opt/csw/include/ncurses -xO3 - xtarget=generic -xarch=generic -I/export/medusa/dam/build/build.5.8- i386/opt/csw/include -I/opt/csw/include module compiler flags : -I/opt/csw/include/ncurses -xO3 - xtarget=generic -xarch=generic -I/export/medusa/dam/build/build.5.8- i386/opt/csw/include -I/opt/csw/include -KPIC executable linker flags : -L/export/medusa/dam/build/build.5.8- i386/opt/csw/lib -L/opt/csw/lib module linker flags : -L/export/medusa/dam/build/build.5.8- i386/opt/csw/lib -L/opt/csw/lib -G library flags : -L/opt/csw/lib -lpcre -liconv -lsocket - ldl -lncurses -lm -lc
installation basename     : zsh
binary install path       : /opt/csw/bin
man page install path     : /opt/csw/share/man
info install path         : /opt/csw/share/info
functions install path    : /opt/csw/share/zsh/functions
See config.modules for installed modules and functions.


If I can do anything to help resolving these testing issues let me know.

Thanks!

  -- Dagobert Michelsen



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