On Wed, Aug 25, 2010 at 08:48:05AM +0100, Nicholas Marriott wrote:
> Hi
> 
> On Tue, Aug 24, 2010 at 11:05:46PM +0200, Landry Breuil wrote:
> > On Mon, Aug 23, 2010 at 01:04:25PM +0000, Christian Weisgerber wrote:
> > > Landry Breuil <lan...@rhaalovely.net> wrote:
> > > 
> > > > >       http://nicm.ath.cx/~nicholas/ncursesw.tar.gz
> > > > 
> > > > I'll run a bulk with it if noone beats me to it.
> > > 
> > > Here's a list of candidates that are likely to be affected:
> > > 
> > > audio/herrie.log:cc -c ./src/audio_file.c -O2 -pipe  -I/usr/local/include 
> > > -DAPP_NAME=\"herrie\"      -DAPP_VERSION=\"2.2\"     -I/usr/local/include 
> > > -I/usr/local/include/ncursesw     -I/usr/local/include/ncurses 
> > > -DCURSES_HEADER=\<ncurses.h\> -I/usr/local/include/glib-2.0 
> > > -I/usr/local/lib/glib-2.0/include -pthread -I/usr/local/include/glib-2.0 
> > > -I/usr/local/lib/glib-2.0/include -DBUILD_HTTP -DBUILD_SCROBBLER 
> > > -I/usr/local/include -DBUILD_MP3 -DBUILD_RES_INIT -DBUILD_SNDFILE 
> > > -DBUILD_NLS -DBUILD_VORBIS -DBUILD_AO  -o audio_file.o
> > > audio/ncmpc.log:checking for initscr in -lncursesw... no
> > > audio/pms.log:checking for working ncursesw... no
> > > comms/c3270.log:checking for newterm in -lncursesw... no
> > > databases/mysql.log:checking for tgetent in -lncursesw... no
> > > devel/tig.log:checking for ncursesw/ncurses.h... no
> > > editors/zile.log:checking for working ncursesw... no
> > > games/clines.log:checking for initscr in -lncursesw... no
> > > graphics/libcaca.log:checking for initscr in -lncursesw... no
> > > lang/ghc.log:checking for setupterm in -lncursesw... no
> > > lang/swi-prolog.log:checking for main in -lncursesw... no
> > > mail/abook.log:checking for initscr in -lncursesw... no
> > > mail/mutt/snapshot.log:checking for waddnwstr in -lncursesw... no
> > > mail/mutt/stable.log:checking for waddnwstr in -lncursesw... no
> > > misc/dialog.log:checking if you want the wide-curses features... no
> > > misc/lifelines.log:checking for tparm in -lncursesw... no
> > 
> > Fails with ../../src/hdrs/mycurses.h:8:29: error: ncursesw/curses.h: No
> > such file or directory
> 
> I don't think we're going to install this so this needs to be fixed in
> the port I guess.

Yes probably.

> > 
> > > net/mcabber.log:checking for waddnwstr in -lncursesw... no
> > > net/pidgin.log:checking for initscr in -lncursesw... no
> > 
> > fails because it looks for a 'get_wch' #define in ncurses.h
> > all depending ports don't build.. should be wget_wch instead ?
> 
> Hmm. get_wch is a macro but it should be there. Does it define
> _XOPEN_SOURCE_EXTENDED?

The configure test run is more or less:

#define _XOPEN_SOURCE_EXTENDED
#include </usr/include/ncurses.h>

int
main ()
{
#ifndef get_wch
# error get_wch not found!
#endif
;
return 0;
}

conftest.c:126:8: error: #error get_wch not found!

Run make configure in net/pidgin for more details..

> 
> And I just realised I forgot to add the few extra w man pages :-/.
> 
> > 
> > > print/texlive/base.log:checking if you want the wide-curses features... no
> > > productivity/calcurse.log:checking for initscr in -lncursesw... no
> > > shells/zsh.log:checking for ncursesw/ncurses.h... no
> > 
> > Fails at
> > curses.c:717: error: 'cchar_t' undeclared (first use in this function)
> 
> Again seems like it is probably missing _XOPEN_SOURCE_EXTENDED.

It is defined in Src/system.h

#ifndef ZSH_NO_XOPEN
# ifdef ZSH_CURSES_SOURCE
#  define _XOPEN_SOURCE_EXTENDED 1
# else
#  ifdef MULTIBYTE_SUPPORT
/*
 * Needed for wcwidth() which is part of XSI.
 * Various other uses of the interface mean we can't get away with just
 * _XOPEN_SOURCE.
 */
#   define _XOPEN_SOURCE_EXTENDED 1
#  endif /* MULTIBYTE_SUPPORT */
# endif /* ZSH_CURSES_SOURCE */
#endif /* ZSH_NO_XOPEN */

but ZSH_NO_XOPEN is defined to 1... given by this configure.ac snippet

[[case "$host_os" in
  *openbsd*|*freebsd5*|*freebsd6.[012]*|*aix*)
  zsh_cv_no_xopen=yes

Landry

Reply via email to