From patchwork Fri Jan 27 12:54:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Orth X-Patchwork-Id: 138221 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 069FBB6F65 for ; Fri, 27 Jan 2012 23:54:52 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1328273693; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Cc:Subject:References:Date:In-Reply-To: Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=inturER9+VuetspvQYGQ/0YcMww=; b=SktShDfbPbZ77JNNOOkKKPLIf7NLLGcoVut4zmg4to96tZtJz6np2cSpBkdTev SdXgvO/YdBj3Z+u2eOXdvDivuCeIP/+I1oIqerpEHAFYG5MlbKtewPtSKDqtag+N YxOxQDhJQt2fX9fiLOrmXyX8zYhzMc4fw80KTqzINKZRE= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:User-Agent:MIME-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=PP+FIiZsaToy2BjKoCsJUl/9g4MpM0B4oeA9Q/4aAoBum+yraHsnoLQqaIAbl+ PSd6dYgHnaCEwVcWXpEOdInSWuxz3wTpo8DPE9g7u1bt4oWBaOcmiiLJTBJ20IZh Q+6wZltBxFEb7RGhh1uHFzBAwmlVQUsjYoVyA093box7A=; Received: (qmail 32432 invoked by alias); 27 Jan 2012 12:54:48 -0000 Received: (qmail 32423 invoked by uid 22791); 27 Jan 2012 12:54:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from snape.CeBiTec.Uni-Bielefeld.DE (HELO smtp-relay.CeBiTec.Uni-Bielefeld.DE) (129.70.160.84) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Jan 2012 12:54:35 +0000 Received: from localhost (localhost.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 77B2540E; Fri, 27 Jan 2012 13:54:34 +0100 (CET) Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (malfoy.CeBiTec.Uni-Bielefeld.DE [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K2odHCpZ2EUN; Fri, 27 Jan 2012 13:54:32 +0100 (CET) Received: from manam.CeBiTec.Uni-Bielefeld.DE (manam.CeBiTec.Uni-Bielefeld.DE [129.70.161.120]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTPS id BE0FE40D; Fri, 27 Jan 2012 13:54:32 +0100 (CET) Received: (from ro@localhost) by manam.CeBiTec.Uni-Bielefeld.DE (8.14.5+Sun/8.14.5/Submit) id q0RCsWEM002010; Fri, 27 Jan 2012 13:54:32 +0100 (MET) From: Rainer Orth To: Ian Lance Taylor Cc: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: Re: libgo patch committed: Update to weekly.2012-01-20 References: Date: Fri, 27 Jan 2012 13:54:32 +0100 In-Reply-To: (Rainer Orth's message of "Fri, 27 Jan 2012 11:56:29 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (usg-unix-v) MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Rainer Orth writes: > I'm also checking IRIX 6.5 right now. IRIX does need one additional change indeed. Without it, I get /vol/gcc/src/hg/trunk/local/libgo/go/net/sockoptip.go:79:74: error: reference to undefined identifier 'syscall.IPV6_UNICAST_HOPS' /vol/gcc/src/hg/trunk/local/libgo/go/net/sockoptip.go:99:74: error: reference to undefined identifier 'syscall.IPV6_MULTICAST_IF' /vol/gcc/src/hg/trunk/local/libgo/go/net/sockoptip.go:130:74: error: reference to undefined identifier 'syscall.IPV6_MULTICAST_HOPS' /vol/gcc/src/hg/trunk/local/libgo/go/net/sockoptip.go:150:74: error: reference to undefined identifier 'syscall.IPV6_MULTICAST_LOOP' Fixed as follows (the comment explains why done this way). With that patch, I can at least link libgo.so and link a trivial Go program. Full bootstrap with run over the weekend. Rainer diff --git a/libgo/go/syscall/socket_irix.go b/libgo/go/syscall/socket_irix.go --- a/libgo/go/syscall/socket_irix.go +++ b/libgo/go/syscall/socket_irix.go @@ -119,3 +119,12 @@ const ( func anyToSockaddrOS(rsa *RawSockaddrAny) (Sockaddr, error) { return nil, EAFNOSUPPORT } + +// only provides IPV6_* etc. if _NO_XOPEN4 && _NO_XOPEN5, +// so as above simply provide them here. +const ( + IPV6_UNICAST_HOPS = 48 + IPV6_MULTICAST_IF = IP_MULTICAST_IF + IPV6_MULTICAST_HOPS = IP_MULTICAST_TTL + IPV6_MULTICAST_LOOP = IP_MULTICAST_LOOP +)