zsh-users
 help / color / mirror / code / Atom feed
* Build errors
@ 2004-11-16 13:57 kynn
  2004-11-17 14:21 ` Stephane Chazelas
  0 siblings, 1 reply; 3+ messages in thread
From: kynn @ 2004-11-16 13:57 UTC (permalink / raw)
  To: zsh-users





I want to be able to do

  autoload colors zsh/terminfo

in a script, but my ISP does not support the zsh terminfo module, so I
tried compiling zsh from source.  After running ./configure I modified
the link parameter terminfo line in config.modules from

name=zsh/terminfo modfile=Src/Modules/terminfo.mdd link=static auto=yes load=yes

to

name=zsh/terminfo modfile=Src/Modules/terminfo.mdd link=dynamic auto=yes load=yes

My goal was to put the compiled terminfo.so file in my $HOME/.zmodules
directory, and add this directory to my modules_path variable.  (Then
I would discard the rest of my compiled zsh, and use the zsh provided
by my ISP in /usr/local/bin.)

When I ran make, it tripped on terminfo:

  gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o terminfo..o terminfo.c
  In file included from terminfo.c:53:
  /usr/include/curses.h:452: `underscore' redeclared as different kind of symbol
  ../../Src/init.epro:6: previous declaration of `underscore'
  terminfo.c: In function `bin_echoti':
  terminfo.c:78: warning: implicit declaration of function `tigetnum'
  terminfo.c:83: warning: implicit declaration of function `tigetflag'
  terminfo.c:95: warning: implicit declaration of function `tigetstr'
  terminfo.c:121: warning: implicit declaration of function `putp'
  terminfo.c:123: warning: implicit declaration of function `tparm'
  terminfo.c: In function `boot_':
  terminfo.c:385: warning: implicit declaration of function `setupterm'
  *** Error code 1

  Stop.

There seems to be some conflict with the local system's curses.h file.
Is there any way I can fix this?

Here are some system details:

  % uname -ar
  NetBSD my_isp3.my_isp.com 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (MY_ISP-USER) #0: Thu Feb 26 14:11:15 EST 2004     root@some_host.my_isp.com:/devel/NO-BACKUPS/release-1.5-20020917/src/sys/arch/i386/compile/MY_ISP-USER i386

Thanks!

k

PS: Please Cc: me in your replies


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build errors
  2004-11-16 13:57 Build errors kynn
@ 2004-11-17 14:21 ` Stephane Chazelas
  2004-11-17 14:55   ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: Stephane Chazelas @ 2004-11-17 14:21 UTC (permalink / raw)
  To: kynn; +Cc: zsh-users

On Tue, Nov 16, 2004 at 08:57:43AM -0500, kynn@panix.com wrote:
[...]
>   gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC -o terminfo..o terminfo.c
>   In file included from terminfo.c:53:
>   /usr/include/curses.h:452: `underscore' redeclared as different kind of symbol
>   ../../Src/init.epro:6: previous declaration of `underscore'
>   terminfo.c: In function `bin_echoti':
>   terminfo.c:78: warning: implicit declaration of function `tigetnum'
>   terminfo.c:83: warning: implicit declaration of function `tigetflag'
>   terminfo.c:95: warning: implicit declaration of function `tigetstr'
>   terminfo.c:121: warning: implicit declaration of function `putp'
>   terminfo.c:123: warning: implicit declaration of function `tparm'
>   terminfo.c: In function `boot_':
>   terminfo.c:385: warning: implicit declaration of function `setupterm'
>   *** Error code 1
[...]

You may actually need ncurses for the terminfo module to work.

But zsh configure may not be accurate enough in its searching of
supported libraries. It shouldn't have selected "curses" here as
it has no support for "tigetstr..."

-- 
Stéphane


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Build errors
  2004-11-17 14:21 ` Stephane Chazelas
@ 2004-11-17 14:55   ` Peter Stephenson
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Stephenson @ 2004-11-17 14:55 UTC (permalink / raw)
  To: zsh-users

Stephane Chazelas wrote:
> On Tue, Nov 16, 2004 at 08:57:43AM -0500, kynn@panix.com wrote:
> [...]
> >   gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2 -fPIC
>  -o terminfo..o terminfo.c
> >   In file included from terminfo.c:53:
> >   /usr/include/curses.h:452: `underscore' redeclared as different kind of s
> ymbol
> >   ../../Src/init.epro:6: previous declaration of `underscore'
> >   terminfo.c: In function `bin_echoti':
> >   terminfo.c:78: warning: implicit declaration of function `tigetnum'
> >   terminfo.c:83: warning: implicit declaration of function `tigetflag'
> >   terminfo.c:95: warning: implicit declaration of function `tigetstr'
> >   terminfo.c:121: warning: implicit declaration of function `putp'
> >   terminfo.c:123: warning: implicit declaration of function `tparm'
> >   terminfo.c: In function `boot_':
> >   terminfo.c:385: warning: implicit declaration of function `setupterm'
> >   *** Error code 1
> [...]
> 
> You may actually need ncurses for the terminfo module to work.
> 
> But zsh configure may not be accurate enough in its searching of
> supported libraries. It shouldn't have selected "curses" here as
> it has no support for "tigetstr..."

I suspect the library, as opposed to the header, actually does.  The
rule in terminfo.mdd is that the file is only compiled if
tigetflag is found; it doesn't bother checking for all the
tiget... functions since either all or none should be available.  This
suggests it's only the header that's defective, or at least not what the
configuration is assuming.  This changed in 4.2; before that the tests
were a bit more hit and miss.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited. 
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-11-17 14:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-16 13:57 Build errors kynn
2004-11-17 14:21 ` Stephane Chazelas
2004-11-17 14:55   ` Peter Stephenson

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).