<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>186905</bug_id>
          
          <creation_ts>2007-07-28 14:50 0000</creation_ts>
          <short_desc>sci-electronics/ktechlab fails with syntax error in gcc4.2.0</short_desc>
          <delta_ts>2007-10-17 00:31:17 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>GCC Porting</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>162167</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>kentfredric@gmail.com</reporter>
          <assigned_to>sci-electronics@gentoo.org</assigned_to>
          <cc>esigra@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>kentfredric@gmail.com</who>
            <bug_when>2007-07-28 14:50:17 0000</bug_when>
            <thetext>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 &amp;id, const QPoint &amp;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&apos;
/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 &apos;itemselector.cpp&apos; || echo &apos;./&apos;`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&apos; is allowed) before &apos;;&apos; token
../../src/itemdocument.h:218: error: invalid pure specifier (only `= 0&apos; is allowed) before &apos;;&apos; 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&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/..var/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3/src&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/..var/portage/sci-electronics/ktechlab-0.3.6/work/ktechlab-0.3&apos;
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=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/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&quot;
CONFIG_PROTECT_MASK=&quot;/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&quot;
CXXFLAGS=&quot;-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3&quot;
DISTDIR=&quot;/mnt/fission/distfiles/distfiles&quot;
FEATURES=&quot;autoaddcvs collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org&quot;
LANG=&quot;en_AU.UTF-8&quot;
LC_ALL=&quot;C&quot;
LDFLAGS=&quot;-Wl,-O1,-z,combreloc,--sort-common,--enable-new-dtags&quot;
LINGUAS=&quot;en_NZ en_GB en en_US&quot;
MAKEOPTS=&quot;-j1&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--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-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/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&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot; ALSA_CARDS=&quot;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&quot; ALSA_PCM_PLUGINS=&quot;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&quot; CAMERAS=&quot;directory ptp2 template&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev keyboard mouse wacom&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en_NZ en_GB en en_US&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;fbdev nv nvidia vesa vga&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kentfredric@gmail.com</who>
            <bug_when>2007-07-28 14:51:48 0000</bug_when>
            <thetext>only a minor bug, but blocking on gcc-4.2 anyway.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>kentfredric@gmail.com</who>
            <bug_when>2007-07-28 15:29:27 0000</bug_when>
            <thetext>Reported to upstream.

http://sourceforge.net/tracker/index.php?func=detail&amp;atid=755588&amp;aid=1762774&amp;group_id=143459</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-08-06 18:57:47 0000</bug_when>
            <thetext>yep, that&apos;s the correct fix, half of which is already fixed in upstream svn

.http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23333</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-08-06 18:58:20 0000</bug_when>
            <thetext>Created an attachment (id=127093)
ktechlab-0.3.6-gcc42.patch

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>dirtyepic@gentoo.org</who>
            <bug_when>2007-10-17 00:31:17 0000</bug_when>
            <thetext>fixed.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>127093</attachid>
            <date>2007-08-06 18:58 0000</date>
            <desc>ktechlab-0.3.6-gcc42.patch</desc>
            <filename>ktechlab-0.3.6-gcc42.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTmF1ciBrdGVjaGxhYi0wLjMtb3JpZy9zcmMvaXRlbWRvY3VtZW50Lmgga3RlY2hsYWIt
MC4zL3NyYy9pdGVtZG9jdW1lbnQuaAotLS0ga3RlY2hsYWItMC4zLW9yaWcvc3JjL2l0ZW1kb2N1
bWVudC5oCTIwMDctMDgtMDYgMTI6NTI6NTUuMDAwMDAwMDAwIC0wNjAwCisrKyBrdGVjaGxhYi0w
LjMvc3JjL2l0ZW1kb2N1bWVudC5oCTIwMDctMDgtMDYgMTI6NTU6MjQuMDAwMDAwMDAwIC0wNjAw
CkBAIC0xMTIsNyArMTEyLDcgQEAKIAkJICogKHN1Y2ggYXMgUElDL1NUQVJUKSBoYXZlIHJlc3Ry
aWN0aW9ucywgYW5kIGNhbiBvbmx5IGhhdmUgb25lIGluc3RhbmNlIG9mCiAJCSAqIHRoZW1zZWx2
ZXMgb24gdGhlIGNhbnZhcywgYW5kIGFkZHMgdGhlIG9wZXJhdGlvbiB0byB0aGUgdW5kbyBsaXN0
CiAJCSAqLwotCQl2aXJ0dWFsIEl0ZW0qIGFkZEl0ZW0oIGNvbnN0IFFTdHJpbmcgJmlkLCBjb25z
dCBRUG9pbnQgJnAsIGJvb2wgbmV3SXRlbSApID0gMGw7CisJCXZpcnR1YWwgSXRlbSogYWRkSXRl
bSggY29uc3QgUVN0cmluZyAmaWQsIGNvbnN0IFFQb2ludCAmcCwgYm9vbCBuZXdJdGVtICkgPSAw
OwogCQkvKioKIAkJICogQHJldHVybnMgQSBwb2ludGVyIHRvIHRoZSBjYW52YXMKIAkJICovCkBA
IC0yMTUsNyArMjE1LDcgQEAKIAkJICogU2V0IHRoZSBnaXZlbiBRQ2FudmFzSXRlbSAod2hpY2gg
d2lsbCBhdHRlbXB0IHRvIGJlIGNhc3RlZCB0byBrbm93bgogCQkgKiBpdGVtcyB0byBiZSBkZWxl
dGVkLgogCQkgKi8KLQkJdmlydHVhbCB2b2lkIGFwcGVuZERlbGV0ZUxpc3QoIFFDYW52YXNJdGVt
ICogKSA9IDBsOworCQl2aXJ0dWFsIHZvaWQgYXBwZW5kRGVsZXRlTGlzdCggUUNhbnZhc0l0ZW0g
KiApID0gMDsKIAkJLyoqCiAJCSAqIFNhdmUgdGhlIGN1cnJlbnQgc3RhdGUgb2YgdGhlIGRvY3Vt
ZW50IHRvIHRoZSB1bmRvL3JlZG8gaGlzdG9yeS4KIAkJICogQHBhcmFtIGFjdGlvblRpY2tldCBp
ZiB0aGlzIGlzIG5vbi1uZWdhdGl2ZSwgYW5kIHRoZSBsYXN0IHN0YXRlIHNhdmUK
</data>        

          </attachment>
    </bug>

</bugzilla>