This is the same as bug 3774, but for SH instead of arm. Compiling a 'hello, world' c++ program spews errors of the sort .../g++-v3/bits/std_cstdio.h:145: `vfscanf' not declared unless -D_ISOC9X_SOURCE is passed to the compiler. The fix for arm appears to have been http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/arm/linux-elf.h.diff?r1=1.31&r2=1.32 which predefines _GNU_SOURCE, with the comment /* The GNU C++ standard library currently requires _GNU_SOURCE * Looks like other architectures might need this, too. I'm attaching a patch for sh4. No idea if it's actually right yet, but it seems logical.
Created attachment 4172 [details] Patch that seems to resolve the problem
Kaz says: > OK for 3.3 as an sh-linux specific regression fix. Thanks. > Ugh. Again, 3.4 includes this already. See http://gcc.gnu.org/ml/gcc-patches/2003-06/msg00424.html
Patch committed: http://gcc.gnu.org/ml/gcc-cvs/2003-06/msg00242.html. Thanks for fixing this Dan.