[openbox] CVS compile error: LC_CTYPE undeclared

Mikael Magnusson mangosoft at comhem.se
Sat Aug 19 00:20:02 EDT 2006


On Sat, 19 Aug 2006, Kacper Wysocki wrote:

> 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.

Could you try with cvs now? I added defined() around the names like it 
should be. Maybe your system just defines them without assigning a value.

--
Mikael Magnusson



More information about the openbox mailing list