ldb linking issue, waf related?
Isaac Boukris
iboukris at gmail.com
Fri Sep 14 06:26:58 UTC 2018
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?
Regards.
More information about the samba-technical
mailing list