It can be done...

Michael Felt michael at felt.demon.nl
Tue Aug 1 18:35:10 UTC 2017


On 01/08/2017 17:25, Michael Felt via samba-technical wrote:
>
> FYI: the blibpath on the smbd is: EXTENSIVE and inaccurate (relative)
>
> 0 
> default/source4/lib/socket:default/source4/lib/http:default/source4/libcli:default/libcli/nbt:default/source4/cluster:default/source4/libcli/ldap:default/source4/auth:default/source4/libcli/wbclient:default/source4/lib/messaging:default/nsswitch:default/source4/lib/events:default/lib/tdb_wrap:default/source4/librpc:default/libcli/smb:default/libcli/cldap:default/lib/addns:default/auth/gensec:default/source4/auth/ntlm:default/third_party/popt:default/libds/common:default/nsswitch/libwbclient:default/auth/credentials:default/lib/ldb-samba:default/lib/param:default/source4/auth/kerberos:default/libcli/ldap:default/lib/ldb:default/libcli/registry:default/lib:default/lib/krb5_wrap:default/lib/dbwrap:default/source3/auth:default/lib/tdb:default/auth:default/lib/socket:default/libcli/auth:default/libcli/named_pipe_auth:default/source4/dsdb:default/libcli/security:default/libcli/util:default/librpc:default/source4/heimdal_build:default/dfs_server:default/lib/tevent:default/lib/replace:default/lib/talloc:default/source3:default/lib/util:/usr/local/lib:/opt/lib:/usr/vac/lib:/usr/lib:/lib 
>
> 1                                    libpthread.a shr_xpg5_64.o
> 2                                    libsamba-util.so
> 3                                    libsmbd-base-samba4.so
> ...
> 103                                  libcli-nbt-samba4.so
> 104                                  libsmbclient-raw-samba4.so
> 105                                  libhttp-samba4.so
> 106                                  libnetif-samba4.so
> 107                                  libnsl.a            shr_64.o
> 108                                  libc.a              shr_64.o
>
> I would hope there is a better way to install shared libraries!

Ok, reran config and changed prefix to /opt

What I had not noticed before is that not only is the installed LIBPATH 
(behind the 0) long and relative, the directories do not exist in the 
installed area.

After

LIBPATH=/opt/lib:/opt/lib/auth:/opt/lib/bind9:/opt/lib/gensec:/opt/lib/idmap:/opt/lib/ldb:/opt/lib/nss_info:/opt/lib/private:/opt/lib/process_model:/opt/lib/python2.7/site-packages/samba:/opt/lib/security:/opt/lib/service:/opt/lib/vfs

export LIBPATH

Now I get:

root at x069:[/data/prj/samba/samba-4.4.15]ldd /opt/sbin/samba
/opt/sbin/samba needs:
          /usr/lib/libpthread.a(shr_xpg5_64.o)
Cannot find libldb.so
          /opt/lib/libsamba-hostconfig.so
          /opt/lib/private/libcluster-samba4.so
          /opt/lib/libsamba-credentials.so
          /opt/lib/private/libpopt-samba4.so
          /opt/lib/private/libldbsamba-samba4.so
          /opt/lib/private/libcliauth-samba4.so
          /opt/lib/private/libservice-samba4.so
          /opt/lib/private/libshares-samba4.so
          /opt/lib/private/libutil-tdb-samba4.so
          /opt/lib/private/libsamba-security-samba4.so
          /opt/lib/private/libevents-samba4.so
          /opt/lib/private/libgensec-samba4.so
          /opt/lib/libsamba-util.so
          /opt/lib/private/libregistry-samba4.so
Cannot find libtevent.so
          /opt/lib/private/libtdb-wrap-samba4.so
Cannot find libtalloc.so
          /opt/lib/private/libauth4-samba4.so
          /opt/lib/libndr.so
          /opt/lib/private/libprocess-model-samba4.so
Cannot find libtdb.so
          /opt/lib/private/libreplace-samba4.so
          /opt/lib/private/libserver-role-samba4.so
          /opt/lib/private/libdbwrap-samba4.so
          /opt/lib/private/libsamdb-common-samba4.so
