[Samba] compile samba as a static binary
Christian Volk
volk.christian at netcom-sicherheitstechnik.de
Tue Oct 18 11:06:07 GMT 2005
Hi everybody!
I want to compile samba 3.0.20b for an embedded system with minimal
features.
It should only work as a simple fileserver.
For my first attempts, i tried to compile a static smbd binary with
following steps:
./configure --enable-static=yes --enable-shared=no --disable-cups
-without-sys-quotas --without-ads
make
after thad i did a
ldd smbd
linux-gate.so.1 => (0x00111000)
libldap-2.2.so.7 => /usr/lib/libldap-2.2.so.7 (0x008cf000)
liblber-2.2.so.7 => /usr/lib/liblber-2.2.so.7 (0x007cc000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00785000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00b34000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00c0e000)
libdl.so.2 => /lib/libdl.so.2 (0x00112000)
libpopt.so.0 => /usr/lib/libpopt.so.0 (0x005ab000)
libc.so.6 => /lib/tls/libc.so.6 (0x00116000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x00240000)
libssl.so.4 => /lib/libssl.so.4 (0x00a19000)
libcrypto.so.4 => /lib/libcrypto.so.4 (0x005b2000)
/lib/ld-linux.so.2 (0x00ce8000)
libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0x004f5000)
libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x00509000)
libcom_err.so.2 => /lib/libcom_err.so.2 (0x00254000)
libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x0056e000)
libz.so.1 => /usr/lib/libz.so.1 (0x00980000)
What do I have to do to get a smbd binary that doesnt need above libs
anymore?
Regards from Germany
Christian Volk
More information about the samba
mailing list