Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78828 - gnumeric-1.4.1 does not compile with corba_workbook.c error
Summary: gnumeric-1.4.1 does not compile with corba_workbook.c error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Low minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-20 09:14 UTC by Seth Robertson
Modified: 2005-06-03 05:24 UTC (History)
1 user (show)

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


Attachments
a tentative patch (78828.patch,1.55 KB, patch)
2005-03-30 11:17 UTC, Jean Bréfort
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Seth Robertson 2005-01-20 09:14:30 UTC
A new system attempting to emerge gnumeric 1.4.1 cannot compile it.  This problem closely resembles bug 53467 and the solution from that bug (use an older gnumeric) also works--the system's previous gnumeric 1.2.13 obviously compiled successfully.

So the bug is that 1.4.1 has not fixed whatever problem bug 53467 was talking about.  If people complain about my CFLAGS, please note that in bug 53467 people had this problem with other CFLAGS.  Also note that there is no recommended CFLAGS combination for the Pentium M (at least as of two weeks ago).

Making all in corba
make[3]: Entering directory `/var/tmp/portage/gnumeric-1.4.1/work/gnumeric-1.4.1/plugins/corba'
/usr/bin/orbit-idl-2 -I/usr/share/idl/bonobo-2.0 -I/usr/share/idl/bonobo-activation-2.0 -I. GNOME_Gnumeric.idl && touch stamp_Gnumeric_idl
if /bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\""/usr/share/locale"\" -I../../src      -I../../src -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -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/pango-1.0 -I/usr/include/freetype2 -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/freetype2/config -I/usr/include/libglade-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgnomeui-2.0   -I../../src/cut-n-paste-code    -O2 -mcpu=pentium3 -mmmx -msse -msse2 -funroll-loops -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -pipe -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -Wall -Wmissing-prototypes  -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -MT corba-application.lo -MD -MP -MF ".deps/corba-application.Tpo" \
  -c -o corba-application.lo `test -f 'corba-application.c' || echo './'`corba-application.c; \
then mv -f ".deps/corba-application.Tpo" ".deps/corba-application.Plo"; \
else rm -f ".deps/corba-application.Tpo"; exit 1; \
fi
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\"/usr/share/locale\" -I../../src -I../../src -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -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/pango-1.0 -I/usr/include/freetype2 -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/freetype2/config -I/usr/include/libglade-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgnomeui-2.0 -I../../src/cut-n-paste-code -O2 -mcpu=pentium3 -mmmx -msse -msse2 -funroll-loops -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -pipe -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -Wall -Wmissing-prototypes -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -MT corba-application.lo -MD -MP -MF .deps/corba-application.Tpo -c corba-application.c  -fPIC -DPIC -o .libs/corba-application.o
orbit-idl-2 2.12.0 compiling
  mode, show preprocessor errors, passes: stubs skels common headers skel_impl imodule

In file included from corba-application.c:26:
corba-workbook.h:5:28: GNOME_Gnumeric.h: No such file or directory
In file included from corba-application.c:26:
corba-workbook.h:11: error: parse error before "workbook_control_corba_get_type"
corba-workbook.h:11: warning: type defaults to `int' in declaration of `workbook_control_corba_get_type'
corba-workbook.h:11: warning: data definition has no type or storage class
corba-workbook.h:14: error: parse error before "workbook_control_corba_obj"
corba-workbook.h:14: warning: type defaults to `int' in declaration of `workbook_control_corba_obj'
corba-workbook.h:14: warning: data definition has no type or storage class
corba-application.c:27:28: GNOME_Gnumeric.h: No such file or directory
if /bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\""/usr/share/locale"\" -I../../src      -I../../src -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -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/pango-1.0 -I/usr/include/freetype2 -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/freetype2/config -I/usr/include/libglade-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgnomeui-2.0   -I../../src/cut-n-paste-code    -O2 -mcpu=pentium3 -mmmx -msse -msse2 -funroll-loops -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -pipe -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -Wall -Wmissing-prototypes  -Wsign-compare -Wpointer-arith -Wnested-externs -Wchar-subscripts -Wwrite-strings -MT corba-workbook.lo -MD -MP -MF ".deps/corba-workbook.Tpo" \
  -c -o corba-workbook.lo `test -f 'corba-workbook.c' || echo './'`corba-workbook.c; \
then mv -f ".deps/corba-workbook.Tpo" ".deps/corba-workbook.Plo"; \
else rm -f ".deps/corba-workbook.Tpo"; exit 1; \
fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DGNOMELOCALEDIR=\"/usr/share/locale\" -I../../src -I../../src -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API -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/pango-1.0 -I/usr/include/freetype2 -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/freetype2/config -I/usr/include/libglade-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0 -I/usr/include/libgnomeprint-2.2 -I/usr/include/libgnomeprintui-2.2 -I/usr/include/gconf/2 -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/libgnomeui-2.0 -I../../src/cut-n-paste-code -O2 -mcpu=pentium3 -mmmx -msse -msse2 -funroll-loops -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -pipe -DG_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -Wall -Wmissing-prototypes -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 -DPIC -o .libs/corba-workbook.o
corba-application.c:51: error: parse error before "POA_GNOME_Gnumeric_Application__epv"
corba-application.c:51: warning: no semicolon at end of struct or union
corba-application.c:52: warning: type defaults to `int' in declaration of `CorbaApplicationClass'
corba-application.c:52: warning: data definition has no type or storage class
corba-application.c:55: error: parse error before "capp_workbook_open"
corba-application.c:59: warning: return type defaults to `int'
corba-application.c:59: warning: no previous prototype for `capp_workbook_open'
corba-application.c:79: error: parse error before '*' token
corba-application.c:82: warning: return type defaults to `int'
corba-application.c:82: warning: no previous prototype for `capp_workbooks'
corba-application.c: In function `capp_workbooks':
corba-application.c:85: error: `GNOME_Gnumeric_Workbooks' undeclared (first use in this function)
corba-application.c:85: error: (Each undeclared identifier is reported only once
corba-application.c:85: error: for each function it appears in.)
corba-application.c:85: error: `res' undeclared (first use in this function)
corba-application.c:85: warning: implicit declaration of function `GNOME_Gnumeric_Workbooks__alloc'
corba-application.c:87: warning: implicit declaration of function `GNOME_Gnumeric_Workbooks_allocbuf'
corba-application.c: At top level:
corba-application.c:102: error: parse error before '*' token
corba-application.c: In function `capp_class_init':
corba-application.c:104: error: `capp' undeclared (first use in this function)
corba-application.c: In function `capp_get_type':
corba-application.c:108: error: `POA_GNOME_Gnumeric_Application__init' undeclared (first use in this function)
corba-application.c:108: error: `POA_GNOME_Gnumeric_Application__fini' undeclared (first use in this function)
corba-application.c:108: error: parse error before ')' token
corba-application.c: At top level:
corba-application.c:114: 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.4.1/work/gnumeric-1.4.1/plugins/corba'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnumeric-1.4.1/work/gnumeric-1.4.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnumeric-1.4.1/work/gnumeric-1.4.1'
make: *** [all] Error 2

