You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
./wallet/bdb.h:27:10: fatal error: db_cxx.h: No such file or directory #25266
I'm having build error with current master (1c7ef0a), with Gentoo Linux:
$ make clean
$ ./autogen.sh
$ ./configure
$ make
...
CXX qt/libbitcoinqt_a-rpcconsole.o
In file included from qt/rpcconsole.cpp:32:
./wallet/bdb.h:27:10: fatal error: db_cxx.h: No such file or directory
27 | #include <db_cxx.h>
| ^~~~~~~~~~
compilation terminated.
$ locate db_cxx.h
/usr/include/db4.8/db_cxx.h
/usr/include/db5.3/db_cxx.h
@hebasto
Originally I tried compiling without specifying a branch. But then I switched to master. Finally I tried version 0.21.1 which the instructions I found were using.
In file included from wallet/bdb.cpp:8:
./wallet/bdb.h:27:10: fatal error: 'db_cxx.h' file not found
#include <db_cxx.h>
^~~~~~~~~~
CXX libbitcoin_common_a-deploymentinfo.o
1 error generated.
make[2]: *** [Makefile:11519: wallet/libbitcoin_wallet_a-bdb.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from wallet/walletdb.cpp:18:
./wallet/bdb.h:27:10: fatal error: 'db_cxx.h' file not found
#include <db_cxx.h>
^~~~~~~~~~
In file included from wallet/salvage.cpp:9:
./wallet/bdb.h:27:10: fatal error: 'db_cxx.h' file not found
#include <db_cxx.h>
^~~~~~~~~~
1 error generated.
make[2]: *** [Makefile:11463: wallet/libbitcoin_wallet_a-walletdb.o] Error 1
1 error generated.
@da2ce7 You are passing the wrong folder to configure. In any case, bdb is not required, unless you want to load a legacy wallet. Using sqlite is recommended for new wallets.
@MarcoFalke this is curious, why would the make step fail if bdb is successfully being detected by the configure script? If the wrong folder is given, shouldn't this fail when configuring...
Activity
maflcko commentedon Jun 2, 2022
Steps to reproduce on a fresh install of Fedora:
laanwj commentedon Jun 2, 2022
Interesting, I wonder why it includes that (and why we didn't notice before),
laanwj commentedon Jun 2, 2022
It looks like these wallet includes are completely unnecessary
bitcoin-core/gui#613 should fix this
HaltCatchF1re commentedon Jul 19, 2022
This error is still persists for me. Is there a version or branch I can compile that this issue does not appear?
hebasto commentedon Jul 19, 2022
@HaltCatchF1re
Which version or commit are you compiling?
HaltCatchF1re commentedon Jul 22, 2022
@hebasto
Originally I tried compiling without specifying a branch. But then I switched to master. Finally I tried version 0.21.1 which the instructions I found were using.
Switched to v23.0 and it worked.
da2ce7 commentedon Oct 26, 2022
@MarcoFalke @hebasto
On Fedora 37, using toolbox, I run into the same sort of error:
(using the one-liner that MarcoFalke used above).
maflcko commentedon Oct 26, 2022
@da2ce7 You are passing the wrong folder to configure. In any case, bdb is not required, unless you want to load a legacy wallet. Using sqlite is recommended for new wallets.
da2ce7 commentedon Oct 26, 2022
@MarcoFalke this is curious, why would the make step fail if bdb is successfully being detected by the configure script? If the wrong folder is given, shouldn't this fail when configuring...
maflcko commentedon Oct 26, 2022
Well, then it looks like an unrelated issue to the thread here.
Merge bitcoin-core/gui#613: Remove unnecessary wallet includes from r…
Merge bitcoin-core/gui#613: Remove unnecessary wallet includes from r…
Merge bitcoin-core/gui#613: Remove unnecessary wallet includes from r…
partial Merge bitcoin-core/gui#613: Remove unnecessary wallet include…
Merge bitcoin-core/gui#613: Remove unnecessary wallet includes from r…