zsh-workers
 help / color / mirror / code / Atom feed
From: Mads Martin Joergensen <mmj@suse.de>
To: Zsh hackers list <zsh-workers@sunsite.dk>
Subject: Re: PATCH: terminfo horor
Date: Thu, 18 Dec 2003 22:58:10 +0100	[thread overview]
Message-ID: <20031218215810.GB8263@suse.de> (raw)
In-Reply-To: <15381.1071776149@csr.com>

* Peter Stephenson <pws@csr.com> [Dec 18. 2003 20:37]:
> > How can I test this patch? I can build zsh packages both with and
> > without ncurses, but I don't know how to test if they work or not?
> > 
> > If all the make test tests are successful?
> 
> If you don't have curses, the shell should build successfully without
> building terminfo.so --- nothing more to test.

Ok, I've tweaked the buildenvironment to not having ncurses-devel, and
without it:

gcc  -s -rdynamic -o zsh main.o  `cat stamp-modobjs`   -ldl -lnsl -lm -lc
utils.o(.text+0x2aa9): In function `gettempname':
: the use of `mktemp' is dangerous, better use `mkstemp'
init.o(.text+0x1277): In function `init_term':
: undefined reference to `tgetent'
init.o(.text+0x132a): In function `init_term':
: undefined reference to `tgetstr'
init.o(.text+0x1398): In function `init_term':
: undefined reference to `tgetflag'
init.o(.text+0x13af): In function `init_term':
: undefined reference to `tgetnum'
init.o(.text+0x13c6): In function `init_term':
: undefined reference to `tgetnum'
prompt.o(.text+0x24f6): In function `tsetcap':
: undefined reference to `tputs'
prompt.o(.text+0x2560): In function `tsetcap':
: undefined reference to `tputs'
prompt.o(.text+0x2637): In function `tsetcap':
: undefined reference to `tgetnum'
prompt.o(.text+0x2693): In function `tsetcap':
: undefined reference to `tgetnum'
prompt.o(.text+0x26d5): In function `tsetcap':
: undefined reference to `tputs'
collect2: ld returned 1 exit status
make[1]: *** [zsh] Error 1

zsh configuration
-----------------
zsh version               : 4.1.1
host operating system     : x86_64-suse-linux
source code location      : .
compiler                  : gcc
preprocessor flags        : 
executable compiler flags : -O2 -Wall -pipe
module compiler flags     : -O2 -Wall -pipe -fPIC
executable linker flags   :   -s -rdynamic
module linker flags       :   -s -shared
library flags             : -ldl -lnsl -lm  -lc
installation basename     : zsh
binary install path       : //bin
man page install path     : /usr/share/man
info install path         : /usr/share/info
functions install path    : /usr/share/zsh/4.1.1/functions


> If you do have curses, it should build successfully and produce a
> terminfo.so which, after installation, is loadable.  You can test it
> from the newly installed shell like this:
> 
> zmodload zsh/terminfo
> echoti cols
> 
> which should output a number, but anything other than a linking error or
> `feature not available' is good news.

This is with ncurses-devel in the build environment:

# zsh
# zmodload zsh/terminfo
# echoti cols
80

So that works at least.

> Any feedback is very useful.

Hope you can use it. It's build on a SuSE Linux 9.0 on a dual Opteron,
and the breakage is confirmed and look the same on SuSE Linux 9.0 i386.

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                -- A. P. J.


  reply	other threads:[~2003-12-18 22:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-18 17:05 Peter Stephenson
2003-12-18 18:52 ` Mads Martin Joergensen
2003-12-18 19:35   ` Peter Stephenson
2003-12-18 21:58     ` Mads Martin Joergensen [this message]
2003-12-19  8:59 ` autoconf 2.5 (Re: PATCH: terminfo horor) Oliver Kiddle
2003-12-19 11:14   ` Peter Stephenson
2003-12-19 12:41     ` Mads Martin Joergensen

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=20031218215810.GB8263@suse.de \
    --to=mmj@suse.de \
    --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).