emerging dia-0.94-r4 returns the following: === Configuration: Source code location: . Compiler: i686-pc-linux-gnu-gcc Gnome support: yes Python support: yes Libart support (PNG export): yes Cairo support (experimental): Now type make to build dia... make all-recursive make[1]: Entering directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94' Making all in lib make[2]: Entering directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib' Making all in pixmaps make[3]: Entering directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib/pixmaps' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib/pixmaps' make[3]: Entering directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib' if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT diagramdata.lo -MD -MP -MF ".deps/diagramdata.Tpo" -c -o diagramdata.lo diagramdata.c; \ then mv -f ".deps/diagramdata.Tpo" ".deps/diagramdata.Plo"; else rm -f ".deps/diagramdata.Tpo"; exit 1; fi if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT geometry.lo -MD -MP -MF ".deps/geometry.Tpo" -c -o geometry.lo geometry.c; \ then mv -f ".deps/geometry.Tpo" ".deps/geometry.Plo"; else rm -f ".deps/geometry.Tpo"; exit 1; fi if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT color.lo -MD -MP -MF ".deps/color.Tpo" -c -o color.lo color.c; \ then mv -f ".deps/color.Tpo" ".deps/color.Plo"; else rm -f ".deps/color.Tpo"; exit 1; fi mkdir .libs i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT color.lo -MD -MP -MF .deps/color.Tpo -c color.c -fPIC -DPIC -o .libs/color.o i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT diagramdata.lo -MD -MP -MF .deps/diagramdata.Tpo -c diagramdata.c -fPIC -DPIC -o .libs/diagramdata.o In file included from diagramdata.c:23: intl.h:6:35: libgnome/gnome-i18n.h: No such file or directory if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT dia_xml.lo -MD -MP -MF ".deps/dia_xml.Tpo" -c -o dia_xml.lo dia_xml.c; \ then mv -f ".deps/dia_xml.Tpo" ".deps/dia_xml.Plo"; else rm -f ".deps/dia_xml.Tpo"; exit 1; fi i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT geometry.lo -MD -MP -MF .deps/geometry.Tpo -c geometry.c -fPIC -DPIC -o .libs/geometry.o diagramdata.c: In function `new_diagram_data': diagramdata.c:127: warning: implicit declaration of function `_' diagramdata.c:127: warning: passing arg 1 of `g_strdup' makes pointer from integer without a cast make[3]: *** [diagramdata.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... geometry.c:536: warning: 'determinate' defined but not used i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DDIA_SHEETDIR=\"/usr/share/dia/sheets\" -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -O2 -march=pentium4 -fomit-frame-pointer -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -finline-functions -fstrict-aliasing -MT dia_xml.lo -MD -MP -MF .deps/dia_xml.Tpo -c dia_xml.c -fPIC -DPIC -o .libs/dia_xml.o In file included from dia_xml.c:38: intl.h:6:35: libgnome/gnome-i18n.h: No such file or directory dia_xml.c: In function `xml_file_check_encoding': dia_xml.c:154: warning: implicit declaration of function `_' dia_xml.c:155: warning: passing arg 1 of `message_warning' makes pointer from integer without a cast dia_xml.c: In function `data_point': dia_xml.c:471: warning: passing arg 1 of `message_error' makes pointer from integer without a cast dia_xml.c:482: warning: passing arg 3 of `g_log' makes pointer from integer without a cast dia_xml.c:489: warning: passing arg 3 of `g_log' makes pointer from integer without a cast dia_xml.c:497: warning: passing arg 3 of `g_log' makes pointer from integer without a cast dia_xml.c: In function `warn_about_broken_libxml1': dia_xml.c:869: warning: passing arg 1 of `message_warning' makes pointer from integer without a cast make[3]: *** [dia_xml.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94' make: *** [all] Error 2 !!! ERROR: app-office/dia-0.94-r4 failed. !!! Function gnome2_src_compile, Line 48, Exitcode 2 !!! compile failure !!! If you need support, post the topmost build error, NOT this status message. === According to gentoo-portage.com the dependencies required are: app-text/docbook-xml-dtd4.2 >= dev-libs/libxml2 - 2.3.9 >= dev-libs/libxslt - 1 dev-libs/popt >= media-libs/freetype - 2.0.9 >= x11-libs/gtk+ - 2 >= x11-libs/pango - 1.1.5 gnome >= gnome-base/libgnome - 2.0 png media-libs/libpng python >= dev-lang/python - 1.5.2 zlib sys-libs/zlib app-text/docbook-xslstylesheets Currently installed dependency packages: app-text/docbook-xml-dtd-4.4 libxml2-2.6.22 libxslt-1.1.15 popt-1.7-r1 freetype-2.1.10 gtk+-2.8.9 pango-1.10.2 libgnome-2.12.0.1 libpng-1.2.8-r1 python-2.4.2 zlib-1.2.3 docbook-xsl-stylesheets-1.69.1 Appears to be unable to locate libgnome/gnome-i18n.h though the file exists, emerge of dia-0.94-r3 works fine (so far)
Reason is that AM_PATH_GTK_2_0(2.0.0) sets GTK_CFLAGS, so prevents pkg-config being run. Fix: delete that line from configure.in.
Created attachment 77132 [details, diff] 118591.bugs.gentoo.org-pkgconfig.patch
I had same problem like gratz'. When I use Ed's patch before libtoolize in src_unpack(), its compilation successfully, and then executing dia seems OK.
Created attachment 77412 [details] A new ebuild as dia-0.94-r5 with a Ed's patch.
Happening for me as well.
ran into the same problem too on amd64; the new patch and ebuild worked without any problems for me.
The patch works for me too. I don't see why this would qualify for a version bump, though.
personaly; I could careless if it was a version bump or not. As long as the package is fixed, that is all that should matter for now.
*** Bug 112337 has been marked as a duplicate of this bug. ***
*** Bug 117007 has been marked as a duplicate of this bug. ***
*** Bug 119289 has been marked as a duplicate of this bug. ***
Created attachment 79942 [details, diff] patch for -r4 instead of new ebuild
gnome-office team: I've reduced the three dia-0.94 building bugs down to this one and tested it on two architectures. I can go ahead and apply it if you want, just say the word.
I had this problem and commented on dupe 112337. This patch works for me on amd64.
Created attachment 79970 [details, diff] correct patch libgnome is slowly being dissolved into GTK/glib. The internationalization stuff has been moved into glib and libgnome's i18n stuff is now deprecated. We should use the glib implementation.
Apologies for jumping the gun there. After solving the i18n issues, the libxml include problems still appear. Ed's patch seems to solve them. My patch isn't really necessary unless dia starts defining GNOME_DISABLE_DEPRECATED - I doubt the libgnome API will break anytime soon.
Daniel, I took a glance at dia cvs earlier today. I think that 0.95 is going to make use of the newer glib/gtk+ in lieu of libgnome I think comment 13 still stands. gnome-office team, permission to commit?
(In reply to comment #17) > Daniel, I took a glance at dia cvs earlier today. I think that 0.95 is going > to make use of the newer glib/gtk+ in lieu of libgnome > > I think comment 13 still stands. gnome-office team, permission to commit? > Please do. Thanks for taking this on.
ok, in portage now Thanks to all the users who contributed testing and patches to this and related bugs, particularly Ed Catmur for providing the best solution.