On Mon, Feb 14, 2005 at 11:52:19AM +0100, Denis Corbin wrote: > On several systems (Solaris 2.6, openBSD 3.6, macOS X 10.2) the > "./configure && make" fails due to the redefinition by the configure > script of the mbtate_t type, on Linux instead it seems to work properly, > with the same compiler version. > > the problem seems to be linked with the gcc C++ header files: > ---- > In file included from /usr/include/gcc/darwin/3.3/c++/bits/fpos.h:45, > from /usr/include/gcc/darwin/3.3/c++/iosfwd:49, > from > /usr/include/gcc/darwin/3.3/c++/bits/stl_algobase.h:70, > from /usr/include/gcc/darwin/3.3/c++/algorithm:66, > /usr/include/gcc/darwin/3.3/c++/cwchar:65: error: semicolon missing > after struct declaration > ----
This is an excerpt from config.log? Do the relevant config.log bits for the other two affected systems look similar? If not, please post a full config.log from running your test case `configure' on each affected system. It is fishy that the trivial test program does not build, yet the bits of your project that use mbstate_t do build when you manually hack config.h. Do you use mbstate_t in a C file or a C++ file? Do you include <wchar.h> in that file?