Bug 11319 - Build fails on Solaris 11 with "‘PTHREAD_MUTEX_ROBUST’ undeclared"
Summary: Build fails on Solaris 11 with "‘PTHREAD_MUTEX_ROBUST’ undeclared"
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Build (show other bugs)
Version: unspecified
Hardware: Sparc Solaris
: P5 major (vote)
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on: 11331
  Show dependency treegraph
Reported: 2015-06-08 13:35 UTC by Dagobert Michelsen
Modified: 2018-04-24 07:43 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Dagobert Michelsen 2015-06-08 13:35:01 UTC
The build of Samba in Git master is failing on Solaris 11 Sparc with the following

[1141/3921] Compiling lib/tdb/common/mutex.c
../lib/tdb/common/mutex.c: In function ‘tdb_mutex_init’:
../lib/tdb/common/mutex.c:582:41: error: ‘PTHREAD_MUTEX_ROBUST’ undeclared (first use in this function)
  ret = pthread_mutexattr_setrobust(&ma, PTHREAD_MUTEX_ROBUST);
Details can be seen in the log at
or the overview at

Best regards -- Dago
Comment 1 Lars Müller 2015-06-28 17:26:45 UTC
Please test with tdb 1.3.6 as available from https://download.samba.org/pub/tdb

See bug#11326c11326

Does updating tdb to version 1.3.6 fix this issue for you?
Comment 2 Lars Müller 2015-06-28 17:30:36 UTC
bug 11326, comment 11 I intended to reference with previous comment
Comment 3 Dagobert Michelsen 2015-07-01 09:00:57 UTC
This looks better now, it now also fails on Solaris 11 with #11368
Comment 4 Dagobert Michelsen 2015-07-01 09:01:41 UTC
Failed to link: bug#11368
Comment 5 Dagobert Michelsen 2015-07-01 09:02:56 UTC
Sorry, bug#11318
Comment 6 Stefan Metzmacher 2018-04-24 07:43:01 UTC
Fixed with tdb: version 1.3.6