From owner-freebsd-current Thu May 30 1:13:24 2002 Delivered-To: freebsd-current@freebsd.org Received: from evilpete.dyndns.org (12-232-26-46.client.attbi.com [12.232.26.46]) by hub.freebsd.org (Postfix) with ESMTP id 05D4837B403 for ; Thu, 30 May 2002 01:13:08 -0700 (PDT) Received: from overcee.wemm.org ([10.0.0.3]) by evilpete.dyndns.org (8.11.6/8.11.6) with ESMTP id g4U8D7167784 for ; Thu, 30 May 2002 01:13:07 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id 733E33810; Thu, 30 May 2002 01:13:07 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Alfred Perlstein Cc: Wilko Bulte , Peter Schultz , taguchi@tohoku.iij.ad.jp, freebsd-current@FreeBSD.ORG Subject: Re: XFree86-4-libraries build error In-Reply-To: <20020530080355.GN17045@elvis.mu.org> Date: Thu, 30 May 2002 01:13:07 -0700 From: Peter Wemm Message-Id: <20020530081307.733E33810@overcee.wemm.org> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > * Peter Wemm [020530 01:01] wrote: > > Wilko Bulte wrote: > > > On Wed, May 29, 2002 at 11:38:57PM -0500, Peter Schultz wrote: > > > > > > FWIW: same here yesterday. I have not yet investigated what's up > > > > gcc-3.1 appears to have broken > > #pragma weak foo = bar > > What's the correct way to do this now? I dont know. :-( There are hacks that can work around it, but I think this is unintentional breakage. I tried changing this: #pragma weak foo = bar to __weak_reference(bar, foo); But I didn't get much further since Xfree86 was provoking internal compiler errors. Turning off -O entirely got around it a few times, and then I had more failures with lack of c++ libraries. The end result of all the futzing around ended up with a set of binaries that were basically hosed and usually segfaulted on startup. Shortly after that point, I then managed to panic my system (running 5.x) and said "to hell with it" and did a pkg_add -r to install it instead. I'm in the middle of moving, so I haven't had much more of a chance to look at it. There are GCC bugs involved. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message