Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118591 - dia-0.94-r4 emerge failed
Summary: dia-0.94-r4 emerge failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: GNOME Office (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 112337 117007 119289 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-10 15:53 UTC by gratz
Modified: 2006-02-16 16:16 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
118591.bugs.gentoo.org-pkgconfig.patch (118591.bugs.gentoo.org-pkgconfig.patch,296 bytes, patch)
2006-01-14 16:22 UTC, Ed Catmur
Details | Diff
A new ebuild as dia-0.94-r5 with a Ed's patch. (dia-0.94-r5.ebuild,2.05 KB, text/plain)
2006-01-18 05:10 UTC, hiyuh
Details
patch for -r4 instead of new ebuild (dia-0.94-r4.ebuild.patch,643 bytes, patch)
2006-02-16 08:07 UTC, Aron Griffis (RETIRED)
Details | Diff
correct patch (dia.patch,293 bytes, patch)
2006-02-16 15:11 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gratz 2006-01-10 15:53:33 UTC
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)
Comment 1 Ed Catmur 2006-01-14 16:18:26 UTC
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.
Comment 2 Ed Catmur 2006-01-14 16:22:48 UTC
Created attachment 77132 [details, diff]
118591.bugs.gentoo.org-pkgconfig.patch
Comment 3 hiyuh 2006-01-18 05:09:10 UTC
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.
Comment 4 hiyuh 2006-01-18 05:10:54 UTC
Created attachment 77412 [details]
A new ebuild as dia-0.94-r5 with a Ed's patch.
Comment 5 Alexander Skwar 2006-02-01 05:07:38 UTC
Happening for me as well.
Comment 6 Chris Torske 2006-02-03 06:09:57 UTC
ran into the same problem too on amd64; the new patch and ebuild worked without any problems for me.
Comment 7 Patrick McLean gentoo-dev 2006-02-07 11:53:02 UTC
The patch works for me too.

I don't see why this would qualify for a version bump, though.
Comment 8 Chris Torske 2006-02-07 17:18:12 UTC
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.
Comment 9 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 08:01:06 UTC
*** Bug 112337 has been marked as a duplicate of this bug. ***
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 08:02:45 UTC
*** Bug 117007 has been marked as a duplicate of this bug. ***
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 08:03:57 UTC
*** Bug 119289 has been marked as a duplicate of this bug. ***
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 08:07:27 UTC
Created attachment 79942 [details, diff]
patch for -r4 instead of new ebuild
Comment 13 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 08:21:10 UTC
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.
Comment 14 Jose daLuz 2006-02-16 08:42:24 UTC
I had this problem and commented on dupe 112337. This patch works for me on amd64.
Comment 15 Daniel Drake (RETIRED) gentoo-dev 2006-02-16 15:11:12 UTC
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.
Comment 16 Daniel Drake (RETIRED) gentoo-dev 2006-02-16 15:33:29 UTC
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.
Comment 17 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 16:04:33 UTC
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?
Comment 18 Joe McCann (RETIRED) gentoo-dev 2006-02-16 16:07:00 UTC
(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.
Comment 19 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 16:16:08 UTC
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.