polkit-github-migration-bot / t4_polkit

Other
0 stars 0 forks source link

mozjs60 undefined reference to `moz_arena_malloc #96

Open polkit-github-migration-bot opened 4 years ago

polkit-github-migration-bot commented 4 years ago

In gitlab.freedesktop.org by oneforall2 on Oct 17, 2019, 06:06

Link to the original issue: https://gitlab.freedesktop.org/polkit/polkit/-/issues/94 must be a missing #include? CXXLD polkitd /usr/bin/ld: ./.libs/libpolkit-backend-1.a(libpolkit_backend_1_la-polkitbackendjsauthority.o): in function mozilla::Vector<JS::Value, 8ul, js::TempAllocPolicy>::growStorageBy(unsigned long)': polkitbackendjsauthority.cpp:(.text._ZN7mozilla6VectorIN2JS5ValueELm8EN2js15TempAllocPolicyEE13growStorageByEm[_ZN7mozilla6VectorIN2JS5ValueELm8EN2js15TempAllocPolicyEE13growStorageByEm]+0x8a): undefined reference tomoz_arena_malloc' /usr/bin/ld: polkitbackendjsauthority.cpp:(.text._ZN7mozilla6VectorIN2JS5ValueELm8EN2js15TempAllocPolicyEE13growStorageByEm[_ZN7mozilla6VectorIN2JS5ValueELm8EN2js15TempAllocPolicyEE13growStorageByEm]+0x111): undefined reference to `moz_arena_malloc' collect2: error: ld returned 1 exit status make[4]: *** [Makefile:660: polkitd] Error 1

in the src I see it found the include file with moz_arena_malloc in it . /usr/include/mozjs60/js/Utility.h .. I tried adding +#include <js/Utility.h> to the polkitbackendjsauthority.cpp but that didn't help.. maybe I should be putting it in some other file?

polkit-github-migration-bot commented 4 years ago

In gitlab.freedesktop.org by oneforall2 on Oct 17, 2019, 10:38

I finally figured it out needed to add --disable-jemalloc to mozjs60 or the lib had w moz_arena_malloc

now it has 00000000008b4da0 T moz_arena_malloc