How to build Samba4 using static linked libraries

peixing.sun at emc.com peixing.sun at emc.com
Mon May 7 10:21:29 MDT 2012


Hi All:

I am building the  torture/smbtorture for    samba-4.0.0alpha17.  After build,  I am running the test in another environment.
I not only need to copy the binary smbtorture,  I also need to copy the shared libraries.   This is HUGE inconvenient for us.

Could somebody tell me how to build the binary using static linked libraries?

Thanks very much

Peixing

libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003745400000)
        libcmdline-credentials.so => not found
        libldb.so.1 => not found
        libcli-nbt.so => not found
        libsamdb-common.so => not found
        libsmbclient.so.0 => /usr/lib64/libsmbclient.so.0 (0x00002b7566e79000)
        libsmbclient-raw.so.0 => not found
        libtevent-util.so.0 => not found
        libreplace.so => not found
        libcluster.so => not found
        libsamba-credentials.so.0 => not found
        libUTIL_TDB.so => not found
        libndr-samba.so => not found
        libauthkrb5.so => not found
        libsamba-hostconfig.so.0 => not found
        libldbsamba.so => not found
        libcliauth.so => not found
        liberrors.so => not found
        libnetapi.so.0 => not found
        libsamdb.so.0 => not found
        libndr-samba4.so => not found
        libwbclient.so.0 => not found
        libshares.so => not found
        libsmbpasswdparser.so => not found
        libcli-ldap.so => not found
        libdcerpc-binding.so.0 => not found
        libevents.so => not found
        libgensec.so.0 => not found
        libtorture.so.0 => not found
        libsamba-net.so => not found
        libdcerpc.so.0 => not found
        libdsdb-module.so => not found
        libregistry.so.0 => not found
        libasn1util.so => not found
        libtevent.so.0 => not found
        libsamba-sockets.so => not found
        libcli_cldap.so => not found
        libnetif.so => not found
        libtdb-wrap.so => not found
        libservice.so => not found
        libndr.so.0 => not found
        libtalloc.so.2 => not found
        libauth4.so => not found
        libntvfs.so => not found
        libdcerpc-samba.so => not found
        libndr-standard.so.0 => not found


More information about the samba-technical mailing list