CVS compile error: LC_CTYPE undeclared

Kacper Wysocki kacperw at gmail.com
Fri Aug 18 22:11:17 EDT 2006


Hi all,
render/font.c has

#if USE_PANGO && !ENABLE_NLS
#include <locale.h>
#endif

which results in the following compile error when pango is on and nls is off
(which seems to be the default on my system at least):

render/font.c: In function 'font_startup':
render/font.c:65: warning: assignment makes pointer from integer without a cast
render/font.c: In function 'openfont':
render/font.c:139: error: 'LC_CTYPE' undeclared (first use in this function)
render/font.c:139: error: (Each undeclared identifier is reported only once
render/font.c:139: error: for each function it appears in.)
render/font.c:139: warning: passing argument 1 of 'g_strdup' makes
pointer from integer without a cast
make[1]: *** [render/render_libobrender_la-font.lo] Error 1
make[1]: Leaving directory `/home/comotion/downloads/cvs/openbox'
make: *** [all-recursive] Error 1

Including locale.h unconditionally in font.c fixes the problem.

Cheers,
-Kacper



More information about the openbox mailing list