#33947 closed defect (fixed)
gtksourceview: #error "Only <glib.h> can be included directly."
Reported by: | zjoneshawaii@… | Owned by: | ryandesign (Ryan Carsten Schmidt) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.4 |
Keywords: | Cc: | ||
Port: | gtksourceview |
Description
gtksourceview build fails with this error:
/usr/bin/gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I.. -DDATADIR=\"/opt/local/share\" -DG_LOG_DOMAIN=\"GtkSourceView\" -I.. -I. -Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wno-sign-compare -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0/ -I/opt/local/include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/pixman-1 -I/opt/local/include/freetype2 -I/opt/local/include/libpng14 -I/opt/local/include/libxml2 -D_REENTRANT -I/opt/local/include/libgnomeprint-2.2 -I/opt/local/include/libart-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -I/opt/local/include/pango-1.0 -I/opt/local/include -L/opt/local/lib -pipe -O2 -arch x86_64 -MT gtksourcestylescheme.lo -MD -MP -MF .deps/gtksourcestylescheme.Tpo -c gtksourcestylescheme.c -fno-common -DPIC -o .libs/gtksourcestylescheme.o In file included from gtksourceregex.h:23, from gtksourceregex.c:31: /opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly." make[4]: *** [gtksourceregex.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from gtksourcelanguage.c:34: /opt/local/include/glib-2.0/glib/gmappedfile.h:23:2: error: #error "Only <glib.h> can be included directly." In file included from ../gtksourceview/gtksourceregex.h:23, from gtksourcetag-private.h:29, from gtksourcetag.c:33: /opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly." make[4]: *** [gtksourcetag.lo] Error 1 In file included from ../gtksourceview/gtksourceregex.h:23, from gtksourcetag-private.h:29, from gtksourcebuffer.c:38: /opt/local/include/glib-2.0/glib/gtypes.h:28:2: error: #error "Only <glib.h> can be included directly." make[4]: *** [gtksourcebuffer.lo] Error 1 gtksourcelanguage.c: In function 'language_file_parse': gtksourcelanguage.c:1176: warning: 'g_mapped_file_free' is deprecated (declared at /opt/local/include/glib-2.0/glib/gmappedfile.h:48) make[4]: *** [gtksourcelanguage.lo] Error 1 make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/work/gtksourceview-1.8.5/gtksourceview' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/work/gtksourceview-1.8.5/gtksourceview' make[2]: *** [all] Error 2 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/work/gtksourceview-1.8.5/gtksourceview' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/work/gtksourceview-1.8.5' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/work/gtksourceview-1.8.5' shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/work/gtksourceview-1.8.5" && /usr/bin/make -j8 -w all " returned error 2 Error: Target org.macports.build returned: shell command failed (see log for details) Warning: the following items did not execute (for gtksourceview): org.macports.activate org.macports.build org.macports.destroot org.macports.install Log for gtksourceview is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtksourceview/gtksourceview/main.log Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
Mac OS version 10.6.8 with Xcode 3.2.6
Attachments (1)
Change History (8)
Changed 13 years ago by zjoneshawaii@…
comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Summary: | gtksourceview @1.8.5 build failure → gtksourceview: #error "Only <glib.h> can be included directly." |
---|
That means this version of gtksourceview is not compatible with the new glib 2.32.0 to which the glib2 port was just updated. No newer version of gtksourceview 1.x exists. We may want to just delete gtksourceview; we just deleted meanwhile for the same reason.
There's already a gtksourceview2 port for the current 2.x version of gtksourceview.
Unfortunately there are a number of ports that declare dependencies on gtksourceview, which are therefore also broken right now:
$ port echo depends:gtksourceview and not depends:gtksourceview2 conglomerate gedit gedit-plugins glom gnome-python-desktop gtksourceview-sharp2 libgnomedb libgtksourceviewmm oregano p5.8-gtk2-sourceview p5.10-gtk2-sourceview p5.12-gtk2-sourceview p5.14-gtk2-sourceview
Each one will need to be examined to see if it can be made to use gtksourceview2 instead, and if not, perhaps deleted as well, and so on up the dependency chain.
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Alternately, we could try to fix gtksourceview to work with the newer glib. Perhaps another distribution has already worked on that and we can borrow their patches.
comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Owner: | changed from macports-tickets@… to ryandesign@… |
---|---|
Status: | new → assigned |
comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Looks like it can be easily fixed. r91739.
comment:5 Changed 13 years ago by kato23@…
A quick fix for the same #error "Only <glib.h> can be included directly."
when building geda-gaf
is to add configure.cflags-append -DGLIB_COMPILATION
to the geda-gaf Portfile.
comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | kato23@… added |
---|
Please file a new bug report about geda-gaf. This ticket was about gtksourceview only.
log