Tried to emerge this ebuild, build failed with this error message: Making all in . make[2]: Entering directory `/var/tmp/portage/libofx-0.6.6/work/libofx-0.6.6' make[2]: Leaving directory `/var/tmp/portage/libofx-0.6.6/work/libofx-0.6.6' Making all in ofx2qif make[2]: Entering directory `/var/tmp/portage/libofx-0.6.6/work/libofx-0.6.6/ofx2qif' if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -MT ofx2qif.o -MD -MP -MF ".deps/ofx2qif.Tpo" \ -c -o ofx2qif.o `test -f 'ofx2qif.c' || echo './'`ofx2qif.c; \ then mv ".deps/ofx2qif.Tpo" ".deps/ofx2qif.Po"; \ else rm -f ".deps/ofx2qif.Tpo"; exit 1; \ fi /bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -o ofx2qif ofx2qif.o ../lib/libofx.la mkdir .libs i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -o .libs/ofx2qif ofx2qif.o ../lib/.libs/libofx.so -L/usr/lib /usr/lib/libosp.so -lpthread -lnsl -lstdc++ creating ofx2qif make[2]: Leaving directory `/var/tmp/portage/libofx-0.6.6/work/libofx-0.6.6/ofx2qif' Making all in ofxdump make[2]: Entering directory `/var/tmp/portage/libofx-0.6.6/work/libofx-0.6.6/ofxdump' if i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../inc -O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -MT ofxdump.o -MD -MP -MF ".deps/ofxdump.Tpo" \ -c -o ofxdump.o `test -f 'ofxdump.cpp' || echo './'`ofxdump.cpp; \ then mv ".deps/ofxdump.Tpo" ".deps/ofxdump.Po"; \ else rm -f ".deps/ofxdump.Tpo"; exit 1; \ fi ofxdump.cpp: In function `int ofx_proc_transaction_cb(OfxTransactionData)': ofxdump.cpp:207: error: `data' cannot appear in a constant-expression ofxdump.cpp:207: error: `.' cannot appear in a constant-expression ofxdump.cpp:209: error: `data' cannot appear in a constant-expression ofxdump.cpp:209: error: `.' cannot appear in a constant-expression ofxdump.cpp:211: error: `data' cannot appear in a constant-expression ofxdump.cpp:211: error: `.' cannot appear in a constant-expression ofxdump.cpp:213: error: `data' cannot appear in a constant-expression ofxdump.cpp:213: error: `.' cannot appear in a constant-expression ofxdump.cpp:215: error: `data' cannot appear in a constant-expression ofxdump.cpp:215: error: `.' cannot appear in a constant-expression ofxdump.cpp:217: error: `data' cannot appear in a constant-expression ofxdump.cpp:217: error: `.' cannot appear in a constant-expression ofxdump.cpp:219: error: `data' cannot appear in a constant-expression ofxdump.cpp:219: error: `.' cannot appear in a constant-expression ofxdump.cpp:221: error: `data' cannot appear in a constant-expression ofxdump.cpp:221: error: `.' cannot appear in a constant-expression ofxdump.cpp:223: error: `data' cannot appear in a constant-expression ofxdump.cpp:223: error: `.' cannot appear in a constant-expression ofxdump.cpp:225: error: `data' cannot appear in a constant-expression ofxdump.cpp:225: error: `.' cannot appear in a constant-expression ofxdump.cpp:227: error: `data' cannot appear in a constant-expression ofxdump.cpp:227: error: `.' cannot appear in a constant-expression ofxdump.cpp:229: error: `data' cannot appear in a constant-expression ofxdump.cpp:229: error: `.' cannot appear in a constant-expression ofxdump.cpp:231: error: `data' cannot appear in a constant-expression ofxdump.cpp:231: error: `.' cannot appear in a constant-expression ofxdump.cpp:233: error: `data' cannot appear in a constant-expression ofxdump.cpp:233: error: `.' cannot appear in a constant-expression Reproducible: Always Steps to Reproduce: 1. emerge =dev-libs/libofx-0.6.6 2. 3. Actual Results: Build failed Expected Results: Successful emerge of ebuild I tried using this package to satisfy the dependency for gnucash-1.8.9, since libofx-0.6.4 also failes to build per bug 114099 that I reported. Here is my emerge --info: Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r3, 2.6.14-gentoo-r2 i686) ================================================================= System uname: 2.6.14-gentoo-r2 i686 AMD Athlon(tm) Gentoo Base System version 1.6.13 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 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.15.92.0.2-r10 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /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/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks prelink sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.mirrored.ca/" MAKEOPTS="-j2" PKGDIR="/usr/local/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X aac acpi alsa apache2 apm audiofile avi bash-completion bitmap-fonts bzip2 bzlib ccache cdb cddb cdr crypt cups curl doc dts eds emboss encode esd ethereal exif expat fam ffmpeg firefox flac foomaticdb fortran gd gif glut gnome gpm gstreamer gtk gtk2 guile idn imlib innodb ithreads java jpeg jpeg2k junit lcms libg++ libwww mad mikmod mmx mmxext mng motif mp3 mpeg ncurses nls nptl nvidia offensive ogg oggvorbis opengl oss pam pcre pdflib perl pic png pthreads python quicktime readline real ruby sdl snmp speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev vim-with-x vorbis win32codecs x86 xine xml2 xmms xprint xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUA
+metadata.xml missing...
I can confirm the issue with gcc-3.4, but not with gcc-3.3.
Created attachment 74412 [details, diff] libofx-0.6.6-gcc34-broken.diff I took a closer look at the problem, and it is solved in 0.7.0. Basically, you can replace switch() with a sequence of if's and else if's. However, since 0.7.0-r1 is x86 stable and so is gnucash-1.8.11, is there a reason you really need to use libofx-0.6.4 and gnucash-1.8.9? I ask it because it will take some more work to backport the fixes and it seems unnecessary. Thanks, Marcelo
I don't really have a reason to use the older version of libofx and gnucash. I think that when I initially tried to install gnucash, 1.8.9 was the latest stable ebuild, which required libofx-0.6.6 Now that 1.8.11 is stable, I will use that instead. Thank you for your efforts in addressing this problem.
Okies, thanks for your report :-).