Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29181 - app-office/gnumeric-1.2.0 doesn't build with gcc-2.95 (patch attached)
Summary: app-office/gnumeric-1.2.0 doesn't build with gcc-2.95 (patch attached)
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-09-20 04:36 UTC by Tristan Henderson
Modified: 2003-09-21 13:34 UTC (History)
0 users

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


Attachments
patch to fix gcc-2.95 compilation error (gnumeric-1.2.0-gcc.2.95fix.txt,693 bytes, patch)
2003-09-20 04:36 UTC, Tristan Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Henderson 2003-09-20 04:36:07 UTC
app-office/gnumeric-1.2.0 fails to compile with gcc-2.95 (a C99 error):

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\""/usr/share/locale"\"                            
-DGNUMERIC_DATADIR=\""/usr/share/gnumeric/1.2.0-bonobo"\"               
                -I../..                                                         -I../../src                                                     -I../../src/tools         
      
                                -I../../src/cut-n-paste-code/foocanvas                          -DORBIT2=1 -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include
/libgsf-1 -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/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/us
r/include/libglade-2.0 -I/usr/include/libgnomecanvas-2.0 -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/gc
onf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include 
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libbonoboui-2.0 
-I/usr/include/l
ibgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2      -mcpu=i686 -O3 -pipe -g -g -g 
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED 
-DGDK_MULTIHEAD
_SAFE -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED 
-DPANGO_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -Wall -Wmissing-prototypes  
-Wsign-compare -Wpointer-arith -Wnested
-externs -Wchar-subscripts -Wwrite-strings -D_POSIX_SOURCE -D__EXTENSIONS__ -D_BSD_SOURCE 
-c dialog-shuffle.c
dialog-sheet-order.c: In function `location_of_iter':
dialog-sheet-order.c:120: parse error before `loc'
dialog-sheet-order.c:124: `loc' undeclared (first use in this function)
dialog-sheet-order.c:124: (Each undeclared identifier is reported only once
dialog-sheet-order.c:124: for each function it appears in.)
dialog-sheet-order.c:125: warning: control reaches end of non-void function
dialog-sheet-order.c: In function `cb_selection_changed':
dialog-sheet-order.c:171: warning: `row' might be used uninitialized in this function
dialog-sheet-order.c: In function `cb_item_move':
dialog-sheet-order.c:356: warning: `row' might be used uninitialized in this function
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\""/usr/share/locale"\"                            
-DGNUMERIC_DATADIR=\""/usr/share/gnumeric/1.2.0-bonobo"\"               
                -I../..                                                         -I../../src                                                     -I../../src/tools         
      
                                -I../../src/cut-n-paste-code/foocanvas                          -DORBIT2=1 -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include
/libgsf-1 -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/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/us
r/include/libglade-2.0 -I/usr/include/libgnomecanvas-2.0 -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/gc
onf/2 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include 
-I/usr/include/bonobo-activation-2.0 -I/usr/include/libgnomeui-2.0 -I/usr/include/libbonoboui-2.0 
-I/usr/include/l
ibgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2      -mcpu=i686 -O3 -pipe -g -g -g 
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED 
-DGDK_MULTIHEAD
_SAFE -DGTK_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED 
-DPANGO_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -Wall -Wmissing-prototypes  
-Wsign-compare -Wpointer-arith -Wnested
-externs -Wchar-subscripts -Wwrite-strings -D_POSIX_SOURCE -D__EXTENSIONS__ -D_BSD_SOURCE 
-c dialog-simulation.c
make[3]: *** [dialog-sheet-order.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/gnumeric-1.2.0/work/gnumeric-1.2.0/src/dialogs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnumeric-1.2.0/work/gnumeric-1.2.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnumeric-1.2.0/work/gnumeric-1.2.0'
make: *** [all-recursive-am] Error 2

!!! ERROR: app-office/gnumeric-1.2.0 failed.
!!! Function src_compile, Line 63, Exitcode 2
!!! (no error message)

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




Portage 2.0.49-r4 (default-1.0, gcc-2.95.3, glibc-2.2.5-r8, 2.4.22)
==============================================================
===
System uname: 2.4.22 i686 Transmeta(tm) Crusoe(tm) Processor TM5800
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config 
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ 
/usr/share/texmf/tex/platex/config/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=i686 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache autoaddcvs digest sandbox strict"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 apm avi crypt cups encode libg++ mmx mpeg ncurses pdflib quicktime spell truetype 
xml2 xmms xv aalib berkdb esd gdbm gif gnome-libs gpm gtk imlib java libwww motif mozilla 
oggvorbis pam python readline sdl snmp ssl svga tcpd -3dnow alsa apache2 -arts bonobo cdr 
curses dga dvd emacs ethereal evo fbcon gnome gtk2 gtkhtml guile jpeg -kde lcms -lirc -mikmod 
-moznoxft mysql nas -nls odbc -opengl oss pcmcia pda perl pic plotutils png pnp -qt -qtmt samba 
skey -slang smooth tcltk tetex tiff trusted usb vim-with-x xml X X509 zlib"
Comment 1 Tristan Henderson 2003-09-20 04:36:52 UTC
Created attachment 18024 [details, diff]
patch to fix gcc-2.95 compilation error

Here is a patch to fix this bug. The fix is already in the gnumeric cvs.
Comment 2 foser (RETIRED) gentoo-dev 2003-09-21 10:35:05 UTC
patch looks fine to me, added. I assume this has been reported to the gnumeric team ?

Thanks for your help.
Comment 3 Tristan Henderson 2003-09-21 13:34:09 UTC
I think the gnumeric team already know about it - I generated my patch and then checked their cvs, and an identical fix had already been committed.