[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) |
Hello;
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,
from
/usr/ports/editors/openoffice.org-3-devel/work/ooo/main/jvmfwk/source/elements.hxx:35,
from
/usr/ports/editors/openoffice.org-3-devel/work/ooo/main/jvmfwk/source/framework.cxx:43:
/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:
#ifdef LIBXML_ICONV_ENABLED
#include <iconv.h>
#endif
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,
Pedro.
- [bug-gnu-libiconv] Sporadical Issues with GNU libiconv when using C++,
Pedro F. Giffuni <=