From owner-freebsd-questions@FreeBSD.ORG Fri Nov 24 08:09:21 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4D9316A412 for ; Fri, 24 Nov 2006 08:09:21 +0000 (UTC) (envelope-from SRS0=ECVH/Sq0=FE=asarian-host.net=admin@asarian-host.net) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81C1343D64 for ; Fri, 24 Nov 2006 08:08:35 +0000 (GMT) (envelope-from SRS0=ECVH/Sq0=FE=asarian-host.net=admin@asarian-host.net) Received: from anonymizer.asarian-host.net (localhost [127.0.0.1]) (authenticated bits=0) by mail.asarian-host.net (8.13.8/8.13.8) with ESMTP id kAO89D4Z016273 for ; Fri, 24 Nov 2006 09:09:13 +0100 (CET) (envelope-from admin@asarian-host.net) DomainKey-Signature: q=dns; a=rsa-sha1; h=from:received-spf:message-id:date:x-authenticated-sender:subject:x-trace:organization:to:mime-version:content-type:content-transfer-encoding:x-mimeole; c=nofws; s=anon; d=asarian-host.net; b=lzc6Q79D215T5xrlf7R46uuxwwqFAzJdxcf3qzC4X0bBT2rotbchawGZLXwXVsuw4hOc6aD063xkenw2DY+fj0DSbiPy1Sm0SYbRbF14jxo0E0XgL1cQcht1/dalLiouaxov03Er0HrSoy0ATTqzloeKrQM5ovpqxjkcEvMAIMg= From: Mark Received-SPF: pass (asarian-host.net: 127.0.0.1 is authenticated by a trusted mechanism) receiver=anonymizer.asarian-host.net; client-ip=127.0.0.1; envelope-from=; helo=clientrunner.asarian-host.net; Message-Id: <200611240809.kAO89Cki016265@asarian-host.net> Date: Fri, 24 Nov 2006 08:09:13 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: phzbn+fJy8Jv3yHvJWysgrL7o7KYBi4Igk5j6KBBs0NA0mbUOjwMSJv35lm1SHJy X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint X-Virus-Checked: Checked by ClamAV on asarian-host.net Organization: Asarian-host To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Subject: GCC upgrade 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: Fri, 24 Nov 2006 08:09:21 -0000 Hello, I'd like tp upgrade my gcc version (from 2.95.4). I have two questions about it, though. 1) What is the best gcc version to upgrade to? I see plenty in the ports, from the whole 3.x series to 4.3. And I wonder why they all still remain in the ports? So I'm not sure upgrading to 4.3 is the best idea. And even when I upgraded to what I thought was the latest gcc (on a Vmware box), it said: "gcc version 4.1.2 20061103 (prerelease)" Bummer. 2): To get ports to actually use the new one, I did something like: asarian-host: {root} % cd /usr/bin asarian-host: {root} % rm gcc asarian-host: {root} % ln /usr/local/bin/gcc41 gcc But there's plenty of 'old' gcc stuff still in /usr/bin/. Will what I did suffice? Or am I missing some sort of procedure to get rid of the gcc environment in /usr/bin/? Subsidiarily, will I run into conflicts this way? (with old gcc stuff still residing in /usr/bin/). I tested the new gcc, btw (compiled MySQL server with it, which takes quite a while). Seems to work fine. But I'm not enough of a C expert to know precisely how to do a safe upgrade of this kind. Thanks, - Mark