thunderbird - moz_xmalloc

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

thunderbird - moz_xmalloc

Gabriele Bulfon
Hi,

built thunderbird 52.0b3 on XStreamOS/illumos, with the mozconfig below.
When run, I get this error:

ld.so.1: thunderbird: fatal: relocation error: file /usr/lib/thunderbird/libxul.so: symbol moz_xmalloc: referenced symbol not found

Looking at the mozilla/memory/mozalloc/mozalloc.cpp source, moz_xmalloc is around the beginning of the file:
 
void*
moz_xmalloc(size_t size)
{
...

with no strange hiding directive.

Also, using elfdump on libxul.so, I get this:

sonicle@xstreamdev:/usr/lib/thunderbird$ elfdump libxul.so | grep moz_xmalloc
libxul.so: .dynsym: index[1227]: suspicious local symbol entry: _END_: lies within global symbol range (index >= 1)
libxul.so: .dynsym: index[2579]: suspicious local symbol entry: _START_: lies within global symbol range (index >= 1)
[2760] 0x00000000 0x00000000 NOTY WEAK D 0 UNDEF moz_xmalloc
[2760] moz_xmalloc
[2328] 0x041bb61c 0x0037e1b6 R_386_JMP_SLOT moz_xmalloc
R_386_32 0x411db38 .rel.dyn moz_xmalloc
R_386_32 0x41344e4 .rel.dyn moz_xmalloc
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
R_386_JMP_SLOT 0x41bb61c .rel.plt moz_xmalloc

Any idea what may be wrong with my build?

Thanks in advance,
Gabriele

ac_add_options --enable-system-hunspell
ac_add_options --disable-alsa
ac_add_options --enable-dbus
ac_add_options --enable-gnomeui
ac_add_options --enable-jemalloc
ac_add_options --without-intl-api
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-warnings-as-errors
ac_add_options --enable-install-strip
ac_add_options --enable-optimize=-O2
ac_add_options --disable-webrtc
ac_add_options --enable-official-branding
ac_add_options --disable-updater
ac_add_options --enable-pulseaudio
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman
ac_add_options --with-system-icu
ac_add_options --enable-system-sqlite
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-libevent
ac_add_options --with-system-zlib
ac_add_options --with-system-bz2
ac_add_options --disable-crashreporter
ac_add_options --enable-startup-notification
ac_add_options --enable-calendar
ac_add_options --enable-application=mail
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
ac_add_options --disable-tests


----------------------------------------------------------------------------------------
Sonicle S.r.l. http://www.sonicle.com

_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: thunderbird - moz_xmalloc

ISHIKAWA,chiaki
what compiler (and its version) and linker do you use?

I used to compile source files under solaris10 a few years back, but no longer.
But my rules of thumb:
It could be that your GCC (if you use GCC, that is) may need updating, etc.
Or if you use sun's compiler, then maybe switching to GCC may solve it. [I
suspect that you use
sun compiler to build the OS and also the application software packages?]
It is a hit or miss situation when I compiled many source files on
solaris10, and I gave up now
although compiling and testing software packages on solaris revealed many
issues in the source files because
the software developers made hidden assumptions that may be invalidated
anytime a new revision of libc/OS comes up.
That Oracle bought Sun and solaris is not a true open source OS any more is
another reason I gave up.

To know that illumos is still going strong and that you are porting software
on XStreamOS based on illumos is very encouraging.

I suggest that you use the latest GCC and use GNU gold linker (if you can
build it under solaris), that is the combination
I use on linux and used to compile a few software packages to test them
under solaris.
(The different memory layout and memory allocation routine under solaris
revealed a few bugs which were dormant under linux.)


On 2017年03月16日 16:25, Gabriele Bulfon wrote:

> Hi,
>
> built thunderbird 52.0b3 on XStreamOS/illumos, with the mozconfig below.
> When run, I get this error:
>
> ld.so.1: thunderbird: fatal: relocation error: file
> /usr/lib/thunderbird/libxul.so: symbol moz_xmalloc: referenced symbol not found
>
> Looking at the mozilla/memory/mozalloc/mozalloc.cpp source, moz_xmalloc is
> around the beginning of the file:
>  
> void*
> moz_xmalloc(size_t size)
> {
> ...
>
> with no strange hiding directive.
>
> Also, using elfdump on libxul.so, I get this:
>
> sonicle@xstreamdev:/usr/lib/thunderbird$ elfdump libxul.so | grep moz_xmalloc
> libxul.so: .dynsym: index[1227]: suspicious local symbol entry: _END_: lies
> within global symbol range (index >= 1)
> libxul.so: .dynsym: index[2579]: suspicious local symbol entry: _START_:
> lies within global symbol range (index >= 1)
> [2760] 0x00000000 0x00000000 NOTY WEAK D 0 UNDEF moz_xmalloc
> [2760] moz_xmalloc
> [2328] 0x041bb61c 0x0037e1b6 R_386_JMP_SLOT moz_xmalloc
> R_386_32 0x411db38 .rel.dyn moz_xmalloc
> R_386_32 0x41344e4 .rel.dyn moz_xmalloc
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> libxul.so: bad relocation entry: R_386_TLS_DTPMOD32: relocation requires symbol
> R_386_JMP_SLOT 0x41bb61c .rel.plt moz_xmalloc
>
> Any idea what may be wrong with my build?
>
> Thanks in advance,
> Gabriele
>
> ac_add_options --enable-system-hunspell
> ac_add_options --disable-alsa
> ac_add_options --enable-dbus
> ac_add_options --enable-gnomeui
> ac_add_options --enable-jemalloc
> ac_add_options --without-intl-api
> ac_add_options --disable-debug
> ac_add_options --disable-debug-symbols
> ac_add_options --disable-warnings-as-errors
> ac_add_options --enable-install-strip
> ac_add_options --enable-optimize=-O2
> ac_add_options --disable-webrtc
> ac_add_options --enable-official-branding
> ac_add_options --disable-updater
> ac_add_options --enable-pulseaudio
> ac_add_options --enable-system-ffi
> ac_add_options --enable-system-pixman
> ac_add_options --with-system-icu
> ac_add_options --enable-system-sqlite
> ac_add_options --with-system-nspr
> ac_add_options --with-system-nss
> ac_add_options --with-system-libevent
> ac_add_options --with-system-zlib
> ac_add_options --with-system-bz2
> ac_add_options --disable-crashreporter
> ac_add_options --enable-startup-notification
> ac_add_options --enable-calendar
> ac_add_options --enable-application=mail
> ac_add_options --prefix=/usr
> ac_add_options --libdir=/usr/lib
> ac_add_options --disable-tests
>
>
> ----------------------------------------------------------------------------------------
> *Sonicle S.r.l. *: http://www.sonicle.com <http://www.sonicle.com/>
> *Music: *http://www.gabrielebulfon.com <http://www.gabrielebulfon.com/>
> *Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon
_______________________________________________
dev-builds mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-builds
Loading...