1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/ctdb
Ralph Boehme f5388f9779 ctdb: fix compilation on systems with glibc robust mutexes
On older systems like SLES 11 without POSIX robust mutexes, but with glib robust
mutexes where all the functions are available but have a "_np" suffix,
compilation fails in:

ctdb/tests/src/test_mutex_raw.c.239.o: In function `worker':
/root/samba-4.10.6/bin/default/../../ctdb/tests/src/test_mutex_raw.c:129: undefined reference to `pthread_mutex_consistent'
ctdb/tests/src/test_mutex_raw.c.239.o: In function `main':
/root/samba-4.10.6/bin/default/../../ctdb/tests/src/test_mutex_raw.c:285: undefined reference to `pthread_mutex_consistent'
/root/samba-4.10.6/bin/default/../../ctdb/tests/src/test_mutex_raw.c:332: undefined reference to `pthread_mutexattr_setrobust'
/root/samba-4.10.6/bin/default/../../ctdb/tests/src/test_mutex_raw.c:363: undefined reference to `pthread_mutex_consistent'
collect2: ld returned 1 exit status

This could be fixed by using libreplace system/threads.h instead of pthreads.h
directly, but as there has been a desire to keep test_mutex_raw.c standalone and
compilable without other external depenencies then libc and libpthread, make the
tool developer build only. This should get the average user over the cliff.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14038
RN: Fix compiling ctdb on older systems lacking POSIX robust mutexes

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
2019-08-06 14:23:36 +00:00
..
client ctdb-client: Fix potentially uninitialised data 2019-06-05 10:25:50 +00:00
cluster ctdb-cluster: CID 1435726: NULL pointer dereference 2019-06-05 10:25:50 +00:00
common ctdb-common: Fix empty value handling in conf 2019-07-26 03:34:16 +00:00
config ctdb-scripts: Simplify 01.reclock.script 2019-07-26 04:52:04 +00:00
database ctdb-database: Fix signed/unsigned comparison by casting 2019-07-05 05:03:24 +00:00
doc ctdb-tools: Drop onnode -o option 2019-07-05 05:03:22 +00:00
event ctdb-event: Fix signed/unsigned comparisons by casting 2019-07-05 05:03:24 +00:00
failover ctdb-failover: Add failover configuration options 2018-08-24 10:59:21 +02:00
ib ctdb-ib: Drop a bit-rotted test example from the README 2018-03-19 02:23:17 +01:00
include ctdb-daemon: Drop unused function ctdb_vfork_with_logging() 2019-07-05 05:03:24 +00:00
packaging/RPM ctdb-packaging: Test package requires tcpdump 2019-03-15 05:17:14 +00:00
protocol ctdb-protocol: Avoid signed/unsigned comparison by casting 2019-07-05 05:03:24 +00:00
server ctdb-mutex: Add support for exiting if the lock file disappears 2019-07-26 03:34:17 +00:00
tcp ctdb-daemon: Replace function ctdb_ip_to_nodeid() with ctdb_ip_to_pnn() 2019-07-05 05:03:23 +00:00
tests ctdb-scripts: Drop monitoring of recovery lock 2019-07-26 03:34:17 +00:00
tools ctdb-tools: CID 1449530 - Negative loop bound 2019-07-05 06:49:16 +00:00
utils ctdb-utils: Fix CID 1125558 (Unchecked return value from library) 2019-06-05 12:09:56 +00:00
.bzrignore
.gitignore ctdb-build: use a fixed ctdb_version.h using SAMBA_VERSION_STRING 2019-03-15 05:17:14 +00:00
configure build: Move python detection back into waf (instead of in configure and Makefile) 2018-12-14 14:40:19 +01:00
configure.rpm ctdb-packaging: Update library versions to upstream versions 2018-12-18 07:12:09 +01:00
COPYING
Makefile build: Move python detection back into waf (instead of in configure and Makefile) 2018-12-14 14:40:19 +01:00
README
wscript ctdb: fix compilation on systems with glibc robust mutexes 2019-08-06 14:23:36 +00:00

This is the release version of CTDB, a clustered implementation of TDB
database used by Samba and other projects to store temporary data.

This software is freely distributable under the GNU public license,
a copy of which you should have received with this software (in a file
called COPYING).

For documentation on CTDB, please visit CTDB website http://ctdb.samba.org.