[MacPorts] #34879: dia: #error "Only <glib.h> can be included directly." (was: dia: Build process fails)
MacPorts
noreply at macports.org
Fri Jun 15 15:48:07 PDT 2012
#34879: dia: #error "Only <glib.h> can be included directly."
-------------------------------+--------------------------------------------
Reporter: joseche@… | Owner: ryandesign@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.1.1
Keywords: | Port: dia
-------------------------------+--------------------------------------------
Changes (by ryandesign@…):
* status: new => assigned
* cc: joseche@… (removed)
* owner: macports-tickets@… => ryandesign@…
* keywords: dia =>
Old description:
> dia port fails during build due to error in code
>
> :info:build libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I.
> -I../.. -I../../intl -I../../lib -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
> -I/opt/local/include/libart-2.0 -D_REENTRANT
> -I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2
> -I/opt/local/include -I/opt/local/include/glib-2.0
> -I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2
> -DDIA_SHAPEDIR=\"/opt/local/share/dia/shapes\" -I/opt/local/include
> -I/opt/local/include/libxml2 -I/opt/local/include/freetype2
> -I/opt/local/include -pipe -O2 -arch i386 -Wall --std=c89 -Wdeclaration-
> after-statement -Wmissing-prototypes -Wmissing-declarations -finline-
> functions -fstrict-aliasing -Wpointer-arith -Winit-self -Wformat-
> nonliteral -MT custom.lo -MD -MP -MF .deps/custom.Tpo -c custom.c -fno-
> common -DPIC -o .libs/custom.o
> :info:build In file included from shape_typeinfo.c:30:
> :info:build /opt/local/include/glib-2.0/glib/gstrfuncs.h:28:2: error:
> #error "Only <glib.h> can be included directly."
> :info:build make[3]: *** [shape_typeinfo.lo] Error 1
> :info:build make[3]: *** Waiting for unfinished jobs....
> :info:build mv -f .deps/custom.Tpo .deps/custom.Plo
> :info:build make[3]: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_dia/dia/work/dia-0.97.2/objects/custom'
New description:
dia port fails during build due to error in code
{{{
:info:build libtool: compile: /usr/bin/gcc-4.0 -DHAVE_CONFIG_H -I.
-I../.. -I../../intl -I../../lib -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 -I/opt/local/include/libart-2.0 -D_REENTRANT
-I/opt/local/include/pango-1.0 -I/opt/local/include/freetype2
-I/opt/local/include -I/opt/local/include/glib-2.0
-I/opt/local/lib/glib-2.0/include -I/opt/local/include/libxml2
-DDIA_SHAPEDIR=\"/opt/local/share/dia/shapes\" -I/opt/local/include
-I/opt/local/include/libxml2 -I/opt/local/include/freetype2
-I/opt/local/include -pipe -O2 -arch i386 -Wall --std=c89 -Wdeclaration-
after-statement -Wmissing-prototypes -Wmissing-declarations -finline-
functions -fstrict-aliasing -Wpointer-arith -Winit-self -Wformat-
nonliteral -MT custom.lo -MD -MP -MF .deps/custom.Tpo -c custom.c -fno-
common -DPIC -o .libs/custom.o
:info:build In file included from shape_typeinfo.c:30:
:info:build /opt/local/include/glib-2.0/glib/gstrfuncs.h:28:2: error:
#error "Only <glib.h> can be included directly."
:info:build make[3]: *** [shape_typeinfo.lo] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build mv -f .deps/custom.Tpo .deps/custom.Plo
:info:build make[3]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_dia/dia/work/dia-0.97.2/objects/custom'
}}}
--
Comment:
As yes, the glib 2.32 incompatibility we've already fixed in many other
ports.
--
Ticket URL: <https://trac.macports.org/ticket/34879#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list