Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2012 15:37:28 -0800
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Mel Flynn <rflynn@acsalaska.net>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, Diane Bruce <db@db.net>, freebsd-current@freebsd.org, Dimitry Andric <dim@freebsd.org>, freebsd-ports@freebsd.org
Subject:   Re: rtld or lang/gcc cannot find libgcc_s.so.1
Message-ID:  <20120221233728.GA76984@troutmask.apl.washington.edu>
In-Reply-To: <4F44274A.1010907@acsalaska.net>
References:  <20120221182850.GA20768@troutmask.apl.washington.edu> <20120221185754.GL55074@deviant.kiev.zoral.com.ua> <20120221194259.GA21185@troutmask.apl.washington.edu> <4F440E8B.9020306@FreeBSD.org> <20120221220053.GA44386@night.db.net> <20120221223251.GA23053@troutmask.apl.washington.edu> <4F44274A.1010907@acsalaska.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Feb 22, 2012 at 12:22:50AM +0100, Mel Flynn wrote:
> On 2/21/2012 23:32, Steve Kargl wrote:
> > On Tue, Feb 21, 2012 at 05:00:53PM -0500, Diane Bruce wrote:
> >> On Tue, Feb 21, 2012 at 10:37:15PM +0100, Dimitry Andric wrote:
> >>> On 2012-02-21 20:42, Steve Kargl wrote:
> >>> ...
> >>>> Yes, /lib comes before /usr/local/lib/gcc46.  I suppose
> >>>> that this is a heads up for gerald@. lang/gcc is used by
> >>>> the ports collections to build a large number of other
> >>>> ports, so others are likely to hit this issue.
> >>
> >> Does -rpath not help ?
> > 
> > I already mentioned that I can add '-rpath /usr/local/lib/gcc46'
> > to my various projects.  I can also build with -static to avoid
> > rtld.  One can also use LD_LIBRARY_PATH.  
> 
> Make sure it's your binary pulling in libgcc_s. I just went through a
> few iterations of recompiling mplayer with different *FLAGS and each
> time base gcc_s was pulled in. I then did an ldd -a `which mplayer` and
> saw libschroedinger was the one actually pulling it in.
> 

I already did the ldd song and dance.

-- 
Steve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120221233728.GA76984>