From owner-freebsd-questions@FreeBSD.ORG Wed Jan 14 15:05:33 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 99F3B16A4CE for ; Wed, 14 Jan 2004 15:05:33 -0800 (PST) Received: from ms-smtp-03-eri0.southeast.rr.com (ms-smtp-03-lbl.southeast.rr.com [24.25.9.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id E604C43D46 for ; Wed, 14 Jan 2004 15:05:31 -0800 (PST) (envelope-from wegster@mindcore.net) Received: from mindcore.net (rdu162-234-100.nc.rr.com [24.162.234.100]) i0EN4rTe002213; Wed, 14 Jan 2004 18:04:54 -0500 (EST) Message-ID: <4005CB15.80702@mindcore.net> Date: Wed, 14 Jan 2004 18:04:53 -0500 From: Scott W User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20031129 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Daniel J Cain Jr." References: <1074115995.87332.18.camel@gigabeast.home.cain.sh> In-Reply-To: <1074115995.87332.18.camel@gigabeast.home.cain.sh> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-questions@freebsd.org Subject: Re: 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 23:05:33 -0000 Daniel J Cain Jr. wrote: >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. > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > you should be able to set the value of CC in the environment, or pass it through as a Make environment variable to use your choice of compiler... normally you can execute: CC=/usr/local/gcc-N.NN/bin/gcc make target although with the BSD ports system, you may need to do it differently, either in the top level Makefile or via: make -E CC=/usr/local/gcc-N.NN/bin/gcc Scott Scott