[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] Sporadical Issues with GNU libiconv when using C++

From: Pedro F. Giffuni
Subject: [bug-gnu-libiconv] Sporadical Issues with GNU libiconv when using C++
Date: Sun, 19 Feb 2012 17:24:18 -0800 (PST)


When building OpenOffice on FreeBSD I occasionally see some very
nasty error messages:
Making:    all_jvmfwk.dpslo
Compiling: jvmfwk/unxfbsdx.pro/misc/jvmfwk_version.c
Compiling: jvmfwk/source/framework.cxx
In file included from /usr/local/include/libxml2/libxml/encoding.h:28,
                 from /usr/local/include/libxml2/libxml/parser.h:807,
/usr/local/include/iconv.h:114: error: 'mbstate_t' does not name a type
dmake:  Error code 1, while making '../unxfbsdx.pro/slo/framework.obj'

encoding.h (line 27) says:
#include <iconv.h>

This is libiconv 1.13.1, and the issue get triggered when the code
has #include <libxml/tree.h> in it.

As a work around I include this line:
#include <cwchar>      // for std::mbstate_t

but this seems to be a libiconv header issue.

Curiously this error comes and goes every month, probably
depending on the phase of the moon ;-).

best regards,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]