rmottola / Arctic-Fox

Web Browser for Mac OS X 10.6+, Linux (PowerPC, x86, amd64, ARM, MIPS), NetBSD, OpenBSD, and Windows XP.
Other
305 stars 36 forks source link

FreeBSD 13.3 compilation issue realloc #212

Open rmottola opened 1 month ago

rmottola commented 1 month ago

While 13.2 compiles, 13.3 fails:

80:14.60 In file included from /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/gfx/graphite2/src/Unified_cpp_gfx_graphite2_src0.cpp:29:
80:14.60 In file included from /usr/home/multix/code/Arctic-Fox/gfx/graphite2/src/Collider.cpp:35:
80:14.60 In file included from /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/dist/stl_wrappers/functional:52:
80:14.60 In file included from /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/dist/system_wrappers/functional:4:
80:14.60 In file included from /usr/include/c++/v1/functional:526:
80:14.60 In file included from /usr/include/c++/v1/__functional/boyer_moore_searcher.h:27:
80:14.60 In file included from /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/dist/stl_wrappers/vector:52:
80:14.61 In file included from /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/dist/system_wrappers/vector:4:
80:14.61 In file included from /usr/include/c++/v1/vector:321:
80:14.61 In file included from /usr/include/c++/v1/__format/formatter_bool.h:20:
80:14.61 In file included from /usr/include/c++/v1/__format/formatter_integral.h:32:
80:14.61 In file included from /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/dist/system_wrappers/locale:4:
80:14.61 /usr/include/c++/v1/locale:2822:22: error: no member named 'moz_xrealloc' in namespace 'std'; did you mean simply 'moz_xrealloc'?
80:14.61  2822 |     _Tp* __t = (_Tp*)std::realloc(__owns ? __b.get() : 0, __new_cap);
80:14.61       |                      ^~~~~ools
80:14.61 /usr/home/multix/code/Arctic-Fox/obj-x86_64-unknown-freebsd13.3/dist/include/mozilla/mozalloc.h:83:16: note: 'moz_xrealloc' declared here
80:14.61    83 | MFBT_API void* moz_xrealloc(void* ptr, size_t size)
80:14.61       |                ^isc libs tools
80:14.61 1 error generated.pile misc libs tools
80:14.61 -export export compile misc libs tools
rmottola commented 1 month ago

See also

https://forum.palemoon.org/viewtopic.php?t=31415

removing the said file from unified sources.

rmottola commented 1 week ago

the trick mentioned in the forum (remove from unified sources) works for gfx, but not hunspell