Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
Bug 53467 - gnumeric 1.2.6 doesn't compile
Summary: gnumeric 1.2.6 doesn't compile
Status: RESOLVED DUPLICATE of bug 2272
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 59791 61208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-09 16:25 UTC by Paolo
Modified: 2009-03-16 11:12 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo 2004-06-09 16:25:31 UTC
emerging gnumeric 1.2.6 fails during compile in corba-application.c 

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

Actual Results:  
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\"/usr/share/locale\"
-I../../src -I../../src -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/X11R6/include
-I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/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/gconf/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/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2
-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr -frename-registers
-fprefetch-loop-arrays -falign-functions=64 -Wsign-compare -Wpointer-arith
-Wnested-externs -Wchar-subscripts -Wwrite-strings -MT corba-workbook.lo -MD -MP
-MF .deps/corba-workbook.Tpo -c corba-workbook.c  -fPIC -o .libs/corba-workbook.o
corba-application.c:49: error: syntax error before
"POA_GNOME_Gnumeric_Application__epv"
corba-application.c:49: warning: no semicolon at end of struct or union
corba-application.c:50: warning: data definition has no type or storage class
corba-application.c:53: error: syntax error before "capp_workbook_open"
corba-application.c:77: error: syntax error before '*' token
corba-application.c: In function `capp_workbooks':
corba-application.c:83: error: `GNOME_Gnumeric_Workbooks' undeclared (first use
in this function)
corba-application.c:83: error: (Each undeclared identifier is reported only once
corba-application.c:83: error: for each function it appears in.)
corba-application.c:83: error: `res' undeclared (first use in this function)
corba-application.c: At top level:
corba-application.c:100: error: syntax error before '*' token
corba-application.c: In function `capp_class_init':
corba-application.c:102: error: `capp' undeclared (first use in this function)
corba-application.c: In function `capp_get_type':
corba-application.c:106: error: `POA_GNOME_Gnumeric_Application__init'
undeclared (first use in this function)
corba-application.c:106: error: `POA_GNOME_Gnumeric_Application__fini'
undeclared (first use in this function)
corba-application.c:106: error: syntax error before ')' token
corba-application.c: At top level:
corba-application.c:112: error: `capp' used prior to declaration
make[3]: *** [corba-application.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory
`/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/plugins/corba'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6'
make: *** [all] Error 2

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