!!! ERROR: app-office/gnumeric-1.4.1 failed.
!!! Function src_compile, Line 91, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.





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




Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r4 i686)
=================================================================
System uname: 2.6.10-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.80GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1-r2
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=pentium3 -mmmx -msse -msse2 -funroll-loops
-fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays
-falign-functions=64 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=pentium3 -mmmx -msse -msse2 -funroll-loops
-fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays
-falign-functions=64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 X aac acl acpi anthy apm avi bash-completion bdf bluetooth bmp bzip2
bzlib caps cdparanoia cdrom chroot codecs cpdflib crypt css curl curlwrappers
dbm dio directfb divx4linux droproot dts dvd dvdr dvdread emacs encode ethereal
fax faxonly fb fbcon ffmpeg flac flatfile font-server fpx freetype ftp ftruncate
gimp gnome gphoto2 gps graphviz gs gstreamer gtk2 i8x0 idea imap imlib2 java jp2
jpeg jpeg2k kde lcms libwww live lzo lzw lzw-tiff matroska mbox md5sum mhash
mime mimencode mjpeg mmap mmx mng mozsvg mp3 mpeg mpeg4 mplayer net network nptl
nptlonly ntlm offensive opengl pcmcia pcre pda pdf pdfkit pdflib pnp posix
quicktime real rtc scanner sdl skey sockets socks5 sox speex spell sse sse2 szip
theora timidity truetype truetype-fonts type1 type1-fonts unicode usb v4l v4l2
vhosts vnc wmf xanim xforms xinetd xmlrpc xmms xscreensaver xslt xv xvid xvmc"
Comment 1 ~ba 2005-01-20 10:04:22 UTC
I had exactly the same error, but I could fix it.
I read something about scrollkeeper and the doc USEFLAG as requirement, so I re-emerged scrollkeeper with this flag.

# USE="doc" emerge scrollkeeper

After this I could update Gnumeric without any problem.

# emerge -u gnumeric
Comment 2 Seth Robertson 2005-01-20 10:28:33 UTC
Wow.  That fixed it.  Thanks.

I guess another dependency needs to be added to gnumeric
Comment 3 foser (RETIRED) gentoo-dev 2005-01-20 15:15:34 UTC
scrollkeeper is already a dep & the error has absolutely nothing todo with it.
Comment 4 Jean Bréfort 2005-02-01 10:31:27 UTC
Most probably a make -j2 problem.
In the trace we clearly see that the operation do not occur in the right order.
We have first:
i686-pc-linux-gnu-gcc ... corba-application.c
and on the next line:
orbit-idl-2 2.12.0 compiling
orbit-idl starts generating GNOME_Gnumeric.h and some other files but gcc already needs it. Remove the -j2 option from MAKEOPTS, and the problrm will disappear.
Comment 5 foser (RETIRED) gentoo-dev 2005-02-14 15:24:36 UTC
set max jobs to 1 for gnumeric-1.4.2, still this is a workaround & should really be fixed in the makefiles.
Comment 6 Jean Bréfort 2005-03-30 11:17:20 UTC
Created attachment 54865 [details, diff]
a tentative patch

The patch is for plugins/corba/Makefile.am. It is a backport of the work
currently done in the HEAD branch by Stepan Kasal. We would like to know it it
does fix this bug.
Comment 7 foser (RETIRED) gentoo-dev 2005-04-17 09:39:36 UTC
no response so far, so I added the patch to 1.4.3. We'll go from there.
Comment 8 foser (RETIRED) gentoo-dev 2005-06-03 05:24:15 UTC
reopen if it breaks again.