[Pidgin] #14250: libgnt fails to compile on OS X 10.6.7 due to missing cchar_t
Pidgin
trac at pidgin.im
Sun Jun 5 11:44:14 EDT 2011
#14250: libgnt fails to compile on OS X 10.6.7 due to missing cchar_t
---------------------------------+------------------------------------------
Reporter: elb | Owner: sadrul
Type: defect | Status: new
Component: finch (gnt/ncurses) | Version: 2.7.11
Keywords: |
---------------------------------+------------------------------------------
gntwm.c contains this macro:
{{{
#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
}}}
This fails to define _XOPEN_SOURCE_EXTENDED on OS X if USE_PYTHON is
defined. Without _XOPEN_SOURCE_EXTENDED, ncurses.h does not include
cchar_t on OS X, and the multi-cell character workaround will not compile.
Rather than simply moving this check out of the USE_PYTHON block or adding
a second check for OS X, I figured I should see if anyone knows why this
check is structured as it is.
2.8.0 will not compile on OS X without a fix for this. I am not sure if
2.7.11 will or not; I had never encountered this failure to compile before
recently, but the checks in question are quite old. (They haven't been
changed at all since Jan 2009.)
--
Ticket URL: <http://developer.pidgin.im/ticket/14250>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list