Sumit Bose wrote:
On Wed, Apr 27, 2016 at 07:06:55PM +0200, Michael Ströder wrote:
One issue with memberof module installed into /usr/lib/x86_64-linux-gnu/ldb/modules/:
ldb: unable to dlopen /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/memberof.la : /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/memberof.la: invalid ELF header
just remove /usr/lib/x86_64-linux-gnu/ldb/modules/ldb/memberof.la. The *.la files are libtool helper files and are installed by default by the automake generated makefiles.
libldb unconditionally tries to open all files in the modules directory not only *.so files. One might argue if this is a bug or a feature, nevertheless you have to make sure that there are only 'real' modules in this directory. Since other packages might be confused by the *.la files as well we remove all when creating packages with the provided spec file:
# Remove .la files created by libtool find $RPM_BUILD_ROOT -name "*.la" -exec rm -f {} ;
Thanks a lot for this useful information!
Ciao, Michael.