zsh-users
 help / color / mirror / code / Atom feed
From: "Paul Johnson" <paul@pjcj.net>
To: "Peter Stephenson" <pws@csr.com>
Cc: zsh-users@sunsite.dk (zsh users list)
Subject: Re: zsh 4.0.7 and 4.1.1 released
Date: Fri, 20 Jun 2003 12:19:55 +0200 (CEST)	[thread overview]
Message-ID: <44014.193.134.254.145.1056104395.squirrel@wesley.pjcj.net> (raw)
In-Reply-To: <19145.1056019282@csr.com>


Peter Stephenson said:

> I have uploaded zsh 4.0.7 and zsh 4.1.1 to ftp://ftp.zsh.org/pub/ .

I was hoping to track this down and fix it properly, but unfortunately I
won't have the time, so I thought it better just to report what I have
found.  If it seems to be simply a problem with my configuration then
don't worry about it, though 4.0.4 compiled without problem.

Apologies if this mailer wraps things badly, and thanks for all your work
and for a great shell.

    zsh configuration
    -----------------
    zsh version               : 4.1.1
    host operating system     : sparc-sun-solaris2.8
    source code location      : .
    compiler                  : gcc
    preprocessor flags        : -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
    executable compiler flags :  -Wall -Wmissing-prototypes -O2
    module compiler flags     :  -Wall -Wmissing-prototypes -O2 -fPIC
    executable linker flags   :   -s
    module linker flags       :   -s -G
    library flags             : -lsocket -ldl -lnsl -lcurses -lm  -lc
    installation basename     : zsh
    binary install path       : /usr/local/home/pidjjq/opt/bin
    man page install path     : /usr/local/home/pidjjq/opt/man
    info install path         : /usr/local/home/pidjjq/opt/info
    functions install path    :
/usr/local/home/pidjjq/opt/share/zsh/4.1.1/functions
    See config.modules for installed modules and functions.

    gcc version 3.1 compiled on Solaris 2.6

I tried compiling 4.1.1 on Solaris 2.8 and hit the following error:

    gcc -c -I. -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CONFIG_H
-DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o terminfo..o
terminfo.c
    In file included from
/var/spool/pkg/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/include/curses.h:783,
                     from terminfo.c:48:
    /usr/local/include/unctrl.h:57: syntax error before "char"
    /usr/local/include/unctrl.h:57: conflicting types for `unctrl'
    /var/spool/pkg/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/include/curses.h:297:
previous declaration of `unctrl'
    *** Error code 1
    make: Fatal error: Command failed for target `terminfo..o'
    Current working directory
/usr/local/home/pidjjq/g/build/zsh-4.1.1/Src/Modules
    *** Error code 1
    make: Fatal error: Command failed for target `modules'


/usr/local/include/unctrl.h:57 is:

    extern NCURSES_CONST char *unctrl(chtype);

and NCURSES_CONST is not defined.

/usr/local/include/ncurses.h, /usr/local/include/curses.h,
/usr/local/include/term.h and /usr/local/include/termcap.h have the
line:

    #define NCURSES_CONST /*nothing*/

/var/spool/pkg/gcc-3.1/lib/gcc-lib/sparc-sun-solaris2.6/3.1/include/curses.h:297
is the last line of:

    extern  char    *longname(void),        /* long name of terminal */
                    *termname(void),        /* effective terminal name */
                    *keyname(int),  /* name of token returned by wgetch() */
                    *slk_label(int),
                    erasechar(void),
                    killchar(void),
                    *unctrl(int);

but as a quick hack I defined the _UNCTRL_H guard and the compilation
completed:

make check gave the following errors, though:

cd Test ; make check
if test -n "gcc"; then \
  cd .. && DESTDIR= \
  make MODDIR=`pwd`/Test/Modules install.modules > /dev/null; \
