Giter Site home page Giter Site logo

Comments (9)

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

no .so have this impl

~/src/firefox-102.9.0/obj-ff-dbg/dist/bin> for SO in *.so; do echo $SO; nm $SO | grep moz_create_arena_with_params; done
libipcclientcerts.so
liblgpllibs.so
libmozavcodec.so
libmozavutil.so
libmozgtk.so
libmozsqlite3.so
libmozwayland.so
libxul.so
                 w moz_create_arena_with_params

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

In working environment (aarch64 firefox-esr on debian on crostini on chromebook)

files

kenz@penguin:/usr/lib/firefox-esr$ ls *.so | cat
libfreeblpriv3.so
libipcclientcerts.so
liblgpllibs.so
libmozavcodec.so
libmozavutil.so
libmozgtk.so
libmozsandbox.so
libmozsqlite3.so
libmozwayland.so
libnspr4.so
libnss3.so
libnssckbi.so
libnssutil3.so
libplc4.so
libplds4.so
libsmime3.so
libsoftokn3.so
libssl3.so
libxul.so

all files stripped, so couldn't check how moz_create_arena_with_params live.

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

built here, but not linked?

~/src/firefox-102.9.0/obj-ff-dbg/memory> nm ./build/Unified_cpp_memory_build0.o
                 U calloc
                 U free
                 U malloc
                 U memalign
0000000000000000 T moz_arena_calloc
0000000000000000 T moz_arena_free
0000000000000000 T moz_arena_malloc
0000000000000000 T moz_arena_memalign
0000000000000000 T moz_arena_realloc
0000000000000000 T moz_create_arena_with_params
0000000000000000 T moz_dispose_arena
                 U realloc

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..f8d359f35f 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,8 @@ def GeckoBinary(linkage='dependent', mozglue=None):
             USE_LIBS += ['mozglue']
             DEFINES['MOZ_HAS_MOZGLUE'] = True
             if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
-                LDFLAGS += ['-rdynamic']
+                #LDFLAGS += ['-rdynamic']
+                pass
         elif mozglue == 'library':
             LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
             if not CONFIG['MOZ_GLUE_IN_PROGRAM']:

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024
diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..5f0db3acdf 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,9 @@ def GeckoBinary(linkage='dependent', mozglue=None):
             USE_LIBS += ['mozglue']
             DEFINES['MOZ_HAS_MOZGLUE'] = True
             if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
-                LDFLAGS += ['-rdynamic']
+                #LDFLAGS += ['-rdynamic']
+                LDFLAGS += ['-Wl,--export-all-symbols']
+                pass
         elif mozglue == 'library':
             LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
             if not CONFIG['MOZ_GLUE_IN_PROGRAM']:

this didn't help

 1:46.64 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/11.2.0/../../../../x86_64-unknown-haiku/bin/ld: unrecognized option '--export-all-symbols'
 1:46.64 /boot/system/develop/tools/bin/../lib/gcc/x86_64-unknown-haiku/11.2.0/../../../../x86_64-unknown-haiku/bin/ld: use the --help option for usage information
 1:46.64 collect2: error: ld returned 1 exit status

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

currently the option passes -export-dynamic to the linker. will try.

https://gcc.gnu.org/onlinedocs/gcc-9.1.0/gcc/Link-Options.html#index-rdynamic

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

elfhack is doubtful too.

https://searchfox.org/mozilla-esr102/source/build/unix/elfhack/moz.build

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

This change fixed this!

diff --git a/build/gecko_templates.mozbuild b/build/gecko_templates.mozbuild
index 51aae5b870..b27bc35967 100644
--- a/build/gecko_templates.mozbuild
+++ b/build/gecko_templates.mozbuild
@@ -41,7 +41,9 @@ def GeckoBinary(linkage='dependent', mozglue=None):
             USE_LIBS += ['mozglue']
             DEFINES['MOZ_HAS_MOZGLUE'] = True
             if CONFIG['MOZ_GLUE_IN_PROGRAM'] and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
-                LDFLAGS += ['-rdynamic']
+                #LDFLAGS += ['-rdynamic']
+                LDFLAGS += ['-Wl,-export-dynamic']
+                pass
         elif mozglue == 'library':
             LIBRARY_DEFINES['MOZ_HAS_MOZGLUE'] = True
             if not CONFIG['MOZ_GLUE_IN_PROGRAM']:

next failure...

~/src/firefox-102.9.0> ./mach run
 0:02.05 /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/firefox -no-remote -profile /boot/home/src/firefox-102.9.0/obj-ff-dbg/tmp/profile-default
TS_tfopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/dependentlibs.list
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/liblgpllibs.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libmozsqlite3.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libmozgtk.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libmozwayland.so
dlopen: path: /boot/home/src/firefox-102.9.0/obj-ff-dbg/dist/bin/libxul.so

(firefox-default:67528): Gtk-WARNING **: 22:40:28.261: Locale not supported by C library.
        Using the fallback 'C' locale.
Error: no DISPLAY environment variable specified
[67528, Unnamed thread 105944250c40] WARNING: XPCOM object nsStringBuffer released from static ctor/dtor: file /boot/home/src/firefox-102.9.0/xpcom/base/nsTraceRefcnt.cpp:206
nsStringStats
 => mAllocCount:              9
 => mReallocCount:            0
 => mFreeCount:               8  --  LEAKED 1 !!!
 => mShareCount:              2
 => mAdoptCount:              0
 => mAdoptFreeCount:          0
 => Process ID: 67528, Thread ID: 293696546944
~/src/firefox-102.9.0> 

from inari.

kenz-gelsoft avatar kenz-gelsoft commented on June 28, 2024

https://firefox-source-docs.mozilla.org/build/buildsystem/defining-binaries.html

helped.

from inari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.