Subject: Re: missing RPATH
To: None <tech-pkg@netbsd.org>
From: Greg Troxel <gdt@ir.bbn.com>
List: tech-pkg
Date: 07/31/2007 19:21:59
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.