its a minor syntax error where 2 lines end with =0l; instead of just =0; which for some reason gcc-4.1 is insensitive to. Its possibly a config error, but looks like the problems in the original source. ( directly from upstreams source ) 115: virtual Item* addItem( const QString &id, const QPoint &p, bool newItem ) = 0l; 218: virtual void appendDeleteList( QCanvasItem * ) = 0l; Tested this by changing PATH to point to gcc-4.1 and manually hitting make, see it work, ctrl-c, revert path, make , it works untill something else uses that file. Simply tweaking the =0l; to =0; works for me perfectly. make[3]: Entering directory `/tmp/..var/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src/gui' /bin/sh ../../libtool --silent --mode=compile --tag=CXX i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I../../src/electronics -I../../src/electronics/components -I../../src/electronics/simulation -I../../src/flowparts -I../../src/gui -I../../src/languages -I../../src/mechanics -I../../src/micro -I../../gpsim-interface -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fexceptions -c -o itemselector.lo `test -f 'itemselector.cpp' || echo './'`itemselector.cpp In file included from ../../src/icndocument.h:14, from ../../src/circuitdocument.h:14, from itemselector.cpp:12: ../../src/itemdocument.h:115: error: invalid pure specifier (only `= 0' is allowed) before ';' token ../../src/itemdocument.h:218: error: invalid pure specifier (only `= 0' is allowed) before ';' token make[3]: *** [itemselector.lo] Error 1 make[3]: Leaving directory `/tmp/..var/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src/gui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/..var/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/..var/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3' make: *** [all] Error 2 Reproducible: Always Portage 2.1.3_rc9 (default-linux/x86/2007.0, gcc-4.2.0/vanilla, glibc-2.6-r0, 2.6.22-gentoo-r1kz i686) ================================================================= System uname: 2.6.22-gentoo-r1kz i686 AMD Athlon(TM) XP 2000+ Gentoo Base System release 1.12.10 Timestamp of tree: Sat, 28 Jul 2007 01:30:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.6-r2, 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/kdeextra/share/config /usr/local/kdeextra/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3" DISTDIR="/mnt/fission/distfiles/distfiles" FEATURES="autoaddcvs collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_AU.UTF-8" LC_ALL="C" LDFLAGS="-Wl,-O1,-z,combreloc,--sort-common,--enable-new-dtags" LINGUAS="en_NZ en_GB en en_US" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/mysql-testing /usr/portage/local/layman/mysql-experimental /usr/portage/local/layman/enlightenment /usr/portage/local/layman/armagetron /usr/portage/local/layman/sunrise /usr/portage/local/layman/kde /usr/portage/local/layman/toolchain /usr/portage/local/layman/php-experimental /usr/portage/local/layman/php-testing /usr/local/portage /usr/src/musicbrainz-overlay_svn /usr/src/xgl/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X acl bash-completion berkdb bitmap-fonts cli cracklib crypt cups dbus doc dri examples fortran gdbm gpm gtk iconv ipv6 isdnlog kdeenablefinal kdehiddenvisibility ldap libg++ midi mmx mudflap multislot nas ncurses nfs nptl nptlonly opengl openmp pam pcre perl php pppd python readline reflection session socks5 source spl ssl syslog tcpd test threads tiff truetype-fonts type1-fonts unicode x86 xinerama xorg xprint zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="directory ptp2 template" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_NZ en_GB en en_US" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa vga" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
only a minor bug, but blocking on gcc-4.2 anyway.
Reported to upstream. http://sourceforge.net/tracker/index.php?func=detail&atid=755588&aid=1762774&group_id=143459
yep, that's the correct fix, half of which is already fixed in upstream svn .http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333
Created attachment 127093 [details, diff] ktechlab-0.3.6-gcc42.patch
fixed.