/mnt/gnu/gcc/objdir/./gcc/xgcc -shared-libgcc -B/mnt/gnu/gcc/objdir/./gcc -nostd inc++ -L/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src -L/mnt/gnu/gc c/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/src/.libs -B/opt/gnu/gcc/gcc-4.2.0/h ppa2.0w-hp-hpux11.11/bin/ -B/opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/lib/ -i system /opt/gnu/gcc/gcc-4.2.0/hppa2.0w-hp-hpux11.11/include -isystem /opt/gnu/gc c/gcc-4.2.0/hppa2.0w-hp-hpux11.11/sys-include -I/mnt/gnu/gcc/objdir/hppa2.0w-hp- hpux11.11/libstdc++-v3/include/hppa2.0w-hp-hpux11.11 -I/mnt/gnu/gcc/objdir/hppa2 .0w-hp-hpux11.11/libstdc++-v3/include -I/mnt/gnu/gcc/gcc/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -fdiagnostics- show-location=once -g -O2 -c c++locale.cc -fPIC -DPIC -o .libs/c++locale.o /usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage /usr/include/sys/errno.h:48: error: conflicts with new declaration with 'C' linkage make[4]: *** [c++locale.lo] Error 1 make[4]: Leaving directory `/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++- v3/src' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/mnt/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++- v3' make[2]: *** [all] Error 2
-bash-2.05b$ ./xgcc -B./ -v Reading specs from ./specs Target: hppa2.0w-hp-hpux11.11 Configured with: ../gcc/configure --with-gnu-as --with-as=/opt/gnu/bin/as --enable-shared --with-local-prefix=/opt/gnu --prefix=/opt/gnu/gcc/gcc-4.2.0 --with-gmp=/opt/gnu/gcc/gcc-4.2.0 --enable-debug=no --disable-nls --enable-threads=posix --enable-languages=c,c++,objc,fortran,java,ada,obj-c++ Thread model: posix gcc version 4.2.0 20060619 (experimental) -- Summary: /usr/include/errno.h:28: error: previous declaration of 'int errno' with 'C++' linkage Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: danglin at gcc dot gnu dot org GCC build triplet: hppa2.0w-hp-hpux11.11 GCC host triplet: hppa2.0w-hp-hpux11.11 GCC target triplet: hppa2.0w-hp-hpux11.11 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28084