Opened 12 years ago

Closed 12 years ago

#33992 closed defect (fixed)

inkscape: #error "Only <glib.h> can be included directly."

Reported by: bwalle (Bernhard Walle) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: haspatch Cc: ryandesign (Ryan Carsten Schmidt), su-v
Port: inkscape

Description

I get following errors:

make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_inkscape/inkscape/work/inkscape-0.48.2/src'
  CXX    arc-context.o
  CXX    box3d-context.o
  CXX    attributes.o
  CXX    axis-manip.o
In file included from display/sp-canvas.h:30,
                 from box3d-context.cpp:23:
/opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/lib/glib-2.0/include/glibconfig.h:9,
                 from /opt/local/include/glib-2.0/glib/gtypes.h:34,
                 from display/sp-canvas.h:30,
                 from box3d-context.cpp:23:
/opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/include/glib-2.0/glib/gtypes.h:35,
                 from display/sp-canvas.h:30,
                 from box3d-context.cpp:23:
/opt/local/include/glib-2.0/glib/gmacros.h:32:2: error: #error "Only <glib.h> can be included directly."
In file included from /opt/local/include/glib-2.0/glib/gtypes.h:36,
                 from display/sp-canvas.h:30,
                 from box3d-context.cpp:23:
/opt/local/include/glib-2.0/glib/gversionmacros.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from attributes.cpp:21:

Attachments (2)

inkscape-0.48.3.1.diff (913 bytes) - added by ryandesign (Ryan Carsten Schmidt) 12 years ago.
proposed patch
inkscape-0.48.3.1-remove-xft-configure-option.diff (1.0 KB) - added by su-v 12 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: devans@… added
Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned
Summary: Inkscape does not buildinkscape: #error "Only <glib.h> can be included directly."

Same glib 2.32 incompatibility we've seen in other ports lately. I'll see what I can do.

comment:2 in reply to:  1 Changed 12 years ago by su-v

Replying to ryandesign@…:

Same glib 2.32 incompatibility we've seen in other ports lately. I'll see what I can do.

Upgrade to Inkscape 0.48.3.1 (0.48.3.1 and current trunk does support building with glib 2.31 and later versions, tracked in bug #898538)

(Note: the bug fix release hasn't been officially announced yet (pending packagers providing precompiled binaries for supported platforms)).

comment:3 Changed 12 years ago by su-v

Cc: suv-sf@… added

Cc Me!

Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: inkscape-0.48.3.1.diff added

proposed patch

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added; devans@… removed
Keywords: haspatch added
Owner: changed from ryandesign@… to devans@…
Status: assignednew

Thanks; here's a patch to update to 0.48.3.1, which does build for me.

comment:5 in reply to:  4 Changed 12 years ago by su-v

Replying to ryandesign@…:

Thanks; here's a patch to update to 0.48.3.1, which does build for me.

Attaching updated version of the Portfile patch for 0.48.3.1: the configure option '--with-xft' has been removed (bug #791709 ).

comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Maintainer timeout; committed in r91997.

Note: See TracTickets for help on using tickets.