Build Errors on Ubuntu 12.04

Sean McLennan shaav at shaav.com
Mon Jan 5 05:34:35 EST 2015


I'm trying to build gnucash-2.6.5 on Ubuntu 12.04 (Precise Pangolin) 
(need to use a mysql backend).

./configure runs fine; all dependencies met and no errors. But when I 
"make" I get about 20K errors that start with:

> In file included from /usr/include/pango-1.0/pango/pango-types.h:95:0,
>                  from /usr/include/pango-1.0/pango/pango-font.h:26,
>                  from /usr/include/pango-1.0/pango/pango-attributes.h:25,
>                  from /usr/include/pango-1.0/pango/pango.h:25,
>                  from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
>                  from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
>                  from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
>                  from /usr/include/gtk-2.0/gdk/gdk.h:32,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:32,
>                  from /usr/include/libgoffice-0.8/goffice/goffice.h:28,
>                  from 
> /usr/include/libgoffice-0.8/goffice/utils/go-glib-extras.h:4,
>                  from stf-parse.c:45:
> /usr/include/pango-1.0/pango/pango-bidi-type.h:129:1: error: return 
> type defaults to ‘int’ [-Werror=return-type]
> /usr/include/pango-1.0/pango/pango-bidi-type.h:129:1: error: no 
> previous prototype for ‘G_DEPRECATED_FOR’ [-Werror=missing-prototypes]
> In file included from 
> /usr/include/pango-1.0/pango/pango-attributes.h:25:0,
>                  from /usr/include/pango-1.0/pango/pango.h:25,
>                  from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
>                  from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
>                  from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
>                  from /usr/include/gtk-2.0/gdk/gdk.h:32,
>                  from /usr/include/gtk-2.0/gtk/gtk.h:32,
>                  from /usr/include/libgoffice-0.8/goffice/goffice.h:28,
>                  from 
> /usr/include/libgoffice-0.8/goffice/utils/go-glib-extras.h:4,
>                  from stf-parse.c:45:
> /usr/include/pango-1.0/pango/pango-font.h: In function ‘G_DEPRECATED_FOR’:
> /usr/include/pango-1.0/pango/pango-font.h:32:38: error: storage class 
> specified for parameter ‘PangoFontDescription’
> /usr/include/pango-1.0/pango/pango-font.h:33:34: error: storage class 
> specified for parameter ‘PangoFontMetrics’
> /usr/include/pango-1.0/pango/pango-font.h:47:3: error: storage class 
> specified for parameter ‘PangoStyle’
> /usr/include/pango-1.0/pango/pango-font.h:52:3: error: storage class 
> specified for parameter ‘PangoVariant’
> /usr/include/pango-1.0/pango/pango-font.h:66:3: error: storage class 
> specified for parameter ‘PangoWeight’
> /usr/include/pango-1.0/pango/pango-font.h:78:3: error: storage class 
> specified for parameter ‘PangoStretch’
> /usr/include/pango-1.0/pango/pango-font.h:88:3: error: storage class 
> specified for parameter ‘PangoFontMask’

and run through what looks like every file from /usr/include/{pango-1.0, 
gtk-2.0, atk-1.0, etc}.

A lot of them are of the form:

> error: expected declaration specifiers or ‘...’ before

I tried building from a sourceforge tarball and from git; same issue 
with both.  I have successfully built it on 14.04.

No idea what's going on here... anyone have any thoughts?

Thanks,

Sean

PS. anyone know why we can't just include the alternative backends in 
the default build? Omg life would be so much easier.





More information about the gnucash-user mailing list