I am trying to build qcad on the most recent emergable GCC - 3.4.1-r2. The build fails with the attached dump. If you are haing trouble recreating the error - make sure your GCC is up to date (although I assume you enthusiastically rush head-long into compiler upgrades, like I do). This may be caused by the same "improvement" that causes kernels =<2.4.27 to fail too - not sure. Here is the highlight of the dump: In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/sstream:642, from ../../dxflib/include/dl_dxf.h:34, from ../include/rs_filterdxf.h:47, from engine/rs_dimangular.cpp:31: /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/sstream.tcc: In member function `virtual typename std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow(typename _Traits::int_type)': /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/sstream.tcc:102: error: expected unqualified-id before '(' token /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/sstream.tcc:104: error: expected unqualified-id before '(' token In file included from /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/fstream:857, from ../../dxflib/include/dl_writer_ascii.h:36, from ../../dxflib/include/dl_dxf.h:40, from ../include/rs_filterdxf.h:47, from engine/rs_dimangular.cpp:31: /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/fstream.tcc: In member function `virtual typename std::basic_filebuf<_CharT, _Traits>::int_type std::basic_filebuf<_CharT, _Traits>::underflow()': /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/fstream.tcc:277: error: expected unqualified-id before '(' token /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/fstream.tcc: In member function `virtual std::streamsize std::basic_filebuf<_CharT, _Traits>::xsputn(const _CharT*, std::streamsize)': /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/include/g++-v3/bits/fstream.tcc:518: error: expected unqualified-id before '(' token g++ -c -pipe -Wall -W -O2 -O3 -march=pentium2 -funroll-loops -pipe -D_REENTRANT -DRS_NO_COMPLEX_ENTITIES -D_REENTRANT -DQT_THREAD_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/qt/3/mkspecs/linux-g++ -I. -I../include -I../../dxflib/include -I../../fparser/include -I../../qcadcmd/include -I/usr/qt/3/include -Imoc/ -o obj/rs_dimdiametric.o engine/rs_dimdiametric.cpp engine/rs_dimangular.cpp: At global scope: engine/rs_dimangular.cpp:194: warning: unused parameter 'autoText' make[2]: *** [obj/rs_dimangular.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/qcad-2.0.3.1-r1/work/qcad-2.0.3.1-1.src/qcadlib/src' make[1]: *** [lib/libqcad.a] Error 2 make[1]: Leaving directory `/var/tmp/portage/qcad-2.0.3.1-r1/work/qcad-2.0.3.1-1.src/qcadlib' make: *** [all] Error 2 Building qcadlib failed Thanks for your help - I am always impressed with the speed at which guys fix things. Keep up the good work. -Sean Reproducible: Always Steps to Reproduce: 1.emerge qcad 2. 3. Actual Results: Build fails. (see "Details") Expected Results: Build correctly. I am running KDE, but I DO have qt installed.... emerge info: Portage 2.0.51_rc1 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.4.26 i686) =============================================================== == System uname: 2.4.26 i686 Pentium II (Deschutes) Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.19,sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium2 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config / usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium2 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://mirrors.tds.net/gentoo rsync://mirrors.tds.net/gentoo http:// mirror.datapipe.net/gentoo http://mirror.datapipe.net/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 apm arts avi berkdb bitmap-fonts crypt cups dba encode foomaticdb gd gdbm gif gpm gtk2 imap imlib jpeg kde ldap libg++ libwww mad maildir mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xprint xv zlib"
On the day you reported this bug kugelfang added a patch which should allow compiling with gcc 3.4 - please try it and re-open if it still fails.