[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Pkg-samba-maint] Bug#749095: ldb: FTBFS on hurd

On 23/08/2014 22:31, Jelmer Vernooij wrote:
On Sat, Aug 23, 2014 at 02:43:28PM -0400, Manuel Menal wrote:
Actually, it is the right patch for hurd-i386. This is a known issue on
the Hurd's libpthread (ldb needs to be linked with pthread explicitly
because it uses tdb which itself uses libpthread).
I'm not sure I follow. tdb doesn't use pthreads either.

Sorry, my bad, I was confused by the fact that there is code using pthreads in tdb, but it's not used on GNU/Hurd indeed.

The problem is actually the ldap module, which uses pthreads (via libldap):

mmenal@hurd1:~/ldb-1.1.17$ ldd bin/modules/ldb/ldap.so |grep pthread
        libpthread.so.0.3 => /lib/i386-gnu/libpthread.so.0.3 (0x01464000)

This module gets dlopen()'ed by ldb_init(), which triggers the bug mentioned (which is also described here: http://www.gnu.org/software/hurd/faq/libpthread_dlopen.html).

Linking ldb against pthread on GNU/Hurd actually fixes the problem.
Manuel Menal

Reply to: