Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21940 - Can't emerge app-office/dia-0.91
Summary: Can't emerge app-office/dia-0.91
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-30 04:07 UTC by Sebastian Bergmann (RETIRED)
Modified: 2003-09-21 09:50 UTC (History)
2 users (show)

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


Attachments
build logifle (dia.log,328.72 KB, text/plain)
2003-09-03 06:55 UTC, Sebastian Bergmann (RETIRED)
Details
proposed dia-0.91 gcc patch (dia-0.91-gcc.patch,589 bytes, patch)
2003-09-09 17:15 UTC, Brandy Westcott (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bergmann (RETIRED) gentoo-dev 2003-05-30 04:07:03 UTC
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intl -I../../lib -DORBIT2=1 -pthread
 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr
/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/
glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libar
t-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbon
obo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs
-2.0/include -I/usr/include/linc-1.0 -I/usr/include/bonobo-activation-2.0 -I/usr
/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbono
boui-2.0 -I/usr/include/python2.2 -I/usr/include/libxml2 -I/usr/include/libxml2
-march=pentium3 -O3 -pipe -Wall -Wunused -Winline -Wmissing-prototypes -Wmissing
-declarations -finline-functions -fstrict-aliasing -c pydia-handle.c  -fPIC -DPI
C -o pydia-handle.lo
pydia-geometry.c:219:22: pasting "." and "top" does not give a valid preprocessi
ng token
pydia-geometry.c:219:22: pasting "." and "top" does not give a valid preprocessi
ng token
pydia-geometry.c:221:23: pasting "." and "left" does not give a valid preprocess
ing token
pydia-geometry.c:221:23: pasting "." and "left" does not give a valid preprocess
ing token
pydia-geometry.c:223:24: pasting "." and "right" does not give a valid preproces
sing token
pydia-geometry.c:223:24: pasting "." and "right" does not give a valid preproces
sing token
pydia-geometry.c:225:25: pasting "." and "bottom" does not give a valid preproce
ssing token
pydia-geometry.c:225:25: pasting "." and "bottom" does not give a valid preproce
ssing token
pydia-geometry.c: In function `PyDiaArrow_Str':
pydia-geometry.c:346: warning: int format, double arg (arg 4)
pydia-geometry.c: At top level:
pydia-geometry.c:96: warning: inlining failed in call to `PyDiaBezPoint_New'
pydia-geometry.c:116: warning: called from here
pydia-geometry.c:34: warning: inlining failed in call to `PyDiaPoint_New'
pydia-geometry.c:54: warning: called from here
pydia-geometry.c:34: warning: inlining failed in call to `PyDiaPoint_New'
pydia-geometry.c:241: warning: called from here
pydia-geometry.c:34: warning: inlining failed in call to `PyDiaPoint_New'
pydia-geometry.c:243: warning: called from here
pydia-geometry.c:34: warning: inlining failed in call to `PyDiaPoint_New'
pydia-geometry.c:245: warning: called from here
pydia-geometry.c:34: warning: inlining failed in call to `PyDiaPoint_New'
pydia-geometry.c:54: warning: called from here
pydia-handle.c: In function `PyDiaHandle_Connect':
pydia-handle.c:74: warning: comparison of distinct pointer types lacks a cast
pydia-geometry.c:96: warning: inlining failed in call to `PyDiaBezPoint_New'
pydia-geometry.c:116: warning: called from here
pydia-geometry.c:197: warning: inlining failed in call to `PyDiaPoint_GetAttr'
pydia-geometry.c:365: warning: called from here
pydia-geometry.c:197: warning: inlining failed in call to `PyDiaPoint_GetAttr'
pydia-geometry.c:366: warning: called from here
pydia-geometry.c:197: warning: inlining failed in call to `PyDiaPoint_GetAttr'
pydia-geometry.c:365: warning: called from here
pydia-geometry.c:197: warning: inlining failed in call to `PyDiaPoint_GetAttr'
pydia-geometry.c:366: warning: called from here
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../..
/intl   -I../../lib     -DORBIT2=1 -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gt
k-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/inclu
de -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libxml2 -I/usr/include/libart-2.0 -I/usr/include/libgnome-2.0 -I/
usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2 -I/usr
/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/linc-1.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/includ
e/libgnomecanvas-2.0 -I/usr/include/libbonoboui-2.0                     -I/usr/i
nclude/python2.2        -I/usr/include/libxml2      -I/usr/include/libxml2 -marc
h=pentium3 -O3 -pipe  -Wall -Wunused -Winline -Wmissing-prototypes -Wmissing-dec
larations -finline-functions -fstrict-aliasing -c pydia-image.c
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:413: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:414: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:415: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:416: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:413: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:414: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:415: warning: called from here
pydia-geometry.c:211: warning: inlining failed in call to `PyDiaRectangle_GetAtt
r'
pydia-geometry.c:416: warning: called from here
make[3]: *** [pydia-geometry.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../intl -I../../lib -DORBIT2=1 -pthread
 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr
/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/
glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/libar
t-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libbon
obo-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs
-2.0/include -I/usr/include/linc-1.0 -I/usr/include/bonobo-activation-2.0 -I/usr
/include/libgnomeui-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libbono
boui-2.0 -I/usr/include/python2.2 -I/usr/include/libxml2 -I/usr/include/libxml2
-march=pentium3 -O3 -pipe -Wall -Wunused -Winline -Wmissing-prototypes -Wmissing
-declarations -finline-functions -fstrict-aliasing -c pydia-image.c  -fPIC -DPIC
 -o pydia-image.lo
In file included from pydia-image.c:25:
pydia-image.h:16:7: warning: no newline at end of file
make[3]: Leaving directory `/var/tmp/portage/dia-0.91/work/dia-0.91/plug-ins/pyt
hon'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dia-0.91/work/dia-0.91/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dia-0.91/work/dia-0.91'
make: *** [all-recursive-am] Error 2

!!! ERROR: app-office/dia-0.91 failed.
!!! Function src_compile, Line 45, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.48 (default-x86-1.4, gcc-3.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r5 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow arts avi crypt cups encode gif jpeg kde libg++ libwww mikmod
mmx motif mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms zlib
gdbm berkdb slang readline svga tcltk gpm tcpd pam perl python esd imlib
oggvorbis gtk qt acpi alsa apm dga directfb dvd gnome gtk2 java mozilla opengl
pcmcia sdl ssl usb X xv"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache fixpackages"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2003-06-12 14:23:33 UTC
seems like a gcc-3.3 bug to me. can you try compiling with lower optimisations like -O2 or -O1 ?
Comment 2 Sebastian Bergmann (RETIRED) gentoo-dev 2003-09-03 06:55:14 UTC
Created attachment 16999 [details]
build logifle
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-09-09 17:12:09 UTC
The offending block of code is: 
 
#define I_OR_F(v) \ 
  (self->is_int ? \ 
   PyInt_FromLong(self->r.ri.##v) : PyFloat_FromDouble(self->r.rf.##v)) 
 
  if (!strcmp(attr, "__members__")) 
    return Py_BuildValue("[ssss]", "top", "left", "right", "bottom" ); 
  else if (!strcmp(attr, "top")) 
    return I_OR_F(top); 
  else if (!strcmp(attr, "left")) 
    return I_OR_F(left); 
  else if (!strcmp(attr, "right")) 
    return I_OR_F(right); 
  else if (!strcmp(attr, "bottom")) 
    return I_OR_F(bottom); 
 
  PyErr_SetString(PyExc_AttributeError, attr); 
  return NULL; 
 
#undef I_O_F 
 
This is a gcc-3.3 preprocessing issue. gcc3.3 is more compliant with 
ISO/ANSI C standards than earlier versions and doesn't like the "##" 
in self->r.ri.##v. Removing the two occurences of ## will allow dia-0.91 
to compile ok with gcc-3.3 (and earlier versions.) 
Comment 4 Brandy Westcott (RETIRED) gentoo-dev 2003-09-09 17:15:03 UTC
Created attachment 17374 [details, diff]
proposed dia-0.91 gcc patch

This proposed patch will allow dia-0.91 to compile against gcc-3.3
(without breaking compatibility with older versions of gcc.)
Comment 5 Alastair Tse (RETIRED) gentoo-dev 2003-09-10 07:24:12 UTC
prob something that should also be forwarded upstream to the dia devs.
Comment 6 Brandy Westcott (RETIRED) gentoo-dev 2003-09-15 19:26:07 UTC
Looking furthur I noticed that this fix has already made it's way into all 
versions of dia from 0.92-pre1 onwards. From the changelog: 
 
	* plug-ins/pydia/pydia-geometry.c : removed ## to make it 
	compile with gcc 3.3, fixes bug #117204. Thanks to Daniel  
	Jacobowitz. 
 
 
Comment 7 Nick Fish 2003-09-17 14:30:54 UTC
I can confirm that applying this patch allows dia to build successfully.
Comment 8 foser (RETIRED) gentoo-dev 2003-09-21 09:50:15 UTC
sorry this took so long, added patch to 0.91 and some misc. fixes.

thanks for the help