Cannot find libcom_err-samba4.so
Cannot find libgssapi-samba4.so
          /opt/lib/private/libkrb5samba-samba4.so
          /opt/lib/libsamba-errors.so
          /opt/lib/private/libauthkrb5-samba4.so
          /opt/lib/private/libndr-samba-samba4.so
          /opt/lib/private/libasn1util-samba4.so
          /opt/lib/libndr-nbt.so
          /opt/lib/private/libndr-samba4.so
          /opt/lib/libtevent-util.so
          /opt/lib/private/libMESSAGING-samba4.so
          /opt/lib/private/libnpa-tstream-samba4.so
          /opt/lib/libdcerpc.so
          /opt/lib/private/libsamba-sockets-samba4.so
          /opt/lib/libsamdb.so
          /opt/lib/private/libsamba-modules-samba4.so
          /opt/lib/libwbclient.so
          /opt/lib/private/libsamba-debug-samba4.so
          /opt/lib/private/libtime-basic-samba4.so
          /opt/lib/private/libutil-setid-samba4.so
          /opt/lib/private/libgenrand-samba4.so
          /opt/lib/private/libsocket-blocking-samba4.so
          /opt/lib/private/libutil-reg-samba4.so
          /opt/lib/private/libdcerpc-samba-samba4.so
          /opt/lib/private/libLIBWBCLIENT-OLD-samba4.so
          /opt/lib/private/libauth-unix-token-samba4.so
          /opt/lib/private/libdcerpc-samba4.so
          /opt/lib/private/libflag-mapping-samba4.so
          /opt/lib/private/libcli-ldap-common-samba4.so
Cannot find libroken-samba4.so
Cannot find libkrb5-samba4.so
Cannot find libasn1-samba4.so
Cannot find libhcrypto-samba4.so
Cannot find libwind-samba4.so
          /opt/lib/libndr-krb5pac.so
          /opt/lib/private/libauth-sam-reply-samba4.so
          /opt/lib/libndr-standard.so
          /opt/lib/private/libmessages-util-samba4.so
          /opt/lib/private/libtalloc-report-samba4.so
          /opt/lib/private/libserver-id-db-samba4.so
          /opt/lib/private/libaddns-samba4.so
          /opt/lib/private/libcli-nbt-samba4.so
          /opt/lib/private/libsmbclient-raw-samba4.so
          /opt/lib/libdcerpc-binding.so
          /opt/lib/private/libhttp-samba4.so
          /opt/lib/private/libcli-cldap-samba4.so
          /opt/lib/private/libnetif-samba4.so
          /opt/lib/private/libcli-smb-common-samba4.so
          /opt/lib/private/libiov-buf-samba4.so
          /opt/lib/private/libwinbind-client-samba4.so
          /opt/lib/private/libsys-rw-samba4.so
Cannot find libheimbase-samba4.so
Cannot find libhx509-samba4.so
          /opt/lib/private/libmessages-dgm-samba4.so
          /opt/lib/libsmbconf.so
          /opt/lib/private/libsamba-cluster-support-samba4.so
          /opt/lib/private/libsamba3-util-samba4.so
          /opt/lib/private/libmsghdr-samba4.so
          /opt/lib/private/libinterfaces-samba4.so
          /opt/lib/private/libcli-ldap-samba4.so
          /opt/lib/private/libsmb-transport-samba4.so
          /opt/lib/private/libCHARSET3-samba4.so
          /opt/lib/private/libsmbregistry-samba4.so
          /opt/lib/private/libsmbd-shim-samba4.so
          /usr/lib/libnsl.a(shr_64.o)
          /usr/lib/libc.a(shr_64.o)
          /unix

The reminder seems to loop - at best, just go on forever.

Cannot find libtdb.so
Cannot find libtalloc.so
Cannot find libtevent.so
Cannot find libtalloc.so
Cannot find libtdb.so
Cannot find libtevent.so
Cannot find libldb.so
Cannot find libcom_err-samba4.so
Cannot find libgssapi-samba4.so
Cannot find libtevent.so
Cannot find libtalloc.so
Cannot find libtdb.so
Cannot find libroken-samba4.so

Night Night!





More information about the samba-technical mailing list