Skip to content

Instantly share code, notes, and snippets.

@theStack
Created February 18, 2024 01:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theStack/b41884e31ebc5cdca3220bcaa674cb70 to your computer and use it in GitHub Desktop.
Save theStack/b41884e31ebc5cdca3220bcaa674cb70 to your computer and use it in GitHub Desktop.
Bitcoin depends BDB build fail on OpenBSD
configure:6211: checking whether C++ supports the ISO C++ standard includes
configure:6231: clang++ -m64 -c -pipe -std=c++20 -O2 -I/home/thestack/bitcoin/depends/amd64-unknown-openbsd7.4/include -D_XOPEN_SOURCE=600 conftest.cpp >&5
In file included from conftest.cpp:10:
In file included from /usr/include/c++/v1/iostream:37:
In file included from /usr/include/c++/v1/ios:214:
In file included from /usr/include/c++/v1/__locale:37:
In file included from /usr/include/c++/v1/__support/openbsd/xlocale.h:13:
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:23:64: error: unknown type name 'locale_t'
char **endptr, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:28:65: error: unknown type name 'locale_t'
char **endptr, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:33:71: error: unknown type name 'locale_t'
char **endptr, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:38:54: error: unknown type name 'locale_t'
strtoll_l(const char *nptr, char **endptr, int base, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:43:55: error: unknown type name 'locale_t'
strtoull_l(const char *nptr, char **endptr, int base, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:48:60: error: unknown type name 'locale_t'
wcstoll_l(const wchar_t *nptr, wchar_t **endptr, int base, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:53:61: error: unknown type name 'locale_t'
wcstoull_l(const wchar_t *nptr, wchar_t **endptr, int base, locale_t) {
^
/usr/include/c++/v1/__support/xlocale/__strtonum_fallback.h:58:74: error: unknown type name 'locale_t'
wchar_t **endptr, locale_t) {
^
In file included from conftest.cpp:10:
In file included from /usr/include/c++/v1/iostream:37:
In file included from /usr/include/c++/v1/ios:214:
/usr/include/c++/v1/__locale:59:25: error: unknown type name 'locale_t'; did you mean 'chrono::local_t'?
__libcpp_locale_guard(locale_t& __loc) : __old_loc_(uselocale(__loc)) {}
^
/usr/include/c++/v1/chrono:1618:8: note: 'chrono::local_t' declared here
struct local_t {};
^
In file included from conftest.cpp:10:
In file included from /usr/include/c++/v1/iostream:37:
In file included from /usr/include/c++/v1/ios:214:
/usr/include/c++/v1/__locale:67:3: error: unknown type name 'locale_t'; did you mean 'chrono::local_t'?
locale_t __old_loc_;
^
/usr/include/c++/v1/chrono:1618:8: note: 'chrono::local_t' declared here
struct local_t {};
^
In file included from conftest.cpp:10:
In file included from /usr/include/c++/v1/iostream:37:
In file included from /usr/include/c++/v1/ios:214:
/usr/include/c++/v1/__locale:59:55: error: use of undeclared identifier 'uselocale'
__libcpp_locale_guard(locale_t& __loc) : __old_loc_(uselocale(__loc)) {}
^
/usr/include/c++/v1/__locale:63:9: error: value of type 'chrono::local_t' is not contextually convertible to 'bool'
if (__old_loc_)
^~~~~~~~~~
/usr/include/c++/v1/__locale:64:7: error: use of undeclared identifier 'uselocale'
uselocale(__old_loc_);
^
/usr/include/c++/v1/__locale:136:20: error: use of undeclared identifier 'LC_COLLATE_MASK'
collate = LC_COLLATE_MASK,
^
/usr/include/c++/v1/__locale:137:20: error: use of undeclared identifier 'LC_CTYPE_MASK'
ctype = LC_CTYPE_MASK,
^
/usr/include/c++/v1/__locale:138:20: error: use of undeclared identifier 'LC_MONETARY_MASK'
monetary = LC_MONETARY_MASK,
^
/usr/include/c++/v1/__locale:139:20: error: use of undeclared identifier 'LC_NUMERIC_MASK'
numeric = LC_NUMERIC_MASK,
^
/usr/include/c++/v1/__locale:140:20: error: use of undeclared identifier 'LC_TIME_MASK'
time = LC_TIME_MASK,
^
/usr/include/c++/v1/__locale:141:20: error: use of undeclared identifier 'LC_MESSAGES_MASK'
messages = LC_MESSAGES_MASK,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
configure:6231: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Berkeley DB"
| #define PACKAGE_TARNAME "db-4.8.30"
| #define PACKAGE_VERSION "4.8.30"
| #define PACKAGE_STRING "Berkeley DB 4.8.30"
| #define PACKAGE_BUGREPORT "Oracle Technology Network Berkeley DB forum"
| #define PACKAGE_URL ""
| #define HAVE_UPGRADE_SUPPORT 1
| /* end confdefs.h. */
| #include <iostream>
| int
| main ()
| {
| std::ostream *o; return 0;
| ;
| return 0;
| }
configure:6243: result: no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment