litecoin – I get error whereas compiling os_yield.c:(.textual content+0x90): undefined reference to `pthread_yield’

0
44


I compile Litecoin Core v0.21.2.2 from supply beneath Devuan 5 Daedalus and get error.

./autogen
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/embody"
make
make[3]: Leaving listing '/residence/y/crypto/ltc/litecoin-0.21.2.2'
  CXXLD    litecoind
/usr/bin/ld: /usr/native/db4/lib/libdb_cxx-4.8.a(os_yield.o): in perform `__os_yield':
os_yield.c:(.textual content+0x90): undefined reference to `pthread_yield'
collect2: error: ld returned 1 exit standing
make[2]: *** [Makefile:8919: litecoind] Error 1
make[2]: Leaving listing '/residence/y/crypto/ltc/litecoin-0.21.2.2/src'
make[1]: *** [Makefile:21423: all-recursive] Error 1
make[1]: Leaving listing '/residence/y/crypto/ltc/litecoin-0.21.2.2/src'
make: *** [Makefile:815: all-recursive] Error 1

gcc --version
gcc (Debian 12.2.0-14) 12.2.0

lsb_release -a
No LSB modules can be found.
Distributor ID: Devuan
Description:    Devuan GNU/Linux 5 (daedalus)
Launch:    5
Codename:   daedalus

uname -a
Linux devuan 6.1.0-13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.55-1 (2023-09-29) x86_64 GNU/Linux

Please, what to do with pthread_yield ?

LEAVE A REPLY

Please enter your comment!
Please enter your name here