From owner-freebsd-questions@FreeBSD.ORG Wed Jan 14 13:36:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0185A16A4CF for ; Wed, 14 Jan 2004 13:36:08 -0800 (PST) Received: from mail.hetepu.net (mail.hetepu.net [24.123.118.85]) by mx1.FreeBSD.org (Postfix) with SMTP id 4A7B543D7E for ; Wed, 14 Jan 2004 13:35:55 -0800 (PST) (envelope-from dan@cain.sh) Received: (qmail 94963 invoked by uid 85); 14 Jan 2004 21:40:15 -0000 Received: from dan@cain.sh by mail.hetepu.net by uid 82 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.x. Clear:SA:0(1.1/5.0):. Processed in 21.485974 secs); 14 Jan 2004 21:40:15 -0000 X-Spam-Status: No, hits=1.1 required=5.0 Received: from cpe-65-27-113-115.mn.rr.com (HELO ?192.168.0.10?) (djcain@65.27.113.115) by mail.hetepu.net with SMTP; 14 Jan 2004 21:39:53 -0000 From: "Daniel J Cain Jr." To: freebsd-questions@freebsd.org Content-Type: text/plain Message-Id: <1074115995.87332.18.camel@gigabeast.home.cain.sh> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 14 Jan 2004 15:33:15 -0600 Content-Transfer-Encoding: 7bit Subject: How to Select Compiler Version when Installing Port X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jan 2004 21:36:08 -0000 I am trying to get vmailmgr-0.96.9 to build from the ports collection of FreeBSD 5.1-RELEASE. I 'think' it will work if I can have the port use a different compiler version during the build. I have been unable to figure/find out how (if?) this is possible. By default it seems to use gcc 3.2.2, and I have the port install of gcc 2.9.5 available I just don't know how to make 'make' use the older version. I am pretty spoiled with the ports collection in that I almost never have to compile anything without using a port. But I have managed to alter the source in work/ to get past a couple of the errors (missing/incorrect includes). Still getting stumped by lots of errors along the lines of this: --------------------------------------------------------- ../lib/libvmailmgr.a(cdb_get.o): In function `cdb_reader::get(mystring const&)': cdb_get.o(.text+0x355): undefined reference to `operator new(unsigned)' --------------------------------------------------------- I don't know how to work through those errors, and from what I've found on the net it doesn't compile with gcc 3+. So now I would like to try and using gcc 2.9.5 and see if that doesn't clear up the final (hopefully) issue. Any insight you can provide would be greatly appreciated. Thanks in advance for your time.