From owner-freebsd-current@FreeBSD.ORG Mon Jun 25 13:50:17 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5F6AE16A46E for ; Mon, 25 Jun 2007 13:50:17 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 1425B13C4BA for ; Mon, 25 Jun 2007 13:50:17 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:MIME-Version:Content-Type:Content-Disposition:Sender:X-Spam-Status:Subject; b=aY/VNNGs2w1s91DP8ldYo1hJQToS2Q3yUaP9c3Q9JnYFGUDAy3ysnZwbklY+5D0lccNbycmRe/+yScZJL1HBf7Z254XDdXXXLxwLBU1MaODNFA1l1yOXwPYqh3AKiA11Dl505NROIouAKysQaE/VjC3iUW2bFiccg5FUnH8hxR0=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1I2oxJ-0000N0-1p; Mon, 25 Jun 2007 17:50:13 +0400 Date: Mon, 25 Jun 2007 17:50:08 +0400 From: Eygene Ryabinkin To: freebsd-current@freebsd.org Message-ID: <20070625135008.GC1055@void.codelabs.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Sender: rea-fbsd@codelabs.ru X-Spam-Status: No, score=-2.0 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_20 Cc: Subject: binutils/gas compilation problems on i386. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2007 13:50:17 -0000 Good day. Checked out today's -CURRENT and noticed that the gas utility fails to be built. The problem is in config/tc-i386.h:451 (and all files are relative to /usr/src/contrib/binutils/gas): ----- extern const struct relax_type md_relax_table[]; ----- 'struct relax_type' is opaque when only as.h is used (line 608): ----- struct relax_type; ----- And, for example, file app.c uses only "as.h", but not the tc.h. Commenting the line 451 in config/tc-i386.h and adding the line ----- extern const relax_typeS TC_GENERIC_RELAX_TABLE[]; ----- to the write.c:2024 seems to solve the problem, but it looks like a hack. Any comments on this? -- Eygene