MozillaZine

Beta 3.0b3: ld: fatal: library -lmozjs: not found

Discussion of third-party/unofficial Firefox/Thunderbird/SeaMonkey builds.
imbiea
 
Posts: 17
Joined: February 4th, 2008, 10:12 am

Post Posted February 13th, 2008, 9:38 am

Trying for a static build on Solaris 10.


my mozconfig:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-opt-static
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --enable-static
ac_add_options --disable-shared
ac_add_options --disable-libxul
ac_add_options --disable-tests
ac_add_options --disable-auto-deps
ac_add_options --disable-accessibility
ac_add_options --disable-printing
ac_add_options --enable-plaintext-editor-only
ac_add_options --disable-updater
ac_add_options --enable-js-static-build


gmake -f client.mk build

configure completes, and then I compile for awhile.. then...




/SUNWspro/bin/CC -I/usr/openwin/include -xbuiltin=%all -features=tmplife -norunpath -mt -DNDEBUG -DTRIMMED -xO4 -G -z muldefs -h libjsd.so -o libjsd.so jsdebug.o jsd_atom.o jsd_high.o jsd_hook.o jsd_lock.o jsd_obj.o jsd_scpt.o jsd_stak.o jsd_step.o jsd_text.o jsd_val.o jsd_xpc.o -lpthread -M /usr/lib/ld/map.noexstk -xildoff -z lazyload -z combreloc -L/usr/local/lib -R/usr/local/lib -L/opt/csw/lib -R/opt/csw/lib -z ignore -R '$ORIGIN:$ORIGIN/..' -R ../../dist/bin -L../../dist/bin -lxpcom -lxpcom_core -L../../dist/bin -L../../dist/lib -lplds4 -lplc4 -lnspr4 -L/usr/local/lib -L/opt/csw/lib -lpthread -ldl -lposix4 -L../../dist/bin -lmozjs -M /mnt/gemini/newmoz/mozilla/build/unix/gnu-ld-scripts/components-mapfile -lsocket -ldl -lm
ld: fatal: library -lmozjs: not found
ld: fatal: File processing errors. No output written to libjsd.so
make[4]: *** [libjsd.so] Error 1


Solaris 10, with SunStudio 12 latest rev and patches...

I'm assuming I'm missing a simple dependancy, but... I'm uncertain to what I might download to get the mozjs lib.

Sorrry, kinda new at this.

bjlockie
 
Posts: 117
Joined: August 3rd, 2004, 6:44 pm

Post Posted February 14th, 2008, 12:52 pm

uninformed guess:
try it without:
ac_add_options --disable-auto-deps

tqft
 
Posts: 927
Joined: April 22nd, 2003, 11:57 pm

Post Posted February 14th, 2008, 1:49 pm

i have a suspicion static builds don't work with some xul apps (eg firefox) but I can't find a good ref right now.

Does the build work when you comment this out ac_add_options --enable-static ?

bjlockie
 
Posts: 117
Joined: August 3rd, 2004, 6:44 pm

Post Posted February 15th, 2008, 5:56 am

This worked for me:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox
ac_add_options --enable-optimize
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-static
ac_add_options --disable-shared
# ac_add_options --disable-system-cairo
ac_add_options --enable-default-toolkit=cairo-gtk2
ac_add_options --enable-64bit
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --disable-libxul
ac_add_options --enable-xft

# http://benjamin.smedbergs.us/blog/2005- ... orkaround/
ac_cv_visibility_pragma=no

imbiea
 
Posts: 17
Joined: February 4th, 2008, 10:12 am

Post Posted February 19th, 2008, 8:00 am

I'll try this last one.. However am I correct in that you're doing this with GCC? I've been trying to get this working with SunStudio.. but maybe this won't work with Static builds?

imbiea
 
Posts: 17
Joined: February 4th, 2008, 10:12 am

Post Posted February 19th, 2008, 3:34 pm

ok I got further by doing adding ac_add_options --enable-js-static-build
to my mozconfig.

i.e.


my mozconfig:

. $topsrcdir/browser/config/mozconfig
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/firefox
ac_add_options --enable-optimize
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --enable-static
ac_add_options --disable-shared
# ac_add_options --disable-system-cairo
ac_add_options --enable-default-toolkit=cairo-gtk2
#ac_add_options --enable-64bit
mk_add_options MOZ_CO_PROJECT=browser
ac_add_options --disable-libxul
ac_add_options --enable-xft
ac_add_options --enable-js-static-build




But now..


-rpath-link,../../../../dist/bin -L../../../../dist/bin -L../../../../dist/lib ../../../../dist/lib/libxpt.a -lsocket -ldl -lm
ld: fatal: option -dn and -P are incompatible
ld: fatal: Flags processing errors
collect2: ld returned 1 exit status
make[8]: *** [xpt_dump] Error 1
make[8]: Leaving directory `/mnt/gemini/moz3/mozilla/firefox/xpcom/typelib/xpt/tools'
make[7]: *** [export] Error 2
make[7]: Leaving directory `/mnt/gemini/moz3/mozilla/firefox/xpcom/typelib/xpt/tools'
make[6]: *** [export] Error 2
make[6]: Leaving directory `/mnt/gemini/moz3/mozilla/firefox/xpcom/typelib/xpt'
make[5]: *** [export] Error 2
make[5]: Leaving directory `/mnt/gemini/moz3/mozilla/firefox/xpcom/typelib'
make[4]: *** [export] Error 2
make[4]: Leaving directory `/mnt/gemini/moz3/mozilla/firefox/xpcom'
make[3]: *** [export_tier_xpcom] Error 2
make[3]: Leaving directory `/mnt/gemini/moz3/mozilla/firefox'
make[2]: *** [tier_xpcom] Error 2
make[2]: Leaving directory `/mnt/gemini/moz3/mozilla/firefo
etc...

Return to Third Party/Unofficial Builds


Who is online

Users browsing this forum: No registered users and 0 guests