Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 117007 - ERROR: app-office/dia-0.94-r4
Summary: ERROR: app-office/dia-0.94-r4
Status: RESOLVED DUPLICATE of bug 118591
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: GNOME Office (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-28 11:04 UTC by Alexey Maximov
Modified: 2006-02-16 08:02 UTC (History)
5 users (show)

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


Attachments
dia-0.94-r5.ebuild (dia-0.94-r5.ebuild,2.03 KB, text/plain)
2005-12-28 14:50 UTC, Alexey Maximov
Details
dia-0.94-gnome.patch (dia-0.94-gnome.patch,835 bytes, patch)
2005-12-28 14:50 UTC, Alexey Maximov
Details | Diff
patch for -r4 instead of new ebuild (dia-0.94-r4.ebuild.patch,646 bytes, patch)
2006-02-16 07:55 UTC, Aron Griffis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexey Maximov 2005-12-28 11:04:57 UTC
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 -march=pentium2 -O2 -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
In file included from diagramdata.c:23:
intl.h:6:35: libgnome/gnome-i18n.h: No such file or directory
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
 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 -march=pentium2 -O2 -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
make[3]: *** [diagramdata.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
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
Comment 1 Pawel Madej aka Nysander 2005-12-28 12:50:05 UTC
please provide output of "emerge info" and USE flags for Dia used during compilation ( emerge -pv dia ) 
Comment 2 Alexey Maximov 2005-12-28 14:48:48 UTC
[ebuild   R   ] app-office/dia-0.94-r4  USE="-debug gnome png python -static zlib" 0 kB


localhost dia # emerge info
Portage 2.1_pre2 (!/usr/local/fantoo/profiles/fantoo-stable, gcc-3.4.5, glibc-2.3.6-r1, 2.6.15-rc7-rt1 i686)
=================================================================
System uname: 2.6.15-rc7-rt1 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1, 2.16.91.0.3, 2.16.91.0.4, 9999_pre051123
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O2 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium2 -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distcc distlocks prelink sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
LINGUAS="ru uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/fantoo /usr/local/bmg-main"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acl acpi acpi4linux activefilter adns aim alsa amuled ao apache2 arts artswrappersuid artworkextra asf asterisk async atm audiofile automount avahi avi bash-completion bcp berkdb bidi bitmap-fonts bjam bl blas bluetooth bmp bonobo browserplugin bzip2 cairo caps cdda cddb cdio cdparanoia cdr cflags chm chroot clamav clanJavaScript clanVoice corba crypt css cups curl custom-cflags daap dba dbus dga dhcp directfb djbfft djvu dlloader dpms dri dts dv dvb dvd dvdr dvdread dvi dxr3 dynagraph ecc edl eds effects elf emacs encode evo exif expat extensions fame fat fbcon fbsplash ffmpeg fftw firebird firefox flac flash fltk foomaticdb fortran fping fpx freetds freetype ftp gcj gd gdbm ggi gif gimp gimpprint ginac glibc-omitfp glitz glut gmail gmp gnokii gnome gnome-firefox gnome-print gnomedb gnutls gpgme gphoto2 gpm graphviz gs gsf gsm gstreamer gtk gtk2 gtkhtml guile gzip hal haskell hdf5 hfs hlapi howl http httpd iconv icq icu idea idl idn ieee1394 imagemagick imap imlib inkjar innodb iproute2 irc irda irmc irssi ithreads jabber jack jack-tmpfs java javamail javascript jbig jfs jikes jms jmx joystick jp2 jpeg jpeg2k junit jython kde kdeenablefinal kdepim kerberos kernel_linux kqemu ladcca ladspa lcd lcms ldap libcaca libclamav libgda libsamplerate libvisual lirc live lj lm_sensors lmtp logitech-mouse logrotate lua lufsusermount lzo lzw mad madwifi maildir mailwrapper maps matroska mbox mbrola md5sum mdb mgetty mh mikmod mjpeg mmx mng mod mono motif mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg2 mpeg4 mplayer mppe-mppc msn mssql mudflap multislot multitargets musepack music musicbrainz mysql mythtv nas nautilus ncurses network nntp no-old-linux nocd nptl nptlonly nsplugin ntfs ntlm ntlm_unsupported_patch numeric oav objc oci8 odbc ogg oggvorbis openexr opengl opie oracle osc oss pam pam_chroot pam_console pam_timestamp pango pascal pci pcmcia pcre pda pdf pdflib perl php pic plotutils plugin plx png pop3 portaudio postgres postscript povray ppds pvm pwdb pyste python qhull qt quicktime quotas radius rar rc5 rdesktop readline real realtime reiserfs remote rhino rle rss rtc ruby samba sametime sasl sblive scanner screen sdl sensord sftplogging shorten shout silc skey skins slang slic slp smartcard sms sndfile snmp socks5 sounds speex spell spreadsheet sql sqlite srv ssl stats stream subtitles svg svga svgz sysfs syslog szip t1lib tcltk tetex theora threads tidy tiff tos transcode truetype truetype-fonts unicode urandom usb userlocales utf8 v4l v4l2 vcd vcdimager vfat vidix visualization vlm vorbis webservices wifi win32codecs winbind wmf wv wxwindows xanim xbase xchat xchatdccserver xfs xine xml xml2 xmms xosd xprint xrandr xv xvid yahoo yv12 zeroconf zip zlib zvbi elibc_glibc linguas_ru linguas_uk userland_GNU"
Unset:  ASFLAGS, CTARGET, LC_ALL

Comment 3 Alexey Maximov 2005-12-28 14:50:10 UTC
Created attachment 75691 [details]
dia-0.94-r5.ebuild

fixed ebuild
Comment 4 Alexey Maximov 2005-12-28 14:50:59 UTC
Created attachment 75692 [details, diff]
dia-0.94-gnome.patch

fix for USE=gnome
Comment 5 Alexey Maximov 2005-12-28 14:51:29 UTC
please test it
Comment 6 Guy 2006-01-13 10:22:35 UTC
Worked for me
Comment 7 Alexander Skwar 2006-02-01 05:31:49 UTC
(In reply to comment #3)
> Created an attachment (id=75691) [edit]
> dia-0.94-r5.ebuild
> 
> fixed ebuild
> 

Works for me as well. When will this be integratd into the portage tree?
Comment 8 Tristan RENAUD 2006-02-10 14:53:23 UTC
Hi,

Same error here :

In file included from diagramdata.c:23:
intl.h:6:35: libgnome/gnome-i18n.h: No such file or directory
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] Erreur 1
make[3]: *** Attente des t
Comment 9 Tristan RENAUD 2006-02-10 14:53:23 UTC
Hi,

Same error here :

In file included from diagramdata.c:23:
intl.h:6:35: libgnome/gnome-i18n.h: No such file or directory
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] Erreur 1
make[3]: *** Attente des tâches non terminées....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I/usr/include/libxml2 -I/usr/include/gtk-2.0 -I/usr/lib64/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/lib64/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/lib64/glib-2.0/include -I/usr/include/libart-2.0 -I/usr/include/libart-2.0 -DLIBDIR=\"/usr/lib64\" -DDATADIR=\"/usr/share/dia\" -I/usr/include/libxml2 -I/usr/include/freetype2 -march=k8 -O3 -pipe -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
make[3]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94/lib'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/dia-0.94-r4/work/dia-0.94'
make: *** [all] Erreur 2

!!! ERROR: app-office/dia-0.94-r4 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile
  ebuild.sh, line 1609:   Called gnome2_src_compile



********************************************
EMERGE INFO :
********************************************

Portage 2.1_pre4-r1 (default-linux/amd64/2005.0, gcc-3.4.5, glibc-2.3.6-r2, 2.6.15-gentoo x86_64)
=================================================================
System uname: 2.6.15-gentoo x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre15
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ ftp://mirrors.blueyonder.co.uk/mirrors/gentoo ftp://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apache2 apm arts audiofile avi bash-completion berkdb bindist bitmap-fonts bmp bonobo bzip2 bzlib cdb cdr cpudetection crypt cups dga divx4linux dts dv dvb dvd dvdr dvdread eds emboss encode exif fbcon flac foomaticdb fortran ftp gb geoip gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml gveejay hal icq ieee1394 imlib ipv6 jabber java jpeg kde lm_sensors lzw lzw-tiff mikmod mime mjpeg mozilla mp3 mpeg mplayer ncurses nls nvidia ofx ogg oggvorbis openal opengl oss pam pdflib perl png ppds print python qt quicktime rar readline real sdl speex spell ssl subtitles svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l v4l2 videos visualization vorbis wmf xface xine xml xmms xosd xpm xprint xsl xv xvid yahoo zlib elibc_glibc kernel_linux linguas_fr userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS

The new ebuild and the patch solved the problem. Hope to see it in the portage tree as soon as possible :)

Thanks.
Tristan.
Comment 10 matthew.cline 2006-02-15 18:36:13 UTC
I had this same problem, and the ebuild and patch in this bug report work for me.
Comment 11 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 07:55:53 UTC
Created attachment 79940 [details, diff]
patch for -r4 instead of new ebuild

This patch is clearly a workaround for an upstream bug.  It's not the Right Way in that it's manually inserting elements into GTK_CFLAGS instead of fixing whatever the disconnect is between GTK_MODULES and GTK_CFLAGS in configure.in.  Nonetheless, I spent a little while monkeying with it and couldn't manage to fix it the Right Way, so I'd recommend using this workaround for the moment, and hope upstream fixes the real problem for 0.95

There is no need for -r5 since this is a compile-time fix, rather apply the attached diff to -r4
Comment 12 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 07:56:15 UTC
Re-opening so gnome-office team will apply the patch
Comment 13 Aron Griffis (RETIRED) gentoo-dev 2006-02-16 08:02:45 UTC
Better patch is in 118591

*** This bug has been marked as a duplicate of 118591 ***