Waterfox icon indicating copy to clipboard operation
Waterfox copied to clipboard

[classic] [linux] 2021.04.2 a lot of build errors

Open clasatas opened this issue 5 years ago • 7 comments

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

log.txt mozconfig.txt

clasatas avatar May 22 '21 01:05 clasatas

...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 ||
           ~~~~~ ^  ~~~~~~~

clasatas avatar May 22 '21 18:05 clasatas

for me that was fixed by downgrading nss to nss-3.64 (on artixlinux)

anonish avatar May 23 '21 02:05 anonish

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

clasatas avatar May 27 '21 16:05 clasatas

Yep, it's really picky depending on what toolchain and distro you have. Glad you got it working.

MrAlex94 avatar May 27 '21 16:05 MrAlex94

FYI nss-3.64 still needed to build 2021.06-0, otherwise same error as OP happens

anonish avatar Jun 04 '21 19:06 anonish

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.

hawkeye116477 avatar Jul 01 '21 12:07 hawkeye116477

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.

anonish avatar Jul 01 '21 16:07 anonish