On Mon, May 07, 2012 at 01:46:57PM +0100, Andrew Benton wrote:
> On Mon, 07 May 2012 11:34:23 +0100
> Pierre Labastie <pierre.labas...@neuf.fr> wrote:
> 
> > Hi,
> > 
> > A few packages in the gnome chapter fail to build when issuing
> > g-ir-scanner commands. The reason is they have #include <cairo.h>
> > directives in header files, and cairo.h is in /usr/include/cairo.
> > 
> > While it is not a problem with compilation commands, which use
> > -I/usr/include/cairo, that switch is not used with the g-ir-scanner
> > command, thus giving an error.
> > 
> > The affected packages I have found so far are librsvg,
> > metacity, and libgxps.
> 

 Using LFS-svn from 28th April with cairo-1.12.0 and
gobject-introspection-1.32.1 I don't see this in librsvg-2.36.1
(I don't build the other two).

> Thanks for the heads up. I was unaware of the problem as I only install
> librsvg out of those packages and I was still using librsvg-2.32.0
> which compiled fine as it doesn't seem to use gobject-introspection.
> With librsvg-2.36.1 I get:
>   GISCAN Rsvg-2.0.gir
> In file included from <stdin>:5:0:
> /home/andy/librsvg-2.36.1/rsvg-cairo.h:29:19: fatal error: cairo.h: No such 
> file or directory
> compilation terminated.
> Error while processing the source.
> make[2]: *** [Rsvg-2.0.gir] Error 1
> make[2]: Leaving directory `/home/andy/librsvg-2.36.1'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/andy/librsvg-2.36.1'
> make: *** [all] Error 2
> 
> > One workaround I have found is :
> > 
> > sed -i 's@<cairo\.h>@<cairo/cairo.h>@' *.h (or src/*.h
> > for metacity)
> > 
> > I do not know much about gobject-introspection, so there could
> > be better fixes. Anyway, with the current instructions, those
> > packages do not build.
> 
> Including cairo/cairo.h in every header seems like quite a large
> sledgehammer to crack a nut. Perhaps a more delicate solution would be
> (for librsvg-2.36.1):
> 
> sed -i '/_gir_CFLAGS/s#$# -I/usr/include/cairo#' Makefile.in
> 
> Andy
 I've got
  GISCAN Rsvg-2.0.gir
  CCLD   rsvg-view-3
g-ir-scanner: Rsvg: warning: 11 warnings suppressed (use --warn-all
to see them)
  GICOMP Rsvg-2.0.gir
make[2]: Leaving directory `/usr/src/librsvg-2.36.1'

 In my case I build dbus, cairo, gtk-doc, dbus-glib, ...,
gobject-introspection in that order, followed by pango, atk,
shared-mime-info, cups, gdk-pixbuf, gtk2, gtk3.

 I don't imagine that variations in the build order are causing
this, but librsvg is building fine for me.  I don't have vala, and
when I used to build it it was near the end of my build.  I remember
someone had a problem in babl or gegl that was attributed to using
vapigen, and I know Andy has reported problems in current libgsf
that I don't get, so I'd better ask if you guys have vala installed ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to