sshd failed to update ( /libexec/ld-elf.so.1: Shared object "libbsm.so.1" not found, required by "sshd" )

Oleg D. perl at ipchains.ru
Sat Sep 16 13:58:19 PDT 2006


Pavel Sokolov wrote:
> I have RELENG_6 ( just updated and installed kernel , 6_2 prerelease )
> 
> and by mistake ( or my stupid hands ) I did :
> cd /usr/src/secure
> make install
> 
> now sshd does not work. it tells:
> /libexec/ld-elf.so.1: Shared object "libbsm.so.1" not found, required by "sshd"
> 
> I tried to build the system again but the result is same.
> 
> I did make cleandir ( twice ) in /usr/src and tried this solution:
> 
> # cd /usr/src/secure/lib/libssh
> # make obj && make depend && make && make install
> # cd /usr/src/secure/usr.sbin/sshd
> # make obj && make depend && make && make install
> 
> but build fails at:
> 
> /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/audit-bsm.c:50:31: bsm/audit_uevents.h: No such file or directory
> /usr/src/secure/usr.sbin/sshd/../../../crypto/openssh/audit-bsm.c:51:30: bsm/audit_record.h: No such file or directory
> mkdep: compile failed
> *** Error code 1
> 
> But make buildworld did the job without error ( at the end of compilation )
> If I try to copy libbsm.so/a/1 ( or install libbsm ) to the /usr/lib - sshd can be launched, , but does not allow to login (
> abort connection ) without any messages in the log.
> 
> --
> Pavel Sokolov
> 

man ldconfig
Try to `ldconfig -m /PATH/TO/LIB` - here PATH_TO_LIB not meaning point 
to lib as it s but only on dir where it placed.
if it works fine insert into /etc/defaults/rc.conf in ``ldconfig'' section.
Hope it works.
And use portupgrade for the future, because it places copy to 
/usr/local/lib/compat of previous versions of needed libs...

--
Oleg D.

-- 
don't believe every word people use to say, they might be wrong.

an undefined problem has infinitive number of solutions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3233 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060916/87acfcac/smime.bin


More information about the freebsd-stable mailing list