ldb linking issue, waf related?

Isaac Boukris iboukris at gmail.com
Fri Sep 14 06:40:48 UTC 2018


On Fri, Sep 14, 2018 at 11:56 AM, Isaac Boukris <iboukris at gmail.com> wrote:
> Hi Andrew,
>
> On Fri, Sep 14, 2018 at 10:43 AM, Andrew Bartlett <abartlet at samba.org> wrote:
>> On Fri, 2018-09-14 at 09:40 +0530, Isaac Boukris via samba-technical
>> wrote:
>>> /usr/local/samba/sbin/samba_kcc: ldb: unable to dlopen
>>> /usr/local/samba/lib/ldb/ldb.so : libldb_module_tdb.so: cannot open
>>> shared object file: No such file or directory
>>>
>>> And ldd shows:
>>> $ ldd /usr/local/samba/lib/ldb/ldb.so |grep tdb.so
>>>         libldb_module_tdb.so => not found
>>>         libtdb.so.1 => /usr/local/samba/lib/private/libtdb.so.1
>>> (0x00007faf850e6000)
>>>
>>> I tried to look into it, but I really don't understand waf.
>>
>> waf doesn't delete tdb.so (found in Samba 4.8) and then you build Samba
>> 4.9 or later.
>>
>> While typically we only create new shared libraries and modules,
>> sometimes we rename or remove them, and installing over the top then
>> creates a mix, which is what has happened here.
>
>
> I tried a full cleanup, but ldd still shows not-found.
>
> $ sudo rm -rf /usr/local/samba
> $ sudo rm -rf *
>
> $ git fetch
> $ git reset --hard origin/master
>
> $ ./configure --enable-debug --enable-selftest && make -j4
> $ sudo make install
>
> $ ldd /usr/local/samba/lib/ldb/ldb.so |grep tdb.so
>         libldb_module_tdb.so => not found
>
> $ find . -name libldb_module_tdb.so
> ./bin/default/lib/ldb/libldb_module_tdb.so
>
> $ sudo find /usr/local/samba -name libldb_module_tdb.so
> (none)
>
> Perhaps we just miss to install libldb_module_tdb.so lib?

Actually, the make-install output shows:
+ install /usr/local/samba/lib/ldb/tdb.so (from
bin/default/lib/ldb/libldb_module_tdb.inst.so)

So perhaps 'ldb.so' should be linked with 'tdb.so' instead of
'libldb_module_tdb.so' ?
It currently shows:
$ readelf -d /usr/local/samba/lib/ldb/ldb.so |grep libldb_module_tdb
 0x0000000000000001 (NEEDED)             Shared library: [libldb_module_tdb.so]



More information about the samba-technical mailing list