ldb linking issue, waf related?

Andrew Bartlett abartlet at samba.org
Sat Sep 15 13:54:00 UTC 2018


On Fri, 2018-09-14 at 12:10 +0530, Isaac Boukris wrote:
> On Fri, Sep 14, 2018 at 11:56 AM, Isaac Boukris <iboukris at gmail.com>
> wrote:
> > 
>> > 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]

I'm sorry, I can't reproduce on Ubuntu 16.04 with current master.  I've
also checked the code, and ldb.so shouldn't depend on the module
tdb.so, but on ldb_tdb_int (expressed as libldb-tdb-int-samba4.so).

What OS are you on?

Sorry,

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba






More information about the samba-technical mailing list