Ian Lance Taylor <i...@google.com> writes: > Rainer Orth <r...@cebitec.uni-bielefeld.de> writes: > >> Solaris 8 and 9 suffer from the same problem. The following patch >> allowed the bootstrap to complete. An IRIX bootstrap is currently >> running, but will take some time to complete. >> >> Rainer >> >> >> 2011-09-23 Rainer Orth <r...@cebitec.uni-bielefeld.de> >> >> * mksysinfo.sh: Provide TIOCSCTTY if missing. > > Thanks. I committed this patch, though I moved the new lines farther > down in the script next to the handling of the ioctl constants.
Thanks, I'd missed that. It turned out that IRIX 6 needs one more change to return to bootstrap land: <sys/termios.h> only defines TIOCNOTTY if !_XOPEN_SOURCE, which we need for other stuff (cf. configure.ac). I've cheated and use <sys/ttold.h> instead, which doesn't have this check. With this patch, a Go-only IRIX 6.5 bootstrap completed successfully. Rainer 2011-09-28 Rainer Orth <r...@cebitec.uni-bielefeld.de> * mksysinfo.sh [__sgi__]: Include <sys/ttold.h>.
# HG changeset patch # Parent 4530aeaf12a2b1576a7bf67de9cf5569719107c6 Provide TIOCNOTTY on IRIX 6 diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -36,9 +36,12 @@ cat > sysinfo.c <<EOF #include <netinet/in.h> /* <netinet/tcp.h> needs u_char/u_short, but <sys/bsd_types> is only included by <netinet/in.h> if _SGIAPI (i.e. _SGI_SOURCE - && !_XOPEN_SOURCE. */ + && !_XOPEN_SOURCE. + <sys/termios.h> only defines TIOCNOTTY if !_XOPEN_SOURCE, while + <sys/ttold.h> does so unconditionally. */ #ifdef __sgi__ #include <sys/bsd_types.h> +#include <sys/ttold.h> #endif #include <netinet/tcp.h> #include <signal.h>
-- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University