From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 09:35:14 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 39E85106564A for ; Mon, 9 Feb 2009 09:35:14 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from mailout.zetnet.co.uk (mailout.zetnet.co.uk [194.247.47.231]) by mx1.freebsd.org (Postfix) with ESMTP id B6D348FC1A for ; Mon, 9 Feb 2009 09:35:13 +0000 (UTC) (envelope-from frank@esperance-linux.co.uk) Received: from irwell.zetnet.co.uk ([194.247.47.48] helo=zetnet.co.uk) by mailout.zetnet.co.uk with esmtp (Exim 4.63) (envelope-from ) id 1LWSXo-000239-3X; Mon, 09 Feb 2009 09:35:12 +0000 Received: from melon.esperance-linux.co.uk (54-144.adsl.zetnet.co.uk [194.247.54.144]) by zetnet.co.uk (8.14.1/8.14.1/Debian-9) with ESMTP id n199ZBLw011390; Mon, 9 Feb 2009 09:35:11 GMT Received: by melon.esperance-linux.co.uk (Postfix, from userid 1001) id D890BFCA4DB; Mon, 9 Feb 2009 09:35:05 +0000 (GMT) Date: Mon, 9 Feb 2009 09:35:05 +0000 From: Frank Shute To: David Collins Message-ID: <20090209093505.GA2835@melon.esperance-linux.co.uk> Mail-Followup-To: David Collins , freebsd-questions@freebsd.org References: <498ABACC.3060102@bsdforen.de> <1b30fd140902050218m1660ad97ife6b0a679d8a946a@mail.gmail.com> <20090207075521.GA93084@melon.esperance-linux.co.uk> <1b30fd140902080816v7dfb8bb6g6f3c9a3d162f48c0@mail.gmail.com> <20090208203553.GA99661@melon.esperance-linux.co.uk> <1b30fd140902081424p1d75e304y9f4ef9f9b472328c@mail.gmail.com> <20090209055634.GA2116@melon.esperance-linux.co.uk> <1b30fd140902082330m21b4aecyf99cb83a080e972a@mail.gmail.com> <20090209083338.GA2666@melon.esperance-linux.co.uk> <1b30fd140902090108m292ef929tdce1ce2c946ead6b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b30fd140902090108m292ef929tdce1ce2c946ead6b@mail.gmail.com> User-Agent: Mutt/1.4.2.3i X-Face: *}~{PHnDTzvXPe'wl_-f%!@+r5; VLhb':*DsX%wEOPg\fDrXWQJf|2\,92"DdS%63t*BHDyQ|OWo@Gfjcd72eaN!4%NE{0]p)ihQ1MyFNtWL X-Operating-System: FreeBSD 6.4-RELEASE-p2 i386 X-Organisation: 'http://www.shute.org.uk/' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.1.7 (zetnet.co.uk [194.247.46.1]); Mon, 09 Feb 2009 09:35:11 +0000 (GMT) Cc: freebsd-questions@freebsd.org Subject: Re: broken ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Frank Shute List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 09:35:14 -0000 On Mon, Feb 09, 2009 at 09:08:28AM +0000, David Collins wrote: > > > I think the problem is that somebody has installed a compiler out of > > ports on your machine & it's associated libraries. See what cc -v > > says. > > My cc is exactly the same as yours > viper:~$ cc -v > Using built-in specs. > Target: i386-undermydesk-freebsd > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 4.2.1 20070719 [FreeBSD] Good. > > > > It could be that it's invoking the system compiler (or not). Check: > > > > $ pkg_info | grep gcc > > viper:~$ pkg_info | grep gcc > gcc-4.2.5_20080702 GNU Compiler Collection 4.2 > > This is different, does this mean that there is an alternate c > compiler on my system? If ithis is the case how can I fix this? > I don't know what I would have installed that would have required an > additional compiler? rtorrent installed it. From the rtorrent Makefile: USE_GCC= 4.2+ > > > aswell. Also look at /etc/make.conf & see if there's anything about > > GCC_VERSION or something similar. > > My make.conf doesn't have anything in it really > > viper:~$ cat /etc/make.conf > > PERL_VER=5.8.8 > PERL_VERSION=5.8.8 > > WITHOUT_X11=yes To use a different compiler you should have something in there IIRC to tell the system to use it. Doing a quick google, I think you can set: CC=/usr/local/bin/gcc42 in /etc/make.conf (I might have got the name of the binary wrong, so check it) Then you should be able to build rtorrent. Then what I'd do is deinstall gcc42: # pkg_deinstall -f gcc-4.2.5_20080702 Comment out the CC line in /etc/make.conf & run ldconfig: # /etc/rc.d/ldconfig start and hopefully your system is then back to normal. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html