Re: ncursesw

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nicholas Marriott
Subject: Re: ncursesw
Date: Wednesday, August 25, 2010 - 6:44 am

On Wed, Aug 25, 2010 at 09:27:55AM +0100, Nicholas Marriott wrote:


Hmm. I can't reproduce this on amd64, make configure passes:

checking for initscr in -lncursesw... yes
checking for update_panels in -lpanelw... yes
checking /usr/include/ncursesw/ncurses.h usability... no
checking /usr/include/ncursesw/ncurses.h presence... no
checking for /usr/include/ncursesw/ncurses.h... no
checking /usr/include/ncurses.h usability... yes
checking /usr/include/ncurses.h presence... yes
checking for /usr/include/ncurses.h... yes
checking if /usr/include/ncurses.h supports wide characters... yes

And the build fails later instead looking for cchar_t:

 cc -DHAVE_CONFIG_H -I. -I/usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt -I../.. -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include/ -Wall -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Werror-implicit-function-declaration -Wextra -Wno-sign-compare -Wno-unused-parameter -Wformat-security -Winit-self -Wmissing-declarations -Wmissing-noreturn -Wmissing-prototypes -Wpointer-arith -Wundef -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/python2.5 -I/usr/local/include -I/usr/include/ncursesw -O2 -pipe -MT gntwm.lo -MD -MP -MF .deps/gntwm.Tpo -c /usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt/gntwm.c  -fPIC -DPIC -o .libs/gntwm.o
/usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt/gntwm.c: In function 'work_around_for_ncurses_bug':
/usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt/gntwm.c:169: error: 'cchar_t' undeclared (first use in this function)
/usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt/gntwm.c:169: error: (Each undeclared identifier is reported only once
/usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt/gntwm.c:169: error: for each function it appears in.)
/usr/ports/pobj/pidgin-2.7.3/pidgin-2.7.3/finch/libgnt/gntwm.c:169: error: expected ';' before 'ch'
...

For which this might be the culprit in finch/libgnt/gntwm.c:

#ifdef USE_PYTHON
#include <Python.h>
#else
#define _GNU_SOURCE
#if (defined(__APPLE__) || defined(__unix__)) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
#define _XOPEN_SOURCE_EXTENDED
#endif
#endif

Looks like it expects Python to turn on _XOPEN_SOURCE_EXTENDED, but I
rebuilt Python and it still seems to be off in Python2.5/pyconfig.h,
despite this:

$ ldd /usr/local/lib/python2.5/lib-dynload/_curses.so
/usr/local/lib/python2.5/lib-dynload/_curses.so:
        Start            End              Type Open Ref GrpRef Name
        000000020fa88000 000000020fe9b000 dlib 1    0   0      /usr/local/lib/python2.5/lib-dynload/_curses.so
        0000000203593000 00000002039ec000 rlib 0    1   0      /usr/lib/libncursesw.so.12.0

Maybe someone with better knowledge of Python/pidgin able to look and
see what is going on?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ncursesw, Nicholas Marriott, (Sun Aug 22, 5:36 pm)
Re: ncursesw, Landry Breuil, (Sun Aug 22, 11:17 pm)
Re: ncursesw, Christian Weisgerber, (Mon Aug 23, 6:04 am)
Re: ncursesw, Christian Weisgerber, (Tue Aug 24, 7:22 am)
Re: ncursesw, Nicholas Marriott, (Tue Aug 24, 12:56 pm)
Re: ncursesw, Landry Breuil, (Tue Aug 24, 2:05 pm)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 12:48 am)
Re: ncursesw, Landry Breuil, (Wed Aug 25, 1:01 am)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 1:27 am)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 1:32 am)
Re: ncursesw, Stuart Henderson, (Wed Aug 25, 1:33 am)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 6:44 am)
Re: ncursesw, Martin Pieuchot, (Wed Aug 25, 7:10 am)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 9:00 am)
Re: ncursesw, Martin Pieuchot, (Wed Aug 25, 9:10 am)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 10:29 am)
Re: ncursesw, Nicholas Marriott, (Wed Aug 25, 10:56 am)
Re: ncursesw, Martin Pieuchot, (Wed Aug 25, 11:51 am)
Re: ncursesw, Nicholas Marriott, (Mon Aug 30, 1:51 am)