[classic] [linux] 2021.04.2 a lot of build errors
gcc-11.1.0, rust-1.52.1 Most of the errors from the file: include/mozilla/dom/IDBTransaction.h, also errors in other files. Perhaps this is due to GCC, not Clang
...and clang-12:
In file included from /home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dom/bindings/UnifiedBindings9.cpp:62:
In file included from /home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dom/bindings/IDBObjectStoreBinding.cpp:14:
/home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dist/include/mozilla/dom/IDBTransaction.h:197:21: error: use
of undeclared identifier 'cleanup'
mMode == CLEANUP ||
^
/usr/include/nss/pk11hpke.h:13:5: note: expanded from macro 'CLEANUP'
cleanup
^
In file included from /home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dom/bindings/UnifiedBindings8.cpp:362:
In file included from /home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dom/bindings/IDBDatabaseBinding.cpp:16:
/home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dist/include/mozilla/dom/IDBTransaction.h:62:5: error:
expected identifier
CLEANUP,
^
/usr/include/nss/pk11hpke.h:12:5: note: expanded from macro 'CLEANUP'
PORT_Assert(rv == SECSuccess); \
^
/usr/include/nss/secport.h:123:21: note: expanded from macro 'PORT_Assert'
#define PORT_Assert PR_ASSERT
^
/usr/include/nspr/prlog.h:217:25: note: expanded from macro 'PR_ASSERT'
#define PR_ASSERT(expr) ((void) 0)
^
In file included from /home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dom/bindings/UnifiedBindings8.cpp:362:
In file included from /home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dom/bindings/IDBDatabaseBinding.cpp:16:
/home/portage/tmp/portage/www-client/waterfox-2021.04.2/work/Waterfox-2021.04.2/wf/dist/include/mozilla/dom/IDBTransaction.h:197:18: error:
invalid operands to binary expression ('const mozilla::dom::IDBTransaction::Mode' and 'void')
mMode == CLEANUP ||
~~~~~ ^ ~~~~~~~
for me that was fixed by downgrading nss to nss-3.64 (on artixlinux)
for me that was fixed by downgrading nss to nss-3.64 (on artixlinux) True, thanks, now everything compiled. also had to add --disable-elf-hack
--disable-webrender
--disable-stylo
--disable-elf-hack
Yep, it's really picky depending on what toolchain and distro you have. Glad you got it working.
FYI nss-3.64 still needed to build 2021.06-0, otherwise same error as OP happens
As described on https://repo.palemoon.org/MoonchildProductions/UXP/issues/1693, it's not that easy. In newer versions there were also changes with file format and some people had problems with migration to new format. So it won't be fixed probably, so just don't use system's NSS.
seems like it's just another thing that will remain broken as mozilla/FF keep going in their own direction and the browsers based on old stuff will be left behind.