zsh-workers
 help / color / mirror / code / Atom feed
From: Pea <zsh@raveland.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: 4.3.4-dev-4 and 4.2.6-dev-2 available
Date: Fri, 14 Dec 2007 10:45:23 +0100	[thread overview]
Message-ID: <20071214104523.32bf017b@portable.raveland.priv> (raw)
In-Reply-To: <20071213181050.55477e48@news01>

Le Thu, 13 Dec 2007 18:10:50 +0000,
Peter Stephenson <pws@csr.com> a écrit :

> This suggests the right library to use on OpenBSD is curses, right?
> In that case I hope the following patch works.  We won't be able to
> test this...  it would be great if you were able to ASAP.  I can send
> the corresponding configure if you need it.
> 
> You should also find it compiles with --with-term-lib=curses.
> 
[...]
I tried your patch, dont it doesn't work.

Case 1 give me: 
./configure --enable-zsh-mem --enable-zsh-secure-free
--enable-maildir-support --with-tcsetpgrp --enable-multibyte

zsh configuration
-----------------
zsh version               : 4.3.4-dev-4
host operating system     : i386-unknown-openbsd4.2
source code location      : .
compiler                  : gcc
preprocessor flags        : 
executable compiler flags :  -Wall -Wmissing-prototypes -O2
module compiler flags     :  -Wall -Wmissing-prototypes -O2 -fPIC
executable linker flags   :   -s -Wl,-E
module linker flags       :   -s -shared -fPIC
library flags             : -ltermcap -lm  -lc
installation basename     : zsh
binary install path       : /usr/local/bin
man page install path     : ${prefix}/share/man
info install path         : ${prefix}/share/info
functions install path    : ${prefix}/share/zsh/4.3.4-dev-4/functions

Next i do : gmake

[...]

rm -f clone.so
gcc  -s -shared -fPIC -o clone.so   clone..o    -ltermcap -lm  -lc 
nawk -f ./curses_keys.awk /usr/include/ncurses.h /dev/null
>curses_keys.h gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall
>-Wmissing-prototypes -O2 -fPIC -o curses..o curses.c
In file included from /usr/include/curses.h:14,
                 from curses.c:46:
/usr/include/ncurses.h:251: error: conflicting types for `wchar_t'
/usr/include/stddef.h:54: error: previous declaration of `wchar_t'
/usr/include/ncurses.h:254: error: conflicting types for `wint_t'
/usr/include/stddef.h:59: error: previous declaration of `wint_t'
gmake[3]: *** [curses..o] Error 1
gmake[3]: Leaving directory
`/usr/ports/shells/zsh_pea/w-zsh-4.3.4-dev-4/zsh-4.3.4-dev-4/Src/Modules'
gmake[2]: *** [modules] Error 1 gmake[2]: Leaving directory
`/usr/ports/shells/zsh_pea/w-zsh-4.3.4-dev-4/zsh-4.3.4-dev-4/Src'
gmake[1]: *** [modules] Error 2 gmake[1]: Leaving directory
`/usr/ports/shells/zsh_pea/w-zsh-4.3.4-dev-4/zsh-4.3.4-dev-4/Src'
gmake: *** [all] Error 1




Case 2 give me:
./configure --enable-zsh-mem --enable-zsh-secure-free
--enable-maildir-support --with-tcsetpgrp --enable-multibyte
--with-term-lib=curses

zsh configuration
zsh version               : 4.3.4-dev-4
host operating system     : i386-unknown-openbsd4.2
source code location      : .
compiler                  : gcc
preprocessor flags        : 
executable compiler flags :  -Wall -Wmissing-prototypes -O2
module compiler flags     :  -Wall -Wmissing-prototypes -O2 -fPIC
executable linker flags   :   -s -Wl,-E
module linker flags       :   -s -shared -fPIC
library flags             : -lcurses -lm  -lc
installation basename     : zsh
binary install path       : /usr/local/bin
man page install path     : ${prefix}/share/man
info install path         : ${prefix}/share/info
functions install path    : ${prefix}/share/zsh/4.3.4-dev-4/functions

gmake

[...]

rm -f clone.so
gcc  -s -shared -fPIC -o clone.so   clone..o    -lcurses -lm  -lc 
gcc -c -I.  -DHAVE_CONFIG_H -DMODULE -Wall -Wmissing-prototypes -O2
-fPIC -o curses..o curses.c In file included
from /usr/include/curses.h:14, from curses.c:46:
/usr/include/ncurses.h:251: error: conflicting types for `wchar_t'
/usr/include/stddef.h:54: error: previous declaration of `wchar_t'
/usr/include/ncurses.h:254: error: conflicting types for `wint_t'
/usr/include/stddef.h:59: error: previous declaration of `wint_t'
gmake[3]: *** [curses..o] Error 1
gmake[3]: Leaving directory
`/usr/ports/shells/zsh_pea/w-zsh-4.3.4-dev-4/zsh-4.3.4-dev-4/Src/Modules'
gmake[2]: *** [modules] Error 1 gmake[2]: Leaving directory
`/usr/ports/shells/zsh_pea/w-zsh-4.3.4-dev-4/zsh-4.3.4-dev-4/Src'
gmake[1]: *** [modules] Error 2 gmake[1]: Leaving directory
`/usr/ports/shells/zsh_pea/w-zsh-4.3.4-dev-4/zsh-4.3.4-dev-4/Src'
gmake: *** [all] Error 1


Just for informations, /usr/include/curses.h contains:

/*      $OpenBSD: curses.h,v 1.3 2003/06/17 21:33:53 millert Exp $
*/

/*
 * Placed in the public domain by Todd C. Miller
<Todd.Miller@courtesan.com>
 * on June 17, 2003.
 */

#ifndef _CURSES_H_
#define _CURSES_H_

#ifdef _USE_OLD_CURSES_
#include <ocurses.h>
#else
#include <ncurses.h>
#endif

#endif /* _CURSES_H_ */

Hope it can help..


  reply	other threads:[~2007-12-14  9:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <22582.1197372038@csr.com>
     [not found] ` <20071213160915.4bcabae3@raveland.org>
2007-12-13 18:10   ` Peter Stephenson
2007-12-14  9:45     ` Pea [this message]
2007-12-14 10:23       ` Peter Stephenson
     [not found]         ` <20071214133035.2cf97761@portable.raveland.priv>
2007-12-14 13:04           ` Peter Stephenson
     [not found]             ` <20071214151926.5beb4d28@portable.raveland.priv>
2007-12-14 15:04               ` Peter Stephenson
2007-12-14 15:36             ` Clint Adams
     [not found] ` <200712111541.lBBFfEhn032580@news01.csr.com>
     [not found]   ` <071211083912.ZM16857@torch.brasslantern.com>
     [not found]     ` <200712111844.41099.ismail@pardus.org.tr>
2007-12-13 21:08       ` Peter Stephenson
2007-12-13 21:22         ` Ismail Dönmez
     [not found] ` <20071211235807.GB10374@prunille.vinc17.org>
     [not found]   ` <200712120948.lBC9motE009939@news01.csr.com>
     [not found]     ` <20071214165524.GA13214@prunille.vinc17.org>
2007-12-14 17:45       ` History file locking (was Re: 4.3.4-dev-4 and 4.2.6-dev-2 available) Peter Stephenson
2007-12-14 18:01         ` Vincent Lefevre

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=20071214104523.32bf017b@portable.raveland.priv \
    --to=zsh@raveland.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).