libtdb.so: version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by bin/tdbbackup)

Amitay Isaacs amitay at gmail.com
Fri Feb 3 04:52:26 MST 2012


Hi Horacio,

On Fri, Feb 3, 2012 at 3:32 PM, Horacio G. de Oro <hgdeoro at gmail.com> wrote:
> Hi! I'm trying to install Samba4 (from Git) on CentOS 6.2. When I run
> the provision script, fails (I've added a "print" and
> "pdb.set_trace()" to see what's happening, so the line numbers may
> differ a little):
>
> $ sudo ./source4/setup/provision --realm=samba4-git.hgdeoro.com.ar
> --domain=HGDEORODEV --adminpass=fikPydNogUs6 --server-role='domain
> controller'
> Looking up IPv4 addresses
> Looking up IPv6 addresses
> No IPv6 address will be assigned
> Setting up share.ldb
> Setting up secrets.ldb
> Setting up the registry
> Setting up the privileges database
> Setting up idmap db
> Setting up SAM db
> Setting up sam.ldb partitions and settings
> Setting up sam.ldb rootDSE
> Pre-loading the Samba 4 and AD schema
> Adding DomainDN: DC=samba4-git,DC=hgdeoro,DC=com,DC=ar
> Adding configuration container
> Setting up sam.ldb schema
> Setting up sam.ldb configuration data
> Setting up display specifiers
> Adding users container
> Modifying users container
> Adding computers container
> Modifying computers container
> Setting up sam.ldb data
> Setting up well known security principals
> Setting up sam.ldb users and groups
> Setting up self join
> Adding DNS accounts
> Populating CN=MicrosoftDNS,CN=System,DC=samba4-git,DC=hgdeoro,DC=com,DC=ar
> Creating DomainDnsZones and ForestDnsZones partitions
> Populating DomainDnsZones partition
> Populating ForestDnsZones partition
> bin/tdbbackup: /home/horacio/samba-master/bin/shared/private/libtdb.so:
> version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by
> bin/tdbbackup)
> system.os -> bin/tdbbackup -s '.dns' /opt/samba4-3bea5a147b/private/sam.ldb
>> /home/horacio/samba-master/bin/python/samba/provision/sambadns.py(691)tdb_copy()
> -> raise Exception("Error copying %s" % file1)
> (Pdb) l 680,700
> 680         for d in dirs:
> 681             toolpath = os.path.join(d, "tdbbackup")
> 682             if os.path.exists(toolpath):
> 683                 break
> 684         status = os.system("%s -s '.dns' %s" % (toolpath, file1))
> 685
> 686         print "system.os -> %s -s '.dns' %s" % (toolpath, file1)
> 687         if status == 0:
> 688             os.rename("%s.dns" % file1, file2)
> 689         else:
> 690             import pdb; pdb.set_trace()
> 691  ->         raise Exception("Error copying %s" % file1)
> 692
> 693     def create_samdb_copy(samdb, logger, paths, names, domainsid,
> domainguid):
> 694         """Create a copy of samdb and give write permissions to
> named for dns partitions
> 695         """
> 696         private_dir = paths.private_dir
> 697         samldb_dir = os.path.join(private_dir, "sam.ldb.d")
> 698         dns_dir = os.path.dirname(paths.dns)
> 699         dns_samldb_dir = os.path.join(dns_dir, "sam.ldb.d")
> 700
> (Pdb) status
> 256
> (Pdb) print "%s -s '.dns' %s" % (toolpath, file1)
> bin/tdbbackup -s '.dns' /opt/samba4-3bea5a147b/private/sam.ldb
> (Pdb) c
> Failed to setup database for BIND, AD based DNS cannot be used
> Traceback (most recent call last):
>  File "./source4/setup/provision", line 256, in <module>
>    useeadb=eadb, next_rid=opts.next_rid, lp=lp)
>  File "bin/python/samba/provision/__init__.py", line 1757, in provision
>    am_rodc=am_rodc, lp=lp)
>  File "bin/python/samba/provision/__init__.py", line 1491, in provision_fill
>    targetdir=targetdir, site=DEFAULTSITE)
>  File "bin/python/samba/provision/sambadns.py", line 993, in setup_ad_dns
>    create_samdb_copy(samdb, logger, paths, names, domainsid, domainguid)
>  File "bin/python/samba/provision/sambadns.py", line 754, in create_samdb_copy
>    os.path.join(dns_dir, "sam.ldb"))
>  File "bin/python/samba/provision/sambadns.py", line 691, in tdb_copy
>    raise Exception("Error copying %s" % file1)
> Exception: Error copying /opt/samba4-3bea5a147b/private/sam.ldb
>
>
> The commands that fails is "bin/tdbbackup -s '.dns'
> /opt/samba4-3bea5a147b/private/sam.ldb". Re-running that command with
> sudo from the terminal fails with an exit status of 1:
>
> $ bin/tdbbackup -s '.dns' /opt/samba4-3bea5a147b/private/sam.ldb
> bin/tdbbackup: /home/horacio/samba-master/bin/shared/private/libtdb.so:
> version `SAMBA_4.0.0ALPHA18_DEVELOPERBUILD' not found (required by
> bin/tdbbackup)
>
> FYI, ldd shows:
>
> $ ldd  -v /home/horacio/samba-master/bin/shared/private/libtdb.so
>        linux-vdso.so.1 =>  (0x00007fffb3755000)
>        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6a12bff000)
>        libccan.so.0 =>
> /home/horacio/samba-master/bin/shared/private/libccan.so.0
> (0x00007f6a129f8000)
>        libc.so.6 => /lib64/libc.so.6 (0x00007f6a12657000)
>        /lib64/ld-linux-x86-64.so.2 (0x00007f6a1304d000)
>
>        Version information:
>        /home/horacio/samba-master/bin/shared/private/libtdb.so:
>                libccan.so.0 (SAMBA_4.0.0ALPHA18_GIT_F0A5C22) =>
> /home/horacio/samba-master/bin/shared/private/libccan.so.0
>                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
>                libpthread.so.0 (GLIBC_2.2.5) => /lib64/libpthread.so.0
>        /lib64/libpthread.so.0:
>                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
>                ld-linux-x86-64.so.2 (GLIBC_2.2.5) =>
> /lib64/ld-linux-x86-64.so.2
>                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) =>
> /lib64/ld-linux-x86-64.so.2
>                libc.so.6 (GLIBC_2.3.2) => /lib64/libc.so.6
>                libc.so.6 (GLIBC_PRIVATE) => /lib64/libc.so.6
>                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
>        /home/horacio/samba-master/bin/shared/private/libccan.so.0:
>                libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6
>        /lib64/libc.so.6:
>                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) =>
> /lib64/ld-linux-x86-64.so.2
>                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
>
> The Git commit is 3bea5a147b2a381fc4fa860c7b1ceeed11be4e80.
>
> Is this a known problem? Maybe I'm doing something wrong, I'm folowing
> the instructions from https://wiki.samba.org/index.php/Samba4/HOWTO
>
> Thanks in advance!
> Horacio de Oro

Can you check if you have installed tdb library on the system? And what
does ldd on tdbbackup show?

It appears that you are provisioning using the compiled version and not
after doing make install. Is that right?

What was the configure command you used?

Amitay.


More information about the samba-technical mailing list