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

Gaiseric Vandal gaiseric.vandal at gmail.com
Mon Apr 24 14:11:49 UTC 2017


Is an older version of samba still installed?

It would probably have been safer to set prefix as /usr/local  or 
/usr/local/samba instead of /usr.    That reduces the chance of 
overwriting key system files and it makes it easier to roll back a the 
install.  You do need to then set LD_LIBRARY_PATH and PATH before 
running samba.


You may want to install the version you built, reinstall the default 
version using apt, and then recompile samba 4.x to /usr/local.


Is this a production system?  Could you upgrade to Ubuntu 16 LTS?




On 04/24/17 09:06, Amritanshu via samba wrote:
> 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