<!-- Describe the issue -->
Attempted to build master branch on fresh Ubuntu 22.04 using ./autogen.sh ; ./configure ; make
A static build using the depends works just fine, i confirmed just in case, but no dice on this method. Note I compiled bdb myself
System information
Core i7 Intel Ubuntu 22.04 16 GB RAM
Expected behavior
A complete compilation.
<!--- What behavior did you expect? -->
Actual behavior
make[3]: Leaving directory '/home/bitcoin/Downloads/bitcoin/src/secp256k1'
CXXLD bitcoin-tx
CXXLD bitcoind
CXXLD bitcoin-wallet
/usr/bin/ld: /usr/local/lib/libdb_cxx-4.8.a(os_yield.o): in function `__os_yield':
os_yield.c:(.text+0xd1): undefined reference to `pthread_yield'
collect2: error: ld returned 1 exit status
make[2]: [Makefile:9024: bitcoind] Error 1
make[2]: Waiting for unfinished jobs....
/usr/bin/ld: /usr/local/lib/libdb_cxx-4.8.a(os_yield.o): in function `__os_yield':
os_yield.c:(.text+0xd1): undefined reference to `pthread_yield'
collect2: error: ld returned 1 exit status
make[2]: [Makefile:9020: bitcoin-wallet] Error 1
make[2]: Leaving directory '/home/bitcoin/Downloads/bitcoin/src'
make[1]: [Makefile:21251: all-recursive] Error 1
make[1]: Leaving directory '/home/bitcoin/Downloads/bitcoin/src'
make: [Makefile:798: all-recursive] Error 1 ```