[Samba] unable to run samba 4.6.2 bits compiled from source

Amritanshu amritanshu at gmail.com
Mon Apr 24 13:06:18 UTC 2017


Hello Samba,

I am running ubuntu 14.04 LTS, kernel version 4.4.0-71-generic
#92~14.04.1-Ubuntu SMP, originally the samba version was 4.3

I got hold of samba 4.6.2 Tar from the official repo, configured, compiled,
and installed the bits. Unfortunately I am running into the following error:

~/work/samba-4.6.2$ smbstatus
smbstatus: /usr/lib/x86_64-linux-gnu/libndr.so.0: version `NDR_0.0.6' not
found (required by /usr/lib/samba/libsmbd-base-samba4.so)
smbstatus: /usr/lib/x86_64-linux-gnu/libndr.so.0: version `NDR_0.0.6' not
found (required by /usr/lib/samba/libndr-samba-samba4.so)
smbstatus: /usr/lib/x86_64-linux-gnu/libndr.so.0: version `NDR_0.0.6' not
found (required by /usr/lib/samba/libsamba-security-samba4.so)
smbstatus: /usr/lib/x86_64-linux-gnu/libndr.so.0: version `NDR_0.0.6' not
found (required by /usr/lib/samba/liblibsmb-samba4.so)
smbstatus: /usr/lib/x86_64-linux-gnu/libndr.so.0: version `NDR_0.0.6' not
found (required by /usr/lib/samba/libndr-samba4.so)

the commands I have used to build the bits are:

sudo ./configure                            \
    --prefix=/usr                      \
    --sysconfdir=/etc                  \
    --localstatedir=/var               \
    --with-piddir=/run/samba           \
    --with-pammodulesdir=/lib/security \
    --without-ad-dc                      \
    --without-systemd                  \
    --enable-debug \
    --enable-fhs                           \
    --enable-selftest
sudo make &>build.log
sudo make &>install.log

Some more info:

~/work/samba-4.6.2$ ls -la /usr/lib/libndr.so
lrwxrwxrwx 1 root root 15 Apr 24 15:47 /usr/lib/libndr.so -> libndr.so.0.0.8
~/work/samba-4.6.2$ ls -la /usr/lib/x86_64-linux-gnu/libndr.so.0
lrwxrwxrwx 1 root root 15 Mar 28 21:11
/usr/lib/x86_64-linux-gnu/libndr.so.0 -> libndr.so.0.0.5

~/work/samba-4.6.2$ which smbstatus
/usr/bin/smbstatus
~/work/samba-4.6.2$ ls -la /usr/bin/smbstatus
-rwxr-xr-x 1 root root 84074 Apr 24 18:03 /usr/bin/smbstatus

I do see in the install logs that this happens:
* installing bin/default/librpc/libndr.inst.so as /usr/lib/libndr.so.0.0.8

What am I missing?
TIA,
Johri.


More information about the samba mailing list