Amritanshu
2017-Apr-24 13:06 UTC
[Samba] unable to run samba 4.6.2 bits compiled from source
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.
Reindl Harald
2017-Apr-24 14:04 UTC
[Samba] unable to run samba 4.6.2 bits compiled from source
Am 24.04.2017 um 15:06 schrieb Amritanshu via samba> 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) > 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.loga lot of mistakes * don't run configure and make with root permissions * don't use --prefix=/usr and spit your build without proper packaging and so dependency solving in the middle of your package based os install * the second "sudo make" (the only one with sudo) should have been "sudo make install"
Gaiseric Vandal
2017-Apr-24 14:11 UTC
[Samba] unable to run samba 4.6.2 bits compiled from source
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.
Possibly Parallel Threads
- how to reduce binary size of SAMBA 4 for embeded device
- dnf-makecache.service failing every few days and dnf-automatic.service samba sssd issues (again).
- logging lines in krb5.conf
- libwbclient not found
- Compiling samba4 hangs at [1815/3978] Compiling librpc/ndr/ndr_basic.c