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

Bug#749095: ldb: FTBFS on hurd



Source: ldb
Severity: important
Tags: patch
Control: block -1 by 748943

ldb FTBFS on hurd:

ldbadd: ./pthread/../sysdeps/generic/pt-mutex-timedlock.c:70: __pthread_mutex_timedlock_internal: Assertion `__pthread_threads' failed.

Attached patch fixes pthread linking issue (probably fixable in a better
way) but it keeps FTBFS'ing due to lack of record locking implementation.

$ /usr/bin/python2.7 ./buildtools/bin/waf test
ltdb: tdb(bin/st/tdbtest.ldb): tdb_lock failed on list 4964 ltype=1 (Not supported)
Failed to connect to 'bin/st/tdbtest.ldb' with backend 'tdb': Unable to load ltdb cache records of tdb 'bin/st/tdbtest.ldb'
Failed to connect to bin/st/tdbtest.ldb - Unable to load ltdb cache records of tdb 'bin/st/tdbtest.ldb' testsuite returned 1

--- ldb-1.1.16.orig/wscript
+++ ldb-1.1.16/wscript
@@ -67,6 +67,9 @@ def configure(conf):
         if not sys.platform.startswith("openbsd"):
             conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
 
+        if sys.platform.startswith("gnu"):
+            conf.ADD_LDFLAGS('-pthread', testflags=True)
+
     conf.DEFINE('HAVE_CONFIG_H', 1, add_to_cflags=True)
 
     conf.SAMBA_CONFIG_H()

Reply to: