[Samba] Run path in Samba 4.1.4

Thomas Schulz schulz at adi.com
Wed Feb 19 12:34:38 MST 2014

> On Mon, 2014-02-03 at 23:54 -0500, Thomas Schulz wrote:
> > I have built Samba 4.1.4 on a Solaris 10 i386 box to be installed in
> > /opt/local/samba4. I expected that the resulting binaries would include
> > a run path as necessary to find the shared libraries. They did include
> > a run path to /opt/local/lib (which would also be needed) but not to
> > /opt/local/samba4/lib. I fixed this by re-running configure with the
> > following options
> > 
> > LDFLAGS="-R/opt/local/samba4/lib:/opt/local/samba4/lib/private" \
> > ./configure configure \
> >  --prefix=/opt/local/samba4
> > 
> > Should this have been necessary? I expected from reading the help from
> > configure that a run path would be automatically included. By the way,
> > the help from configure does not mention the LDFLAGS environmental
> > variable. I just made a guess that it might work. And it does.
> It should work, we should be setting that whenever we install into a
> path outside the default search path. 
> I can't however suggest any course of action other than filing a bug, or
> trying a different compiler suite. 
> Sorry,
> Andrew Bartlett

I filed bug 10456 on this. The test in configure correctly tries '-R/stuff'
but also includes '-Wl,-rpath,stuff' which causes the test to fail and
causes configure to conclude that setting a run path is not possible.

Tom Schulz
Applied Dynamics Intl.
schulz at adi.com

More information about the samba mailing list