Moz builds with non-standard Xorg location

DJ Lucas dj at linuxfromscratch.org
Mon Jun 11 11:14:29 PDT 2007


Guys, the line added to layout/build/Makefile.in in the Firefox
instructions should be:

EXTRA_DSO_LDOPTS += $(MOZ_XLIB_LDFLAGS) -lX11 -lXrender


My firefox build ends with this little bit without:

make[4]: Entering directory `/sources/firefox-build/layout/build'
rm -f libgklayout.so
c++ -I/opt/X11/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -pedantic
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -O -fPIC -shared
-Wl,-z,defs -Wl,-h,libgklayout.so -o libgklayout.so  nsLayoutModule.o
nsContentHTTPStartup.o nsContentDLF.o nsLayoutStatics.o      
-Wl,--whole-archive ../../dist/lib/libgkbase_s.a
../../dist/lib/libgkgeneric_s.a ../../dist/lib/libgkforms_s.a
../../dist/lib/libgkstyle_s.a ../../dist/lib/libgkprinting_s.a
../../dist/lib/libgktable_s.a ../../dist/lib/libgkxulbase_s.a
../../dist/lib/libgkconbase_s.a ../../dist/lib/libgkconcvs_s.a
../../dist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a
../../dist/lib/libgkconhtmldoc_s.a ../../dist/lib/libgkconxmlcon_s.a
../../dist/lib/libgkconxmldoc_s.a ../../dist/lib/libgkconxbl_s.a
../../dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxuldoc_s.a
../../dist/lib/libgkview_s.a ../../dist/lib/libjsdombase_s.a
../../dist/lib/libjsdomevents_s.a ../../dist/lib/libjsurl_s.a
../../dist/lib/libjsdomstorage_s.a  ../../dist/lib/libgkxultree_s.a
../../dist/lib/libgkxulgrid_s.a ../../dist/lib/libgkconxultmpl_s.a 
../../dist/lib/libinspector_s.a  ../../dist/lib/libgkmathmlcon_s.a
../../dist/lib/libgkmathmlbase_s.a  ../../dist/lib/libgkcontentxtf_s.a
../../dist/lib/libgkxtfbase_s.a  ../../dist/lib/libgksvgbase_s.a
../../dist/lib/libgkconsvgdoc_s.a ../../dist/lib/libgkcontentsvg_s.a 
../../dist/lib/libgksvgrenderercairo_s.a  -Wl,--no-whole-archive
-L../../dist/bin -L../../dist/lib -lgkgfx
../../dist/lib/libunicharutil_s.a -L../../dist/bin -lxpcom -lxpcom_core 
-L../../dist/bin -L/usr/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl
-L../../dist/bin -lmozjs  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0    -lcairo   -Wl,--version-script
-Wl,/sources/mozilla/build/unix/gnu-ld-scripts/components-version-script
-Wl,-Bsymbolic -lX11 -lXrender -ldl -lm
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[4]: *** [libgklayout.so] Error 1
make[4]: Leaving directory `/sources/firefox-build/layout/build'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/sources/firefox-build/layout'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/sources/firefox-build'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/sources/firefox-build'
make: *** [build] Error 2

I expect it would be the same with Thunderbird, but don't know about
Seamonkey.

-- DJ Lucas




More information about the blfs-dev mailing list