Expected Results:  
gnumeric compiled (:

bash-2.05b# emerge info
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr
-frename-registers -fprefetch-loop-arrays -falign-functions=64"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr
-frename-registers -fprefetch-loop-arrays -falign-functions=64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://ftp.iasi.roedu.net/mirrors/gentoo.org/ http://gentoo.mirror.sdv.fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi acpi4linux alsa apache2 avi berkdb cdr crypt dvd encode esd ethereal
foomaticdb gdbm gif gpm gtk gtk2 gtkhtml icq imagemagick imlib imlib2 innodb
irda irmc java jpeg libg++ libwww lirc mad mmx motif mpeg msn mysql ncurses nls
offensive oggvorbis opengl operanom2 oscar pam pcap pdflib perl png pnp python
quicktime readline samba sdl slang spell sse ssl svga tcltk tiff truetype
unicode usb x86 xface xml xml2 xmms xosd xv xvid yahoo zlib"
Comment 1 foser (RETIRED) gentoo-dev 2004-06-10 09:55:39 UTC
first try with sane CFLAGS, only then report.

anyway i think this is already reported somewhere... please search
Comment 2 Paolo 2004-06-10 13:08:54 UTC
Houston, it's the same problem here with
CFLAGS="-march=pentium3"

Sorry, but I can't find anything on internet (google/forums.gentoo/ecc.)
Comment 3 foser (RETIRED) gentoo-dev 2004-06-10 15:35:10 UTC
changing CFLAGS for just one package may not have the desired effect. You must realize that just recompiling one pack with safe CFLAGS will make it automaticly stable, it still depends on a load of stuff that is not compiled that way.

Anyway, i meant to suggest you search _this bugzilla_ ... 
Comment 4 Paolo 2004-06-11 09:17:42 UTC
On _this_ bugzilla I can't find anything interesting about a gnumeric with the same prob.
I recompiled libbonobo with safe CFLAGS and now "emerge gnumeric" give me another error:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I./widgets -I./dialogs -I./tools -I../src/cut-n-paste-code -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/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/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/gconf/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/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2      -march=pentium3 -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -MT sheet-autofill.o -MD -MP -MF ".deps/sheet-autofill.Tpo" \
  -c -o sheet-autofill.o `test -f 'sheet-autofill.c' || echo './'`sheet-autofill.c; \
then mv -f ".deps/sheet-autofill.Tpo" ".deps/sheet-autofill.Po"; \
else rm -f ".deps/sheet-autofill.Tpo"; exit 1; \
fi
sheet-autofill.c: In function `autofill_cell':
sheet-autofill.c:704: error: assignment of read-only member `cols'
sheet-autofill.c:712: error: assignment of read-only member `rows'
sheet-autofill.c:722: error: assignment of read-only member `expr'
make[4]: *** [sheet-autofill.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6'
make: *** [all] Error 2

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

Now I have to understand on what library (to have recompiled with safe CFLAGS) sheet-autofill.c rely on.
(In the meanwhile I also update gcc to v3.3.3)
Comment 5 Rick Jenkins 2004-06-13 10:25:08 UTC
I have this last too, on a Pentium II system which has always had  uber-conservative CFLAGS and a vanilla-sources kernel.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-06-15 10:58:44 UTC
I have teh bug mentioned in comment #4 with conservative CFLAGS on amd64 using gcc-3.4.0-r6 with app-office/gnumeric-1.2.2
Comment 7 Simone Piunno 2004-06-17 03:32:42 UTC
I have a different issue:

if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I. -I./widgets -I./dialogs -I./tools -I../src/cut-n-paste-code -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/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/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/gconf/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/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2      -O2 -mcpu=i686 -fomit-frame-pointer -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -MT sheet-filter.o -MD -MP -MF ".deps/sheet-filter.Tpo" \
  -c -o sheet-filter.o `test -f 'sheet-filter.c' || echo './'`sheet-filter.c; \
then mv -f ".deps/sheet-filter.Tpo" ".deps/sheet-filter.Po"; \
else rm -f ".deps/sheet-filter.Tpo"; exit 1; \
fi
sheet-autofill.c: In function `autofill_cell':
sheet-autofill.c:704: error: assignment of read-only member `cols'
sheet-autofill.c:712: error: assignment of read-only member `rows'
sheet-autofill.c:722: error: assignment of read-only member `expr'
make[4]: *** [sheet-autofill.o] Error 1
make[4]: *** Waiting for unfinished jobs....
sheet-filter.c:379:2: warning: #warning "FIXME: is this really the type of equality (and hash) we want here?"
make[4]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnumeric-1.2.6/work/gnumeric-1.2.6'
make: *** [all] Error 2

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

I have compiled everything from stage1 without changing CFLAGS

My config:
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 apm arts audiofile avi berkdb caps crypt cups curl divx4linux doc encode esd ethereal fam fftw foomaticdb gd gdbm gif gmp gnome gpm gtk gtk2 icq imagemagick imap imlib ipv6 jabber java jpeg kde ldap libg++ libwww linguas_en linguas_it mad maildir mikmod mmx motif mozilla mpeg mysql ncurses nls offensive oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sasl sdl slang snmp spell ssl svg tcpd tetex tiff truetype unicode usb x86 xml xml2 xmms xvid zlib"

Comment 8 foser (RETIRED) gentoo-dev 2004-06-17 14:10:11 UTC
and gnumeric-1.2.12 shows the same problem ?
Comment 9 Gustavo Zacarias (RETIRED) gentoo-dev 2004-06-19 19:48:48 UTC
foser: it's a gcc problem, gnumeric 1.2.12 fixes it, i've seen it on sparc also (the last problem, the cols/rows/expr read-only error).
Basically introduced when gcc was bumped for x86 about 1-2 weeks ago.
Comment 10 Rick Jenkins 2004-07-03 09:06:35 UTC
I have the cols/rows/expr bug on a brand-new stage 1 2004-1 install, using only:

CFLAGS="-mcpu=k6-2 -O3 -pipe"

and a vanilla-sources kernel. Admittedly its on a laptop, but everything else including Xfree, KDE and Mozilla compiled just fine.
Comment 11 foser (RETIRED) gentoo-dev 2004-07-05 16:27:41 UTC
@rick : what architecture ?

i guess we should just move .12 to stable
Comment 12 Wallex 2004-07-06 16:58:04 UTC
When the combination of "stable" packages is certain to not build (current stable gcc + current stable gnumeric), then SOMETHING has to be done to avoid tons of people bumping into the same problem. I mean... it's just 'logical' that packages marked as "stable" be expected to build cleanly (while in this case the stable combination of packages is expected to NOT build -at least on x86's-)

Most definitely something should be done about this... wouldn't bumping Gnumeric 1.2.12 as the stable version cause much less headaches than keeping it the way it is? The only other alternative would be to decrease the stable Gcc version... (when stable packages are known to conflict something really should be done about it...)
Comment 13 Robert Moss (RETIRED) gentoo-dev 2004-07-07 18:23:40 UTC
Apologies for the cross-post - this is regarding the USE="gnome" thing for gnumeric-1.2.12...

foser, it's ugly, but it works. As gnumeric-1.2.6 (current x86 stable gnumeric) doesn't compile with current stable gcc, it would be nice if this ugly hack was added - check out, for example, the audacity ebuild for a similar ugly hack with regards unicode support for wxGTK - and then 1.2.12 marked stable. As it is, we've not got a working stable gnumeric on x86 at the moment. This is, for the most part, unacceptable to most. I've seen *so* many posts on the forums about this, and it's really starting to do my head in.

Please? *bats eyelids in an endearing fashion*
Comment 14 Marc-Andre Houle 2004-07-08 11:59:27 UTC
I got the exact same error on my Atlon-XP using the 1.2.6 gnumeric.
Nothing special here, just not compiling. with this error : 
sheet-autofill.c: In function `autofill_cell':
sheet-autofill.c:704: error: assignment of read-only member `cols'
sheet-autofill.c:712: error: assignment of read-only member `rows'
sheet-autofill.c:722: error: assignment of read-only member `expr'

Gnumeric 1.2.12 work fine. Maybe the update of libgsf ????
Comment 15 Ken Stailey 2004-07-28 05:03:41 UTC
I'm now stuck since (1) I can't have gnumeric without using ``ACCEPT_FLAGS="~x86"'' plus (2) now "emerge -Du world" fails since it tries to back out to the broken gnumeric and even (3) "emerge -DuU world" fails.  This problem with gnumeric has been known in the gentoo formum for months and months.

This is getting real old and tired.
Comment 16 Jeremy Huddleston (RETIRED) gentoo-dev 2004-07-28 09:40:04 UTC
foser: what is holding this up?
Comment 17 Ooblick 2004-08-07 00:53:38 UTC
Anyone? Any news on getting this fixed?
Comment 18 foser (RETIRED) gentoo-dev 2004-08-09 10:26:30 UTC
*** Bug 59791 has been marked as a duplicate of this bug. ***
Comment 19 foser (RETIRED) gentoo-dev 2004-08-09 10:56:53 UTC
ok contrary to my honest believes in non-breaking ebuilds i do not want to face hordes of kde users who get forced to install 1 or 2 gnome packs atm (maybe in the future). So i hacked a check into .12 & .13 to check for libgsf with gnome support. That should fix this.

Amd64 should also mark .12 stable because of the dupe bug.

*** This bug has been marked as a duplicate of 2272 ***
Comment 20 foser (RETIRED) gentoo-dev 2004-08-22 03:22:46 UTC
*** Bug 61208 has been marked as a duplicate of this bug. ***