On 5/16/07, randhir phagura <[EMAIL PROTECTED]> wrote: > Hi, > > >Dan Nicholson <[EMAIL PROTECTED]> wrote on 14 May 2007: > > > >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. > > Thanks Dan. Firefox2 is on and kicking. Your solution did work. > But just for education was it sue to a bug in the package that it did not > work in the first place? Or > what was the reason?
It's a bug in the package. If the canvas feature is enabled, it uses the cairo xrender backend. If you use the internal cairo shipped with firefox, then they just construct the needed link line that contains all the necessary elements by hand: -lcairo -L/where/X/is -lX11 -lXrender ... If you use the systems cairo, then they use pkg-config to find out how to link to cairo. Unfortunately, in more recent cairo releases (1.2.x and 1.4.x) you have to check for cairo and the specific backend you need. So, in this case, they'd need to do something like `pkg-config --libs cairo cairo-xlib-xrender'. Additionally, they would probably want to add $(XLDFLAGS) when linking to X libraries just to be safe. They do that in the manual link line above. So, the system cairo case is just a little broken in the configure/Makefile setup. You can see a more complete fix in the attachment I made for the upstream bug. https://bugzilla.mozilla.org/show_bug.cgi?id=344818 https://bugzilla.mozilla.org/attachment.cgi?id=264996 -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
