tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pam_ldap and passwd on 5.1

On Sat, May 17, 2014 at 05:44:26PM +0300, Staffan Thomén wrote:
> On Thu, May 15, 2014 at 06:10:47PM +0000, David Holland wrote:
> > On Wed, May 14, 2014 at 12:54:19AM +0300, Staffan Thom?n wrote:
> >  > ldappasswd works perfectly fine, but this happens if I run passwd
> >  > (on any user) with the line
> > 
> > As a hack, you might try recompiling passwd with -L/usr/pkg/lib
> > -R/usr/pkg/lib added to LDFLAGS.
> > 
> > (Ultimately the problem is that ELF can't cope with versioning.)
> Thanks, I'll give it a shot.


It worked. I had to add

LDADD+=-L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -Wl,-rpath-link,/usr/pkg/lib

to the Makefile to get it running. It seems I ended up linking against my pkgsrc
libkrb5 as well by doing this, but I don't have a krb5 environment to test it.

Staffan Thomén - ADB3 455F 10D5 86D1 78D6  048D 11BB D66E 7C7E 2EF8

Home | Main Index | Thread Index | Old Index