It looks as if you aren't getting the definition of wchar_t. To kluge around the problem put "typedef unsigned long wchar_t;" before line 333 in stdio.h . The correct way to fix this is to get the latest libc and libc-dev packages and install them. If the problem doesn't go away, tell us.
Bruce