Hey,
I've got the same problem with this CPP.
I'm running Debian and I want to develop some software. When I try to compile, he gives a lot of errors:
webcar-host@debian:/var/www/webcar$ gcc -c com.c -o com
In file included from /usr/local/include/features.h:354,
from /usr/include/stdio.h:28,
from com.c:1:
/usr/local/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or directory
In file included from com.c:1:
/usr/include/stdio.h:46: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘typedef'
/usr/include/stdio.h:51: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘__USING_NAMESPACE_STD'
In file included from /usr/include/_G_config.h:44,
from /usr/include/libio.h:32,
from /usr/include/stdio.h:72,
from com.c:1:
/usr/include/gconv.h:176: error: expected ‘:', ‘,', ‘;', ‘}' or ‘__attribute__' before ‘__flexarr'
In file included from com.c:1:
/usr/include/stdio.h:88: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘typedef'
In file included from com.c:1:
/usr/include/stdio.h:142: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘extern'
/usr/include/stdio.h:152: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘extern'
/usr/include/stdio.h:158: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘__BEGIN_NAMESPACE_STD'
/usr/include/stdio.h:184: error: expected ‘=', ‘,', ‘;', ‘asm' or ‘__attribute__' before ‘extern'
/usr/include/stdio.h: In function ‘tempnam':
and so on...
So I thought maybe I need to install the gnu C lib. And when configuring this one, I get the same error message as you. I checked all the programs (gcc, cpp, make, binutils, libc6-dev) and they are all the newest version possible. So maybe using the command 'configure --disable-sanity-checks' could help. But still the same.
The problem is, that in stdio.h, he wants to include features.h, but not the one in /usr/include, but the one in /usr/local/include. And in this header, when you include gnu/stubs.h, this file wants to include a file that is not existing. But in /usr/include/gnu/stubs.h, there are just some defs.
So, how do I get the configure to use only those headers (from /usr/include) --> which options must I add.
Thanks for any reply...
Javi