[Samba] Samba4 fails to work following upgrade - library version errors

Graeme Porter graeme.porter at yahoo.co.uk
Wed Apr 3 10:06:31 MDT 2013


Hello,

I was running Samba4 for a while on my Raspberry Pi (Raspbian distro, running 3.6.11+ #371 PREEMPT armv6l kernel).  The version of Samba I was running was 4.1.0pre1-GIT-fd8b258.

Last night I decided to try to upgrade to see if I could upgrade it without breaking it.


Note that the AD this Pi is the DC for doesn't have any physical clients as members; I was using a Virtual PC running WinXP and another running Ubuntu just to test it out - so technically there's no great loss if it did break - but I do want to start using the Pi as a DC for my physical Windows clients (my family's 3x computers - one Vista, one Win7, and one Win8), and I wanted to ensure I could upgrade it cleanly without loss of service first.


So I used "git pull" to download the latest changes, as described in the Samba4 HOWTO guide.  The configure, make, and make install stages went without a hitch (although the little Pi doesn't exactly blast through the compile, so it took several long hours).  As a just-in-case, I even stopped Samba from running before I ran "make install" just in case the script couldn't overwrite a file that was in use.

So I tried to check which version this had upgraded to by running samba -V:

root at raspberrypi:/usr/local/samba4# samba -V
samba: /usr/local/samba/lib/private/libcliauth.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libauth4.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libevents.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libcluster.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libprocess_model.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libsamdb-common.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required
 by samba)
samba: /usr/local/samba/lib/private/libsamba-modules.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libndr-samba4.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/liberrors.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libservice.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libldbsamba.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libMESSAGING.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libntvfs.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)

... huh.

I hoped that maybe it was just the version argument that stopped working - so I tried to start up the samba daemon (rather than using the "service samba4 start" command I had used previously without fail, as this script suppresses command line output):

root at raspberrypi:/usr/local/samba4# samba
samba: /usr/local/samba/lib/private/libcliauth.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libauth4.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libevents.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libcluster.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libprocess_model.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libsamdb-common.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba:
 /usr/local/samba/lib/private/libsamba-modules.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libndr-samba4.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/liberrors.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libservice.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libldbsamba.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libMESSAGING.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)
samba: /usr/local/samba/lib/private/libntvfs.so: version `SAMBA_4.1.0PRE1_GIT_FD8B258' not found (required by samba)

... and a quick check of "ps -A | grep samba" confirms that it is indeed not running.

I checked that all of the above files actually do exist at the given paths:

root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libcliauth.so
-rwxr-xr-x 1 root staff 157540 Apr  3 08:21 /usr/local/samba/lib/private/libcliauth.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libauth4.so
-rwxr-xr-x 1 root staff 200714 Apr  3 08:40 /usr/local/samba/lib/private/libauth4.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libevents.so
-rwxr-xr-x 1 root staff 6858 Apr  3 08:18 /usr/local/samba/lib/private/libevents.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libcluster.so
-rwxr-xr-x 1 root staff 14230 Apr  3 08:19 /usr/local/samba/lib/private/libcluster.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libprocess_model.so
-rwxr-xr-x 1 root staff 21163 Apr  3 08:20
 /usr/local/samba/lib/private/libprocess_model.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libsamdb-common.so
-rwxr-xr-x 1 root staff 222416 Apr  3 08:21 /usr/local/samba/lib/private/libsamdb-common.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libsamba-modules.so
-rwxr-xr-x 1 root staff 15430 Apr  3 08:19 /usr/local/samba/lib/private/libsamba-modules.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libndr-samba4.so
-rwxr-xr-x 1 root staff 2565327 Apr  3 08:21 /usr/local/samba/lib/private/libndr-samba4.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/liberrors.so
-rwxr-xr-x 1 root staff 406455 Apr  3 08:19 /usr/local/samba/lib/private/liberrors.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libservice.so
-rwxr-xr-x 1 root staff 73408 Apr  3 08:40
 /usr/local/samba/lib/private/libservice.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libldbsamba.so
-rwxr-xr-x 1 root staff 367089 Apr  3 08:22 /usr/local/samba/lib/private/libldbsamba.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libMESSAGING.so
-rwxr-xr-x 1 root staff 71125 Apr  3 08:27 /usr/local/samba/lib/private/libMESSAGING.so
root at raspberrypi:/usr/local/samba4# ls -al /usr/local/samba/lib/private/libntvfs.so
-rwxr-xr-x 1 root staff 2366899 Apr  3 08:39 /usr/local/samba/lib/private/libntvfs.so


The smbclient command also fails with the same issue, so I can't even connect to other PCs.


I got the Pi primarily to learn Linux as I am not an experienced Linux user (Windows and Cisco IOS guy here) - I have no idea how to check what version each of these files actually is - so I'm not really sure what to try out next.

Can anyone give me any pointers?  It'd be nice to get this back up and running.

Kind regards
Graeme Porter


More information about the samba mailing list