Bitcoin fails to build on OpenBSD 6.5 amd64.
This bug appears to have been introduced in 2c35fe6
gmake exits with the following error:
0 CXX util/libbitcoin_util_a-threadnames.o
1util/threadnames.cpp:26:5: error: use of undeclared identifier
2 'pthread_set_name_np'
3 pthread_set_name_np(pthread_self(), name);
4 ^
51 error generated.
6gmake[2]: *** [Makefile:8653: util/libbitcoin_util_a-threadnames.o] Error 1
7gmake[2]: Leaving directory '/home/bitcoin/bitcoin/src'
8gmake[1]: *** [Makefile:13396: all-recursive] Error 1
9gmake[1]: Leaving directory '/home/bitcoin/bitcoin/src'
10gmake: *** [Makefile:775: all-recursive] Error 1
11Making check in src
12gmake[1]: Entering directory '/home/bitcoin/bitcoin/src'
13gmake[2]: Entering directory '/home/bitcoin/bitcoin/src'
14 CXX util/libbitcoin_util_a-threadnames.o
15util/threadnames.cpp:26:5: error: use of undeclared identifier
16 'pthread_set_name_np'
17 pthread_set_name_np(pthread_self(), name);
18 ^
191 error generated.
20gmake[2]: *** [Makefile:8653: util/libbitcoin_util_a-threadnames.o] Error 1
21gmake[2]: Leaving directory '/home/bitcoin/bitcoin/src'
22gmake[1]: *** [Makefile:13396: check-recursive] Error 1
23gmake[1]: Leaving directory '/home/bitcoin/bitcoin/src'
24gmake: *** [Makefile:775: check-recursive] Error 1
Configured using:
0./configure --with-gui=qt5 CC=cc CXX=c++ \
1 BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" \
2 BDB_CFLAGS="-I${BDB_PREFIX}/include" \
3 LDFLAGS="-L${BDB_PREFIX}/lib -L/usr/X11R6/lib" \
4 CPPFLAGS="-I${BDB_PREFIX}/include -I/usr/X11R6/include" \
5 --disable-dependency-tracking