[sudo-users] Sudo 1.8.1p2 sudo: unable to dlopen error

Rakesh Rajasekharan rakesh.rajasekharan at gmail.com
Fri Sep 16 04:39:45 EDT 2011


Yes you were correct. I got the below error with ldd

*# ldd /opt/soe/local/sudo-1.8.1/libexec/sudoers.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libc.2 =>      /usr/lib/libc.2
*
*/usr/lib/dld.sl: Can't find path for shared library: libz.sl
/usr/lib/dld.sl: No such file or directory
*
So, I finally copied these shared libraries to
/opt/soe/local/sudo-1.8.1/libexec   from the machine where  I had originally
compiled .
Now , a lot of the shared library errors have gne except for "linlber.sl"
 ldd /opt/soe/local/sudo-1.8.1/libexec/sudoers.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libz.sl =>       /opt/soe/local/sudo-1.8.1/libexec/
libz.sl
        /usr/local/lib/libcrypto.sl =>  /opt/soe/local/sudo-1.8.1/libexec/
libcrypto.sl
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/local/lib/libssl.sl =>     /opt/soe/local/sudo-1.8.1/libexec/
libssl.sl
        /usr/lib/libdld.2 =>    /usr/lib/libdld.2
        /usr/local/lib/libcrypto.sl =>  /opt/soe/local/sudo-1.8.1/libexec/
libcrypto.sl
        */usr/local/lib/liblber.sl =>    /opt/soe/local/sudo-1.8.1/libexec/
liblber.sl
*        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libldap.sl =>    /opt/soe/local/sudo-1.8.1/libexec/
libldap.sl
        /usr/lib/libc.2 =>      /usr/lib/libc.2
        /usr/local/lib/libcrypto.sl =>  /opt/soe/local/sudo-1.8.1/libexec/
libcrypto.sl
        /usr/local/lib/libssl.sl =>     /opt/soe/local/sudo-1.8.1/libexec/
libssl.sl
*/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/liblber.sl
/usr/lib/dld.sl: No such file or directory*
*

*
liblber.sl is present under the same path as the above ones and even though
it found it first time , for the second seems like it wants it
in some different location "/usr/local/lib". I though, have fixed it by
copying it from /opt/soe/local/sudo-1.8.1/libexec to /usr/local/lib
and now it works fine.
I have to distribute my compiled binary on 11.11 to other higher HPPA
versions.
My question here is , is this approachas done in above case to have the
libraries copied from the system correct

Please let me know.

Thanks,
Rakesh
On Thu, Sep 15, 2011 at 6:07 PM, Todd C. Miller
<Todd.Miller at courtesan.com>wrote:

> My guess is that you don't have the LDAP libraries installed on the
> other machines.  Try running:
>
>  # ldd /opt/soe/local/sudo-1.8.1/libexec/sudoers.sl
>
> In the "shared library list" you should see something like this:
>
>         shared library list:
>             dynamic   /usr/lib/libpam.1
>             dynamic   /usr/lib/libldap.sl
>             dynamic   /usr/lib/libc.2
>
>
> If any of the dynamic libraries listed there are missing you will get
> the dlopen failure you reported.
>
>  - todd
>



More information about the sudo-users mailing list