Subject: Re: pkgsrc/Solaris: LD_LIBRARY_PATH
To: None <firstname.lastname@example.org>
From: Tobias Nygren <tnn@NetBSD.org>
Date: 08/04/2007 03:11:31
On Fri, 03 Aug 2007 19:29:26 -0400
"Mehul N. Sanghvi" <email@example.com> wrote:
> Every time I build something in pkgsrc, I get a linking error for
> libiconv. I usually end up doing an explicit export of LD_LIBRARY_PATH and
> including /usr/pkg/lib in it. Is there some variable I can set in my mk.conf
> file that will ensure that I don't have to remember to do this each time ?
pkgsrc is supposed to encode the runpath into the binaries and if that
doesn't happen it is a bug. What version of Solaris are you on, what
architecture, what compiler and which ld(1) is the compiler using?
If you changed any of those you probably need to rebuild the
Does the linker error happen in the libiconv package or in some
package that depends on it?