From: Dagobert Michelsen <dam@blastwave.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: Failed tests of zsh 4.3.5 in Solaris 10 w/Sun Studio 12 CC
Date: Tue, 26 Feb 2008 15:42:19 +0100 [thread overview]
Message-ID: <BD1EA7D6-C784-4ED9-9558-5B655CBC5096@blastwave.org> (raw)
In-Reply-To: <20080226141459.76dc362c@news01>
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@blastwave.org> 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
next prev parent reply other threads:[~2008-02-26 14:42 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 13:18 Dagobert Michelsen
2008-02-26 14:14 ` Peter Stephenson
2008-02-26 14:42 ` Dagobert Michelsen [this message]
2008-02-26 14:57 ` Peter Stephenson
2008-02-26 15:18 ` Dagobert Michelsen
2008-02-26 16:10 ` * " Peter Stephenson
2008-02-26 17:37 ` Oliver Kiddle
2008-02-27 11:29 ` Peter Stephenson
2008-02-27 16:16 ` Bart Schaefer
2008-02-29 9:53 ` Oliver Kiddle
2008-03-03 12:08 ` Peter Stephenson
2008-03-03 12:43 ` Dagobert Michelsen
2008-03-03 12:59 ` Peter Stephenson
2008-02-26 18:08 ` Peter Stephenson
2008-02-26 18:12 ` İsmail Dönmez
2008-02-26 19:19 ` Dagobert Michelsen
2008-02-26 19:47 ` Dagobert Michelsen
2008-02-26 20:42 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BD1EA7D6-C784-4ED9-9558-5B655CBC5096@blastwave.org \
--to=dam@blastwave.org \
--cc=pws@csr.com \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).