Ian Lance Taylor <i...@google.com> writes:

> I have committed a patch to update libgo to the current version of the
> Go library.  This patch includes some minor changes to the Go frontend
> and to the testsuite.  The patch is too large to include here, but most
> of it is simply a copy of the changes to the master Go library.  I have
> appended the changes to the files which are not in the master library.
> Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
> Committed to mainline.

This broke Solaris bootstrap:

> Index: libgo/mksysinfo.sh
> ===================================================================
> --- libgo/mksysinfo.sh        (revision 173685)
> +++ libgo/mksysinfo.sh        (working copy)
> @@ -74,6 +74,8 @@ cat > sysinfo.c <<EOF
>  #include <sys/select.h>
>  #endif
>  #include <unistd.h>
> +#include <netdb.h>
> +#include <pwd.h>
>  EOF

<pwd.h> includes <stdio.h>, which leads to

// type ___FILE struct { _cnt int32; _ptr *uint8; _base *uint8; _flag uint8; 
_magic uint8; __orientation INVALID-bit-field; __ionolock INVALID-bit-field; 
__seekable INVALID-bit-field; __extendedfd INVALID-bit-field; __xf_nocheck 
INVALID-bit-field; __filler INVALID-bit-field; }
// type _FILE struct { _cnt int32; _ptr *uint8; _base *uint8; _flag uint8; _magi
c uint8; __orientation INVALID-bit-field; __ionolock INVALID-bit-field; __seekab
le INVALID-bit-field; __extendedfd INVALID-bit-field; __xf_nocheck INVALID-bit-f
ield; __filler INVALID-bit-field; }
var ___iob [59+1]___FILE
var __lastbuf *_FILE

in gen-sysinfo.go.

On recent Solaris 11, I also have:

const __PATH_SYSVOL = "/system/volatile"
const __PATH_UTMPX = __PATH_SYSVOL "/utmpx"
const __PATH_VARRUN = __PATH_SYSVOL "/"

For the moment, I'm just omitting the offending declarations in
mksysinfo.sh.

IRIX might have similar issues, I'm currently checking.

        Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

Reply via email to