Failure to compile Inkscape: ‘G_CONST_RETURN’ does not name a type

Bug #1088134 reported by Xavier Fung on 2012-12-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
High
Alex Valavanis

Bug Description

I compile Inkscape trunk on ArchLinux and got this error.

  CXX extension/internal/cairo-render-context.o
In file included from /usr/include/pango-1.0/pango/pango-context.h:26:0,
                 from /usr/include/pango-1.0/pango/pango.h:28,
                 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 ./display/sp-canvas-item.h:27,
                 from ./display/canvas-bpath.h:20,
                 from extension/internal/cairo-render-context.cpp:37:
/usr/include/pango-1.0/pango/pango-fontmap.h:92:1: error: ‘G_CONST_RETURN’ does not name a type
make[3]: *** [extension/internal/cairo-render-context.o] Error 1

It seems like something related to GTK2 and Pango. I have the following installed on my machine.

local/gtk2 2.24.14-1
    GTK+ is a multi-platform toolkit (v2)
local/pango 1.32.4-1
    A library for layout and rendering of text

Just wonder if this is an upstream bug or not.

no longer affects: archlinux
su_v (suv-lp) wrote :

AFAICT this seems related to an upstream bug in pango 1.23.4:
  689843 – pango-fontmap.h:92:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char
  <https://bugzilla.gnome.org/show_bug.cgi?id=689843>

Inkscape trunk does define G_DISABLE_DEPRECATED:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/view/head:/configure.ac#L58>

tags: added: build
su_v (suv-lp) wrote :

Sorry, typo:
- AFAICT this seems related to an upstream bug in pango 1.23.4:
+ AFAICT this seems related to an upstream bug in pango 1.32.4:

Alex Valavanis (valavanisalex) wrote :

Should be fixed in lp:inkscape r11938. Let me know if it is still causing problems.

I've also bumped the Pango requirement to > 1.24 so we don't need to support ancient versions.

Marking as "Fix Released" because the stable Inkscape versions don't define G_DISABLE_DEPRECATED.

Changed in inkscape:
assignee: nobody → Alex Valavanis (valavanisalex)
importance: Undecided → High
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.