Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 4.3.4-dev-4 and 4.2.6-dev-2 available



Le Thu, 13 Dec 2007 18:10:50 +0000,
Peter Stephenson <pws@xxxxxxx> 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@xxxxxxxxxxxxx>
 * 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..



Messages sorted by: Reverse Date, Date, Thread, Author