broken ports
Frank Shute
frank at shute.org.uk
Mon Feb 9 13:33:01 PST 2009
On Mon, Feb 09, 2009 at 07:52:58PM +0000, David Collins wrote:
>
> > 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.
>
> I tried all this and rtorrent would still not install, with the same
> error at configure. I was however able to pkg_deinstall the gcc it
> installed. That didn't solve any problems though.
>
> I feel that it might be easier to focus on the following compiling
> problem that still exists:
>
> viper:~$ gcc -o hello hello.c
> /usr/bin/ld: cannot find -lgcc_s
What this is telling you is the linker, ld(1), can't find the gcc_s
library. ldconfig(8) tells ld where to look.
What does:
$ ldconfig -r | grep gcc_s
tell you now that you've removed that compiler? You should get
something like:
$ ldconfig -r | grep gcc_s
30:-lgcc_s.1 => /lib/libgcc_s.so.1
i.e. It's looking in the system libs.
If it still tells you that the lib is under /usr/local/lib, then
there's your problem & you have to regenerate a fresh hints file, I
think.
The problem is that I've never (IIRC) installed a compiler from
ports & I don't know how it screws with the compiler toolchain & hence
how to put it right. Hence, I've cc'd this to hackers@ in the hope that
someone who is more familiar with the toolchain can give advice.
Regards,
--
Frank
Contact info: http://www.shute.org.uk/misc/contact.html
More information about the freebsd-questions
mailing list