I am trying to build Firefox 2 from source under Solaris 10 x86, I
assume this ISNT an impossible task, consider there are contributed
binaries for this platform already.
Arguements I supplied to the configure script:
./configure --prefix=/export/home/alex/thunderbird
--enable-application=browser --disable-tests --disable-debug
-disable-auto-deps --disable-freetype2 -enable-official-branding
--enable-default-toolkit=gtk2 --enable-optimize=-xO5 --enable-static
--disable-shared --enable-xft --enable-svg
I took these arguements from a prebuilt version of firefox 2 for Solaris
10 x86 by doing about:buildconfig and just added the --prefix so I
could have the binaries etc in my $HOME
I have been sucessfuly aboe to build firefox 1.5.0.7 on this machine,
but ver 2 wont build :(
Some info about my build tools:
Build tools
===========
Compiler Version Compiler flags
/export/home/alex/sunstudio/SUNWspro/bin/cc Sun C 5.8 2005/10/13
-xstrconst -xbuiltin=%all -mt
/export/home/alex/sunstudio/SUNWspro/bin/CC Sun C++ 5.8 2005/10/13
-xbuiltin=%all -features=tmplife -mt -I/usr/openwin/include
What is seen just before the error:
===================================
/export/home/alex/sunstudio/SUNWspro/bin/CC -o firefox-bin
-I/usr/openwin/include -xbuiltin=%all -features=tmplife -mt -DNDEBUG
-DTRIMMED -xO5 nsBrowserApp.o nsStaticComponents.o -M
/usr/lib/ld/map.noexstk -xildoff -zlazyload -zcombreloc -L../../dist/bin
-L../../dist/lib -L../../dist/lib/components
../../dist/lib/libxulapp_s.a -L../../dist/bin -lmozjs -L../../dist/bin
-lxpcom -lxpcom_core -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread
-ldl -lposix4 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm
-lpangoxft-1.0 -lpangox-1.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -lglib-2.0 -L/usr/openwin/lib -R/usr/openwin/lib -lX11
-lsocket -lnsl -lsocket -ldl -lm
../../dist/lib/components/libxpcom_compat_c.a
../../dist/lib/components/libxpconnect.a
../../dist/lib/components/libuconv.a
../../dist/lib/components/libucvmath.a
../../dist/lib/components/libi18n.a ../../dist/lib/components/libmork.a
../../dist/lib/components/libstoragecomps.a
../../dist/lib/components/libnecko.a
../../dist/lib/components/libnecko2.a
../../dist/lib/components/libpref.a ../../dist/lib/components/libcaps.a
../../dist/lib/components/librdf.a
../../dist/lib/components/libhtmlpars.a
../../dist/lib/components/libgfxps.a
../../dist/lib/components/libgfx_gtk.a
../../dist/lib/components/libimglib2.a
../../dist/lib/components/libgkplugin.a
../../dist/lib/components/libwidget_gtk2.a
../../dist/lib/components/libgklayout.a
../../dist/lib/components/libdocshell.a
../../dist/lib/components/libembedcomponents.a
../../dist/lib/components/libwebbrwsr.a
../../dist/lib/components/libeditor.a
../../dist/lib/components/libtxmgr.a
../../dist/lib/components/libcomposer.a
../../dist/lib/components/libnsappshell.a
../../dist/lib/components/liboji.a
../../dist/lib/components/libaccessibility.a
../../dist/lib/components/libchrome.a
../../dist/lib/components/libmozfind.a
../../dist/lib/components/libappcomps.a
../../dist/lib/components/libfileview.a
../../dist/lib/components/libremoteservice.a
../../dist/lib/components/libcommandlines.a
../../dist/lib/components/libtoolkitcomps.a
../../dist/lib/components/libpipboot.a
../../dist/lib/components/libpipnss.a
../../dist/lib/components/libpippki.a
../../dist/lib/components/libcookie.a
../../dist/lib/components/libxmlextras.a
../../dist/lib/components/libautoconfig.a
../../dist/lib/components/libsystem-pref.a
../../dist/lib/components/libtransformiix.a
../../dist/lib/components/libuniversalchardet.a
../../dist/lib/components/libwebsrvcs.a
../../dist/lib/components/libauth.a
../../dist/lib/components/libpermissions.a
../../dist/lib/components/libsearchservice.a
../../dist/lib/components/libbrowserdirprovider.a
../../dist/lib/components/libbrowsercomps.a
../../dist/lib/libunicharutil_s.a ../../dist/lib/libucvutil_s.a
../../dist/lib/libgtkxtbin.a ../../dist/lib/libgfxshared_s.a
../../dist/lib/libgfxpsshar.a ../../dist/lib/libgkgfx.a
../../dist/lib/libjsj.a ../../dist/lib/libxulapp_s.a -L../../dist/lib
-lmozpng -L../../dist/lib -lmozjpeg -L../../dist/lib -lmozz
-L-L../../dist/bin -L../../dist/lib -lcrmf -lsmime3 -lssl3 -lnss3
-lsoftokn3 -lmozcairo -lmozlibpixman -L/usr/openwin/lib
-R/usr/openwin/lib -lXrender -lX11 -lsocket -lnsl -lfontconfig
-lfreetype -L/usr/openwin/lib -R/usr/openwin/lib -lXt -L/usr/openwin/lib
-L/usr/sfw/lib -L/usr/openwin/sfw/lib -lXft -lfreetype -lXrender
-lfontconfig -L../../dist/lib -lxpcom_compat
ld: fatal: library -lXrender: not found
ld: fatal: library -lfreetype: not found
ld: fatal: File processing errors. No output written to firefox-bin
gmake[3]: *** [firefox-bin] Error 1
gmake[3]: Leaving directory `/export/home/alex/mozilla/browser/app'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/export/home/alex/mozilla/browser'
gmake[1]: *** [tier_99] Error 2
gmake[1]: Leaving directory `/export/home/alex/mozilla'
gmake: *** [default] Error 2
====================================================================
Ok.. What am I missing here? Am i missing a library? Do I need to pass
an extra option to configure to get around this?
Can anyone suggest a fix/workaround?
Thanks!
Alex
> ld: fatal: library -lXrender: not found
> ld: fatal: library -lfreetype: not found
[...]
> Ok.. What am I missing here? Am i missing a library?
I have no idea what packaging system Solaris 10 x86 uses but you
probably need to install the developer packages of X and/or Xrender and
Freetype, those should then carry the libXrender.* and libfreetype.*
files that you need for linking.
Peter.
Thank you for the response peter, I shall persue this further
in a Solaris specific newsgroup as I am not sure myself how
to check if this library is installed or where to get the
packages from
Alex
In Solaris, these libraries are installed under /usr/sfw/lib. So the
easy
workaround is to add "-L/usr/sfw/lib" into MOZ_CAIRO_LIBS of
config/autoconf.mk.
MOZ_CAIRO_LIBS = -L$(LIBXUL_DIST)/lib -lmozcairo -lmozlibpixman \
-L/usr/sfw/lib -lXrender -lfreetype -lfontconfig
Masaki
Thank you for the reply.
I did find it odd that I would be missing a library, considering
I have been able to build many other programs that use X before,
(xchat and others).
I will try the suggested workaround.
If this fixes it, then its a pretty serious problem. The build
completely breaks after about 20 mins of compiling source.
I'll let you know how it goes!
Thanks again!!!
While you're at it, please correct your system's date, time, and timezone.
Your email client thinks that it's in Hawaii, but its time is set for the
local time in Sydney. This causes your messages to appear to be sent
20 hours in the future.
Hint: you want your email timestamps to say +1000, not -1000.
(I'd have sent this by private email if I could have, but your
pseudonym prevented it)
--
Nelson B
LOL.
Sorry, I had to laugh because I had someone else say something similar
a few weeks ago.
I am looking at the system time and date at the bottom of my screen and
its correct to the minute. I suspect my ISP's news server is doing
something odd?
bash-3.00$ date
Fri Oct 27 03:28:16 GMT+10 2006
And indeed, its nearly 3:30am (I should be in bed)
And GMT+10 is correct for syd australia.
Not sure why I am having this issue.
We have a winner!! Thank you! The build worked :D
I owe you a beer!
Thanks Again,
Alex
Maybe your OS is confused about whether your clock chip is set to GMT or local
time? (Windows and most dual-boot systems use local time; most Unix mainframes
use GMT -- IIUC. Linux on home desktops or laptops may use either.)
Try adjusting the system date, time and timezone settings -- even if it's only
to set your clock a few seconds back or forth; and, if possible, do it by
right-clicking the clock in X11, not by some shell command in bash. (The time
in your post is indeed 03:29:07 -1000.)
These Mozilla newsgroups are not mirrored on Usenet IIUC. You should be
reading them at news.mozilla.org, not on your ISP's news server.
Best regards,
Tony.