fi
mkdir /usr/local/home/pidjjq/g/build/zsh-4.1.1/Test/Modules
mkdir /usr/local/home/pidjjq/g/build/zsh-4.1.1/Test/Modules/zsh
mkdir /usr/local/home/pidjjq/g/build/zsh-4.1.1/Test/Modules/zsh/net
for f in ./*.ztst; do \
  ../Src/zsh +Z -f ./ztst.zsh $f; \
done
./A01grammar.ztst: starting.
This test hangs the shell when it fails...
./A01grammar.ztst: all tests successful.
./A02alias.ztst: starting.
./A02alias.ztst: all tests successful.
./A03quoting.ztst: starting.
./A03quoting.ztst: all tests successful.
./A04redirect.ztst: starting.
./A04redirect.ztst: all tests successful.
./A05execution.ztst: starting.
./A05execution.ztst: all tests successful.
./A06assign.ztst: starting.
./A06assign.ztst: all tests successful.
./B01cd.ztst: starting.
./B01cd.ztst: all tests successful.
./B02typeset.ztst: starting.
./B02typeset.ztst: all tests successful.
./B03print.ztst: starting.
./B03print.ztst: all tests successful.
./B04read.ztst: starting.
./B04read.ztst: all tests successful.
./C01arith.ztst: starting.
./C01arith.ztst: all tests successful.
./C02cond.ztst: starting.
./C02cond.ztst: all tests successful.
./C03traps.ztst: starting.
This test takes at least three seconds...
This test, too, takes at least three seconds...
./C03traps.ztst: all tests successful.
./C04funcdef.ztst: starting.
./C04funcdef.ztst: all tests successful.
./D01prompt.ztst: starting.
./D01prompt.ztst: all tests successful.
./D02glob.ztst: starting.
./D02glob.ztst: all tests successful.
./D03procsubst.ztst: starting.
./D03procsubst.ztst: all tests successful.
./D04parameter.ztst: starting.
./D04parameter.ztst: all tests successful.
./D05array.ztst: starting.
./D05array.ztst: all tests successful.
./D06subscript.ztst: starting.
./D06subscript.ztst: all tests successful.
./E01options.ztst: starting.
*** /tmp/zsh.ztst.err.20526     Thu Jun 19 13:31:49 2003
--- /tmp/zsh.ztst.terr.20526    Thu Jun 19 13:31:49 2003
***************
*** 1,3 ****
! +(eval):3> fn
! +fn:0> print message
! +(eval):4> unsetopt xtrace
--- 1,3 ----
! trace (eval):3> fn
! trace fn:0> print message
! trace (eval):4> unsetopt xtrace
Test ./E01options.ztst failed: error output differs from expected as shown
above for:
  fn() { print message; }
  setopt xtrace
  fn
  unsetopt xtrace
  fn
Was testing: XTRACE option
./E01options.ztst: test failed.
./E02xtrace.ztst: starting.
*** /tmp/zsh.ztst.out.20839     Thu Jun 19 13:31:50 2003
--- /tmp/zsh.ztst.tout.20839    Thu Jun 19 13:31:50 2003
***************
*** 18,26 ****
  Tracing: function 2>file
  Tracing: source
  Tracing: source 2>file
! +(eval):7> print 'Tracing: ( builtin ) 2>file'
! +(eval):9> cat
! +(eval):11> print 'Tracing: { builtin } 2>file'
! +(eval):13> cat
! +(eval):15> print 'Tracing: do builtin done 2>file'
! +(eval):17> cat
--- 18,26 ----
  Tracing: function 2>file
  Tracing: source
  Tracing: source 2>file
! trace (eval):7> print 'Tracing: ( builtin ) 2>file'
! trace (eval):9> cat
! trace (eval):11> print 'Tracing: { builtin } 2>file'
! trace (eval):13> cat
! trace (eval):15> print 'Tracing: do builtin done 2>file'
! trace (eval):17> cat
Test ./E02xtrace.ztst failed: output differs from expected as shown above
for:
  set -x
  print 'Tracing: builtin'
  print 'Tracing: builtin 2>file' 2>xtrace.err
  cat <<<'Tracing: external'
  cat <<<'Tracing: external 2>file' 2>>xtrace.err
  ( print 'Tracing: ( builtin )' )
  ( print 'Tracing: ( builtin ) 2>file' ) 2>>xtrace.err
  ( cat <<<'Tracing: ( external )' )
  ( cat <<<'Tracing: ( external ) 2>file' ) 2>>xtrace.err
  { print 'Tracing: { builtin }' }
  { print 'Tracing: { builtin } 2>file' } 2>>xtrace.err
  { cat <<<'Tracing: { external }' }
  { cat <<<'Tracing: { external } 2>file' } 2>>xtrace.err
  repeat 1 do print 'Tracing: do builtin done'; done
  repeat 1 do print 'Tracing: do builtin done 2>file'; done 2>>xtrace.err
  repeat 1 do cat <<<'Tracing: do external done'; done
  repeat 1 do cat <<<'Tracing: do external done 2>file'; done 2>>xtrace.err
  xtf 'Tracing: function'
  xtf 'Tracing: function 2>file' 2>>xtrace.err
  . ./xt.in 'Tracing: source'
  . ./xt.in 'Tracing: source 2>file' 2>>xtrace.err
  set +x
  cat xtrace.err
Error output:
trace (eval):2> print 'Tracing: builtin'
trace (eval):3> print 'Tracing: builtin 2>file'
trace (eval):4> cat
trace (eval):5> cat
trace (eval):6> print 'Tracing: ( builtin )'
trace (eval):8> cat
trace (eval):10> print 'Tracing: { builtin }'
trace (eval):12> cat
trace (eval):14> print 'Tracing: do builtin done'
trace (eval):16> cat
trace (eval):18> xtf 'Tracing: function'
trace xtf:1> local regression_test_dummy_variable
trace xtf:2> print 'Tracing: function'
trace (eval):19> xtf 'Tracing: function 2>file'
trace xtf:1> local regression_test_dummy_variable
trace xtf:2> print 'Tracing: function 2>file'
trace (eval):20> . ./xt.in 'Tracing: source'
trace ./xt.in:1> print 'Tracing: source'
trace (eval):21> . ./xt.in 'Tracing: source 2>file'
trace ./xt.in:1> print 'Tracing: source 2>file'
trace (eval):22> set +x
Was testing: xtrace with and without redirection
./E02xtrace.ztst: test failed.
./V01zmodload.ztst: starting.
./V01zmodload.ztst: all tests successful.
./V02zregexparse.ztst: starting.
./V02zregexparse.ztst: all tests successful.
./Y01completion.ztst: starting.
./Y01completion.ztst: all tests successful.
./Y02compmatch.ztst: starting.
./Y02compmatch.ztst: all tests successful.
./Y03arguments.ztst: starting.
*** /tmp/zsh.ztst.out.21517     Thu Jun 19 13:32:42 2003
--- /tmp/zsh.ztst.tout.21517    Thu Jun 19 13:32:43 2003
***************
*** 2,8 ****
  line: {tst -o +o }{}
  line: {tst -o +o }{}
  MESSAGE:{no arguments}
! line: {tst +o }{}
! line: {tst +o -o }{}
! line: {tst +o -o }{}
  MESSAGE:{no arguments}
--- 2,10 ----
  line: {tst -o +o }{}
  line: {tst -o +o }{}
  MESSAGE:{no arguments}
! line: {tst -+}{}
! MESSAGE:{no arguments}
! line: {tst -+}{}
! MESSAGE:{no arguments}
! line: {tst -+}{}
  MESSAGE:{no arguments}
Test ./Y03arguments.ztst failed: output differs from expected as shown
above for:
 tst_arguments -+o
 comptest $'tst -\t\t\t\C-w\C-w+\t\t\t'
Was testing: option beginning with + and -.
./Y03arguments.ztst: test failed.
*** Error code 1 (ignored)
rm -rf Modules .zcompdump

-- 
Paul Johnson - paul@pjcj.net
http://www.pjcj.net


      reply	other threads:[~2003-06-20 10:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-19 10:41 Peter Stephenson
2003-06-20 10:19 ` Paul Johnson [this message]

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=44014.193.134.254.145.1056104395.squirrel@wesley.pjcj.net \
    --to=paul@pjcj.net \
    --cc=pws@csr.com \
    --cc=zsh-users@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).