broken ports
Frank Shute
frank at shute.org.uk
Mon Feb 9 01:35:14 PST 2009
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
More information about the freebsd-questions
mailing list