On 5/13/07, randhir phagura <[EMAIL PROTECTED]> wrote:
>
> c++ -I/usr/X11R6/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../../dist/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,/p/firefox/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 `/p/firefox/firefox-build/layout/build'

<snip>

> ac_add_options --x-includes=/usr/X11R6/include
> ac_add_options --x-libraries=/usr/X11R6/lib

So, the mozilla build doesn't add the needed -L directory here. This
is related to the hack needed to add -lX11 and -lXrender. I don't know
why it works for David and not for you, but I think we can fix this
more generally.

Instead of the cat >> layout/build/Makefile.in in the book, try this:

cat >> layout/build/Makefile.in << "EOF" &&
ifdef MOZ_ENABLE_CANVAS
EXTRA_DSO_LDOPTS += $(XLDFLAGS) -lX11 -lXrender
endif
EOF

The important part there is the addition of $(XLDFLAGS), which should
contain the -L/usr/X11R6/lib needed. If this works for you, I'll add
it (and probably --x-libraries stuff) to the book.

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to