On Mon, Apr 12, 2004 at 06:59:49PM +0100, startux.org webmaster wrote:
> Compiling atotimet.c
> In file included from /usr/include/bits/string2.h:1211,
>                 from /usr/include/string.h:375,
>                 from atotimet.c:10:
> /usr/include/stdlib.h:762: error: parse error before "div"
> /usr/include/stdlib.h:764: error: parse error before "ldiv"
> /usr/include/stdlib.h:833: error: parse error before '*' token
> /usr/include/stdlib.h:837: error: parse error before "wchar_t"
> /usr/include/stdlib.h:841: error: parse error before '*' token
> /usr/include/stdlib.h:845: error: parse error before '*' token
> make[2]: *** [atotimet.o] Error 1

You have broken C header files if <string.h> won't compile.

Try this:

cat <<EOF >broken.c
#include <string.h>
int main(void) { return 0; }
EOF
gcc -Wall -o broken broken.c

Does that work or does it give an error? If an error, your compiler is
broken. You can send the above 5 lines to the maintainers of the gcc package
you are using.

But first check that you haven't done a partial upgrade of gcc (e.g.
upgraded the binaries but not the headers). If I were you I'd install a
fresh copy of SuSE on another machine and try it again.

Brian.

Reply via email to