From owner-freebsd-current@FreeBSD.ORG Fri Sep 21 19:17:38 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB7C16A417 for ; Fri, 21 Sep 2007 19:17:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 9B2DB13C43E for ; Fri, 21 Sep 2007 19:17:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A564A5.dip.t-dialin.net [84.165.100.165]) by redbull.bpaserver.net (Postfix) with ESMTP id 0A3692E2B1; Fri, 21 Sep 2007 21:17:28 +0200 (CEST) Received: from deskjail (deskjail.Leidinger.net [192.168.1.109]) by outgoing.leidinger.net (Postfix) with ESMTP id 670F15B4812; Fri, 21 Sep 2007 21:17:00 +0200 (CEST) Date: Fri, 21 Sep 2007 21:15:41 +0200 From: Alexander Leidinger To: Matt Message-ID: <20070921211541.1b6d6ca0@deskjail> In-Reply-To: References: X-Mailer: Claws Mail 3.0.0 (GTK+ 2.10.14; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.9, required 8, BAYES_00 -15.00, RDNS_DYNAMIC 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No Cc: freebsd-current@freebsd.org Subject: Re: Unexpected gcc linking behavior on -CURRENT 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: Fri, 21 Sep 2007 19:17:38 -0000 Quoting Matt (Fri, 21 Sep 2007 13:36:24 -0500): > Hello all. > > I've been working on getting VirtualBox to build on -CURRENT and have > hit what I think might be a compiler snag based on the error and some > of the mails I've seen to the freebsd-java mailing list over the last > months. > > Any insights into how to isolate and hopefully correct this error > would be greatly appreciated. The code builds cleanly on a > 6.2-RELEASE box using gcc 3.4.6. The error on -CURRENT (from 9/13) > using gcc 4.2.1 is as follows: > > kBuild: Linking > VBoxSVCout/freebsd.x86/release/obj/src/VBox/Main/VBoxSVC/linux/server.o(.text+0x313): > In function `__static_initialization_and_destruction_0': > src/VBox/Main/linux/server.cpp:594: undefined reference to `_292' > out/freebsd.x86/release/obj/src/VBox/Main/VBoxSVC/linux/server.o(.text+0x31d):src/VBox/Main/linux/server.cpp:594: > undefined reference to `_292' I've seen something like this because of compiler bugs depending on the optimization level. Try different optimization levels and have a look what happens (complete rebuild of the source in question). Bye, Alexander. -- Graduate life -- it's not just a job, it's an indenture. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137