From owner-freebsd-questions@FreeBSD.ORG Sat Feb 14 13:37:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0CD3106566B for ; Sat, 14 Feb 2009 13:37:47 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ew0-f21.google.com (mail-ew0-f21.google.com [209.85.219.21]) by mx1.freebsd.org (Postfix) with ESMTP id 303338FC13 for ; Sat, 14 Feb 2009 13:37:46 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by ewy14 with SMTP id 14so1437116ewy.19 for ; Sat, 14 Feb 2009 05:37:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=dRAT1EpwXw1ib2lwmxBZdu8kOAWbW9Ree5R9FkXGhBw=; b=fH3UQYZckyzfSS0WANN6wleYzX8X4Tr5pmnSx1+4nFxK6M4BNlG91eZ8/MUOvAFiHo tLwzTFKnNcYB9hT+Hwtgo/9Y3y1Qvtdl9Unv5lyimgTRHcZ9tIOXlQX6BeZ5l6tKIoXz Pu53ZIoj4R6ZOitiZrPDJlzL2wJ8+22ue7JdI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Oi92LymI14mGFKCGroaE91nJPxDgk2AMPmUIbPlnd6LrIRW/0x5JgNiP7osbJNDR4C Yxm++pdLehlvhUKvNZBu6Qc6kXpooOP6mEEiAEVnYYKA5tkwI55Nd6eI6VEhgXIPBrYF kCvFG9L5LPCZVvPkxKcrtZW5gOKgouaQ1y71A= Received: by 10.210.128.5 with SMTP id a5mr2573378ebd.63.1234618666162; Sat, 14 Feb 2009 05:37:46 -0800 (PST) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id f7sm3708433nfh.53.2009.02.14.05.37.42 (version=SSLv3 cipher=RC4-MD5); Sat, 14 Feb 2009 05:37:45 -0800 (PST) Date: Sat, 14 Feb 2009 13:37:19 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090214133719.04fa5038@gumby.homeunix.com> In-Reply-To: <20090214011541.0969.F4B6BD43@shaunc.com> References: <20090213233902.7A3F.F4B6BD43@shaunc.com> <1234594718.7816.8.camel@gateway> <20090214011541.0969.F4B6BD43@shaunc.com> X-Mailer: Claws Mail 3.7.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Upgrading gcc on FreeBSD 4.11 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 13:37:47 -0000 On Sat, 14 Feb 2009 01:29:12 -0600 Shaun wrote: > > > Is it safe to install one of the newer gcc ports on FreeBSD 4.11? > > > I've had this machine for three years; I don't recall ever > > > upgrading the compiler, although pkg_info seems to think that I > > > did, or at least attempted to. I'm wondering if there are any > > > risks involved in going from gcc 2.95 to, say, 3.4.6. Typically > > > I'm happy to pull the latest stable of just about anything, but > > > the compiler is a different story. >... > FWIW: The reason I was wanting to upgrade gcc was to get the > /usr/ports/net-mgmt/darkstat package installed. For future reference, installing a gcc port doesn't upgrade gcc, it installs a extra version of the compiler with differently named binaries e.g. gcc44 instead of gcc. Ports that need specific versions of gcc to build will acquire a gcc build-dependency if they cannot be built from the system compiler. Probably, this didn't work correctly for you since the port's infrastructure no longer supports 4.x. Although it might also happen if you have ccache installed, and you put it's symlinks in your path. The only correct way to upgrade the system compiler itself is to build a later version of FreeBSD.