Stepan Kasal wrote:
[...]


The first thing to note is that you cannot use AC_CHECK_TYPE macro to check for mbstate_t. You have to use AC_TYPE_MBSTATE_T instead.

OK. This does not change the problem, sorry.


If you experience problems with AC_TYPE_MBSTATE_T, please give the details: if you are trying to compile a package, point us to the tarball. If you are writing an autoconf script, please prepare an example, as small as possible, to demonstrate the bug.

I have made it as small as possible, removed automake libtool and gettext to have only make and autoconf involved. Please have a look at it here:


        http://dar.linux.free.fr/autoconf_test.tar.gz

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


while with the same compiler version on linux all works perfectly well... 8-|


Have a nice day, Stepan Kasal


Thanks, have a nice day too, Thanks for any help.

Denis Corbin.




Reply via email to