Build Errors on Ubuntu 12.04

John Ralls jralls at ceridwen.us
Mon Jan 5 10:04:27 EST 2015


> On Jan 5, 2015, at 2:34 AM, Sean McLennan <shaav at shaav.com> wrote:
> 
> 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.

It looks like you're missing some glib headers. That would usually mean you need to install the libglib-dev package, but that also provides glib-2.0.pc and configure would have stopped if that was missing.

To get the MySql backend you need only install libdbd-mysql and mysql-client, no rebuilding required.

Regards,
John Ralls




More information about the gnucash-user mailing list