Subject: Re: missing RPATH
To: None <tech-pkg@netbsd.org>
From: Jukka Salmi <j+nbsd@2007.salmi.ch>
List: tech-pkg
Date: 08/01/2007 11:10:37
Greg Troxel --> tech-pkg (2007-07-31 19:21:59 -0400):
> Jukka Salmi <j+nbsd@2007.salmi.ch> writes:
> 
> > I'm trying to update mail/dk{,im}-milter to their latest versions.
> > What I don't understand: if I link with OpenSSL from pkgsrc instead
> > of with the native (NetBSD) one (by setting PREFER.openssl=pkgsrc),
> > the resulting binaries don't have an RPATH and thus don't find libssl
> > and libcrypto. This is reproducible with mail/dk{,im}-milter and
> > security/openssl from pkgsrc HEAD. Hmm, I though pkgsrc would handle
> > this automatically... So, is this pkgsrc' fault, or do these milter
> > packages have to be changed (and if yes: how?)?
> 
> Typically pkgsrc gets this right, and probably you need to save the
> output of make and pore over the linking step and figure out why not.
> I'll give 90% odds it's the milter packages fault :-)  On systems needing
> RPATH (such as NetBSD) there should be some rpath stuff in the libs.

You were right, the packages didn't pass LDFLAGS to the linker. Problem
fixed. Thanks!


Regards, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~