[MacPorts] #40270: libgnomedb @1.2.1 build fails, code problems
#40270: libgnomedb @1.2.1 build fails, code problems ------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: libgnomedb ------------------------+-------------------------------- libgnomedb 1.2.1 fails on Mountain Lion (as far as I know) due to the following problems in the code: {{{ :info:build In file included from gnome-db-grid.c:24: :info:build /opt/local/include/glib-2.0/glib/gfileutils.h:25:2: error: "Only <glib.h> can be included directly." :info:build #error "Only <glib.h> can be included directly." :info:build ^ :info:build In file included from gnome-db-grid.c:24: :info:build In file included from /opt/local/include/glib-2.0/glib/gfileutils.h:28: :info:build /opt/local/include/glib-2.0/glib/gerror.h:25:2: error: "Only <glib.h> can be included directly." :info:build #error "Only <glib.h> can be included directly." :info:build ^ :info:build In file included from gnome-db-grid.c:24: :info:build In file included from /opt/local/include/glib-2.0/glib/gfileutils.h:28: :info:build In file included from /opt/local/include/glib-2.0/glib/gerror.h:30: :info:build /opt/local/include/glib-2.0/glib/gquark.h:31:2: error: "Only <glib.h> can be included directly." :info:build #error "Only <glib.h> can be included directly." :info:build ^ :info:build In file included from gnome-db-grid.c:24: :info:build In file included from /opt/local/include/glib-2.0/glib/gfileutils.h:28: :info:build In file included from /opt/local/include/glib-2.0/glib/gerror.h:30: :info:build In file included from /opt/local/include/glib-2.0/glib/gquark.h:34: :info:build /opt/local/include/glib-2.0/glib/gtypes.h:31:2: error: "Only <glib.h> can be included directly." :info:build #error "Only <glib.h> can be included directly." :info:build ^ :info:build In file included from gnome-db-grid.c:24: :info:build In file included from /opt/local/include/glib-2.0/glib/gfileutils.h:28: :info:build In file included from /opt/local/include/glib-2.0/glib/gerror.h:30: :info:build In file included from /opt/local/include/glib-2.0/glib/gquark.h:34: :info:build In file included from /opt/local/include/glib-2.0/glib/gtypes.h:34: :info:build In file included from /opt/local/lib/glib-2.0/include/glibconfig.h:9: :info:build /opt/local/include/glib-2.0/glib/gmacros.h:35:2: error: "Only <glib.h> can be included directly." :info:build #error "Only <glib.h> can be included directly." :info:build ^ :info:build In file included from gnome-db-grid.c:24: :info:build In file included from /opt/local/include/glib-2.0/glib/gfileutils.h:28: :info:build In file included from /opt/local/include/glib-2.0/glib/gerror.h:30: :info:build In file included from /opt/local/include/glib-2.0/glib/gquark.h:34: :info:build In file included from /opt/local/include/glib-2.0/glib/gtypes.h:36: :info:build /opt/local/include/glib-2.0/glib/gversionmacros.h:31:2: error: "Only <glib.h> can be included directly." :info:build #error "Only <glib.h> can be included directly." :info:build ^ :info:build gnome-db-gray-bar.c:386:7: warning: assigning to 'gchar *' (aka 'char *') from 'const gchar *' (aka 'const char *') discards qualifiers [-Wincompatible-pointer-types] :info:build text = gtk_label_get_text (GTK_LABEL (bar->priv->label)); :info:build ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build 1 warning generated. :info:build mv -f gnome-db-gray-bar.o .libs/gnome-db-gray-bar.o :info:build /usr/bin/clang "-DPACKAGE_NAME=\"GNOME DB library\"" -DPACKAGE_TARNAME=\"libgnomedb\" -DPACKAGE_VERSION=\"1.2.1\" "-DPACKAGE_STRING=\"GNOME DB library 1.2.1\"" -DPACKAGE_BUGREPORT=\"gnome- db-list@gnome.org\" -DGNOME_DB_EXPLICIT_TRANSLATION_DOMAIN=\"libgnomedb-2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DGETTEXT_PACKAGE=\"libgnomedb-2\" -DHAVE_LOCALE_H=1 -DHAVE_LC_MESSAGES=1 -DHAVE_BIND_TEXTDOMAIN_CODESET=1 -DHAVE_GETTEXT=1 -DHAVE_DCGETTEXT=1 -DENABLE_NLS=1 -I. -I. -I.. -I.. -D_REENTRANT -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng15 -I/opt/local/include/libgda-1.2 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -D_REENTRANT -I/opt/local/include/gtksourceview-1.0 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng15 -I/opt/local/include/libgnomeprint-2.2 -I/opt/local/include/libart-2.0 -I/opt/local/include/libxml2 -I/opt/local/include/pango-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DHAVE_GTKSOURCEVIEW -D_REENTRANT -I/opt/local/include/libglade-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng15 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include/libxml2 -DHAVE_LIBGLADE -D_REENTRANT -DORBIT2=1 -D_REENTRANT -I/opt/local/include/libgnomeui-2.0 -I/opt/local/include /gnome-keyring-1 -I/opt/local/include/libbonoboui-2.0 -I/opt/local/include/libxml2 -I/opt/local/include/libgnomecanvas-2.0 -I/opt/local/include/gail-1.0 -I/opt/local/include/libart-2.0 -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include -I/opt/local/include/freetype2 -I/opt/local/include -I/opt/local/include/libpng15 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/libpng15 -I/opt/local/include/libgnome-2.0 -I/opt/local/include/gnome-vfs-2.0 -I/opt/local/lib/gnome-vfs-2.0/include -I/opt/local/include/gconf/2 -I/opt/local/include -I/opt/local/include/libbonobo-2.0 -I/opt/local/include/bonobo- activation-2.0 -I/opt/local/include/orbit-2.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -DBUILD_WITH_GNOME -DLIBGNOMEDB_ICONSDIR=\"/opt/local/share/pixmaps/libgnomedb\" -DLIBGNOMEDB_DATADIR=\"/opt/local/share/gnome-db\" -DLIBGNOMEDB_LOCALEDIR=\"/opt/local/share/locale\" -DLIBGNOMEDB_UIDIR=\"/opt/local/share/gnome-db/ui\" -DPREFIX=\"/opt/local\" -DSYSCONFDIR=\"/opt/local/etc\" -DDATADIR=\"/opt/local/share\" -DLIBDIR=\"/opt/local/lib\" -I/opt/local/include -L/opt/local/lib -pipe -Os -arch x86_64 -MT gnome-db- gray-bar.lo -MD -MP -MF .deps/gnome-db-gray-bar.Tpo -c gnome-db-gray-bar.c
/dev/null 2>&1 :info:build gnome-db-grid.c:831:8: warning: assigning to 'gchar *' (aka 'char *') from 'const gchar *' (aka 'const char *') discards qualifiers [-Wincompatible-pointer-types] :info:build title = gtk_tree_view_column_get_title (column); :info:build ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :info:build 1 warning and 6 errors generated. }}}
-- Ticket URL: <https://trac.macports.org/ticket/40270> MacPorts <http://www.macports.org/> Ports system for OS X
#40270: libgnomedb @1.2.1 build fails, code problems -------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgnomedb | -------------------------+-------------------------------- Comment (by c.herbig@…): P.S. This is in a +quartz environment, if that matters. -- Ticket URL: <https://trac.macports.org/ticket/40270#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X
#40270: libgnomedb @1.2.1 build fails, code problems -------------------------+-------------------------------- Reporter: c.herbig@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgnomedb | -------------------------+-------------------------------- Comment (by c.herbig@…): Another P.S. This port is quite out of date. The latest in ftp.gnome shows 3.99.7 (which might be a development version). -- Ticket URL: <https://trac.macports.org/ticket/40270#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
#40270: libgnomedb @1.2.1: #error "Only <glib.h> can be included directly." -------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: defect | Status: assigned Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: libgnomedb | -------------------------+-------------------------- Changes (by ryandesign@…): * status: new => assigned * owner: macports-tickets@… => ryandesign@… Comment: Replying to [ticket:40270 c.herbig@…]:
{{{ :info:build #error "Only <glib.h> can be included directly." }}}
That brings back memories! :) This is incompatible with glib 2.32 and up. We fixed the rest of this class of problems 17 months ago. -- Ticket URL: <https://trac.macports.org/ticket/40270#comment:3> MacPorts <http://www.macports.org/> Ports system for OS X
#40270: libgnomedb @1.2.1: #error "Only <glib.h> can be included directly." -------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: libgnomedb | -------------------------+-------------------------- Changes (by ryandesign@…): * status: assigned => closed * resolution: => fixed Comment: I don't have time to look into whether updating the port to 3.0 or newer would be a problem for dependents, so I'm just updating it to 1.2.2, and fixing the glib 2.32 problem, in r110207. -- Ticket URL: <https://trac.macports.org/ticket/40270#comment:4> MacPorts <http://www.macports.org/> Ports system for OS X
#40270: libgnomedb @1.2.1: #error "Only <glib.h> can be included directly." -------------------------+-------------------------- Reporter: c.herbig@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: fixed | Keywords: Port: libgnomedb | -------------------------+-------------------------- Comment (by c.herbig@…): Replying to [comment:4 ryandesign@…]:
I don't have time to look into whether updating the port to 3.0 or newer would be a problem for dependents, so I'm just updating it to 1.2.2, and fixing the glib 2.32 problem, in r110207. I'm still not sure what the difference is between libgnomedb and the libgda project; if libgnomedb has been completely superseded by libgda or if it still exists as a compatibility layer or what. The project website did not do much to clarify since it mentions both in the downloads page. However, this isn't a huge deal since I am only tinkering with it to experiment with configuring Gnumeric with all of it's optional dependencies.
-- Ticket URL: <https://trac.macports.org/ticket/40270#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts