<?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>228891</bug_id>
          
          <creation_ts>2008-06-22 12:52 0000</creation_ts>
          <short_desc>net-p2p/linuxdcpp-1.0.1 fails to build w/ gcc-4.3</short_desc>
          <delta_ts>2008-06-30 10:06:34 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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>198121</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>zimous@matfyz.cz</reporter>
          <assigned_to>net-p2p@gentoo.org</assigned_to>
          <cc>prince.of.bb+gentoobugzilla@gmail.com</cc>
    
    <cc>tetromino@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>zimous@matfyz.cz</who>
            <bug_when>2008-06-22 12:52:54 0000</bug_when>
            <thetext>Emerge of net-p2p/linuxdcpp-1.0.1 with gcc-4.3.1 crashes during compile with:

client/ShareManager.h:246: error: ISO C++ forbids declaration of &apos;auto_ptr&apos; with no type
client/ShareManager.h:246: error: expected &apos;;&apos; before &apos;&lt;&apos; token

Reproducible: Always</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zimous@matfyz.cz</who>
            <bug_when>2008-06-22 12:54:21 0000</bug_when>
            <thetext>Created an attachment (id=158003)
Fixed ebuild

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zimous@matfyz.cz</who>
            <bug_when>2008-06-22 12:58:12 0000</bug_when>
            <thetext>Created an attachment (id=158005)
Patch adding &apos;#include &lt;memory&gt;&apos;

There is a polish forum discussing this problem on http://forums.gentoo.org/viewtopic-p-5111127.html. They recommend unmasking -9999 version which builds fine. It really builds on my system, however it crashes right upon start, so here is my quick fix according gcc 4.3 porting guide.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tetromino@gmail.com</who>
            <bug_when>2008-06-29 23:16:45 0000</bug_when>
            <thetext>Zimous and/or gentoo devs: please reopen this bug, bugzilla does not let me.

Zimous: please do not close bugs until they are actually fixed (i.e. until the non-masked linuxdcpp ebuilds in portage actually compile with gcc-4.3).

This bug is still present in net-p2p/linuxdcpp-1.0.1-r1 :

In file included from client/AdcHub.cpp:25:
client/ShareManager.h:246: error: ISO C++ forbids declaration of ‘auto_ptr’ with no type
client/ShareManager.h:246: error: expected ‘;’ before ‘&lt;’ token
scons: *** [build/client/AdcHub.o] Error 1
scons: building terminated because of errors.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>coldwind@gentoo.org</who>
            <bug_when>2008-06-29 23:20:21 0000</bug_when>
            <thetext>Reopening.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zimous@matfyz.cz</who>
            <bug_when>2008-06-30 08:32:12 0000</bug_when>
            <thetext>Sorry, my fault, my first on bugs.gentoo.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>prince.of.bb+gentoobugzilla@gmail.com</who>
            <bug_when>2008-06-30 09:06:17 0000</bug_when>
            <thetext>yeah would like to see patch/ebuild for linuxdcpp-1.0.1-r1
fails as reported by Alex
[snip]
Checking for iconv(0, (const char **)0, 0, (char**)0, 0) in C library iconv... no

scons: warning: The env.Copy() method is deprecated; use the env.Clone() method instead.
File &quot;/var/tmp/portage/net-p2p/linuxdcpp-1.0.1-r1/work/linuxdcpp-1.0.1/linux/SConstruct&quot;, line 26, in &lt;module&gt;
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/client/AdcCommand.o -c -march=nocona -O2 -pipe -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_DATADIR=&apos;&quot;/usr/share&quot;&apos; -pthread -march=nocona -O2 -pipe client/AdcCommand.cpp
g++ -o build/client/AdcHub.o -c -march=nocona -O2 -pipe -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_DATADIR=&apos;&quot;/usr/share&quot;&apos; -pthread -march=nocona -O2 -pipe client/AdcHub.cpp
g++ -o build/client/ADLSearch.o -c -march=nocona -O2 -pipe -I. -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_DATADIR=&apos;&quot;/usr/share&quot;&apos; -pthread -march=nocona -O2 -pipe client/ADLSearch.cpp
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/ext/hash_map:64In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/ext/hash_map:64,
                 from client/stdinc.h:110,
                 from client/AdcCommand.cpp:19:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/ext/hash_map:64,
                 from client/stdinc.h:110,
                 from client/AdcHub.cpp:19:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
,
                 from client/stdinc.h:110,
                 from client/ADLSearch.cpp:24:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.1/include/g++-v4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from client/AdcHub.cpp:24:
client/ShareManager.h:246: error: ISO C++ forbids declaration of ‘auto_ptr’ with no type
client/ShareManager.h:246: error: expected ‘;’ before ‘&lt;’ token
scons: *** [build/client/AdcHub.o] Error 1
scons: building terminated because of errors.
 * 
 * ERROR: net-p2p/linuxdcpp-1.0.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2107:  Called die
 * The specific snippet of code:
 *       scons ${myconf} ${MAKEOPTS} CXXFLAGS=&quot;${CXXFLAGS}&quot; PREFIX=/usr || die &quot;scons failed&quot;
 *  The die message:
 *   scons failed
[/snip]
and for the sake of complicity here&apos;s emerge --info
babylon ~ # emerge --info
WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc1 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-x86_64-Intel-R-_Core-TM-2_CPU_6420_@_2.13GHz-with-glibc2.2.5
Timestamp of tree: Sun, 29 Jun 2008 22:45:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS=&quot;amd64 ~amd64&quot;
CBUILD=&quot;x86_64-pc-linux-gnu&quot;
CFLAGS=&quot;-march=nocona -O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d&quot;
CXXFLAGS=&quot;-march=nocona -O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;ccachei distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch&quot;
GENTOO_MIRRORS=&quot;ftp://10.200.15.2/os/gentoo/gentoo-os http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo&quot;
LC_ALL=&quot;en_US.utf-8&quot;
LDFLAGS=&quot;&quot;
LINGUAS=&quot;en&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage/layman/verlihub /usr/local/portage&quot;
SYNC=&quot;rsync://ftp.iitb.ac.in/gentoo/portage&quot;
USE=&quot;X a52 aac aalib acl alsa amarok amd64 apache2 asf bash-completion berkdb bzip2 cairo cd cdr chroot cli cracklib crypt cups dbus dri dts dv dvd dvdr dvdread encode exif ffmpeg flac fortran ftp ggi gif glitz gphoto2 gpm gtk gtk2 hal iconv ieee1394 imagemagick imap imlib ipod isdnlog jabber java javascript jbig jpeg jpeg2k kde lm_sensors mad matroska matrox midi mime mmx mmxext mng mozilla mp2 mp3 mp4 mpeg mplayer mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl php plotutils png pppd python qt3 qt4 quicktime rar rdesktop readline reflection ruby session smp socks speex spell spl srt sse sse2 ssl svg tcpd tetex theora threads tiff truetype unicode usb utempter vcd videos vim-syntax vlm vorbis wavpack wmf wxwindows x264 xface xine xml xorg xpm xscreensaver xv xvid xvmc zlib&quot; ALSA_CARDS=&quot;hda-intel&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; APACHE2_MODULES=&quot;actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev mouse keyboard&quot; KERNEL=&quot;linux&quot; LCD_DEVICES=&quot;bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text&quot; LINGUAS=&quot;en&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;nvidia&quot;
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

~S</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>armin76@gentoo.org</who>
            <bug_when>2008-06-30 10:06:34 0000</bug_when>
            <thetext>Fixed, thanks.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>158003</attachid>
            <date>2008-06-22 12:54 0000</date>
            <desc>Fixed ebuild</desc>
            <filename>linuxdcpp-1.0.1.ebuild</filename>
            <type>text/plain</type>
            <data encoding="base64">IyBDb3B5cmlnaHQgMTk5OS0yMDA4IEdlbnRvbyBGb3VuZGF0aW9uCiMgRGlzdHJpYnV0ZWQgdW5k
ZXIgdGhlIHRlcm1zIG9mIHRoZSBHTlUgR2VuZXJhbCBQdWJsaWMgTGljZW5zZSB2MgojICRIZWFk
ZXI6IC92YXIvY3Zzcm9vdC9nZW50b28teDg2L25ldC1wMnAvbGludXhkY3BwL2xpbnV4ZGNwcC0x
LjAuMS5lYnVpbGQsdiAxLjUgMjAwOC8wNS8wMiAxNjowNzoxOSBhcm1pbjc2IEV4cCAkCgppbmhl
cml0IGV1dGlscwoKREVTQ1JJUFRJT049IkRpcmVjdCBjb25uZWN0IGNsaWVudCwgbG9va3MgYW5k
IHdvcmtzIGxpa2UgZmFtb3VzIERDKysiCkhPTUVQQUdFPSJodHRwOi8vbGludXhkY3BwLmJlcmxp
b3MuZGUiClNSQ19VUkk9Im1pcnJvcjovL2Jlcmxpb3MvJHtQTn0vJHtQfS50YXIuYnoyIgpMSUNF
TlNFPSJHUEwtMiIKU0xPVD0iMCIKS0VZV09SRFM9ImFtZDY0IHg4NiB+eDg2LWZic2QiCklVU0U9
ImRlYnVnIgoKUkRFUEVORD0iPj1nbm9tZS1iYXNlL2xpYmdsYWRlLTIuNAoJPj14MTEtbGlicy9n
dGsrLTIuNgoJYXBwLWFyY2gvYnppcDIKCWRldi1saWJzL29wZW5zc2wiCkRFUEVORD0iJHtSREVQ
RU5EfQoJbWVkaWEtbGlicy9mb250Y29uZmlnCgk+PWRldi11dGlsL3Njb25zLTAuOTYKCWRldi11
dGlsL3BrZ2NvbmZpZyIKCnNyY191bnBhY2soKSB7Cgl1bnBhY2sgJHtBfQoKCWNkICR7U30KCgll
cGF0Y2ggIiR7RklMRVNESVJ9LyR7UH0tZ2NjNDMucGF0Y2giCn0KCnNyY19jb21waWxlKCkgewoJ
bG9jYWwgbXljb25mPSIiCgl1c2UgZGVidWcgJiYgbXljb25mPSIke215Y29uZn0gZGVidWc9MSIK
CglzY29ucyAke215Y29uZn0gJHtNQUtFT1BUU30gQ1hYRkxBR1M9IiR7Q1hYRkxBR1N9IiBQUkVG
SVg9L3VzciB8fCBkaWUgInNjb25zIGZhaWxlZCIKfQoKc3JjX2luc3RhbGwoKSB7CglpbnNpbnRv
IC91c3Ivc2hhcmUvJHtQTn0KCWRvaW5zIC1yICR7UE59IHBpeG1hcHMgZ2xhZGUKCglkb2RvYyBS
ZWFkbWUudHh0IENoYW5nZWxvZy50eHQgQ3JlZGl0cy50eHQKCglkb3N5bSAvdXNyL3NoYXJlLyR7
UE59LyR7UE59IC91c3IvYmluLyR7UE59CglmcGVybXMgK3ggL3Vzci9zaGFyZS8ke1BOfS8ke1BO
fQoKCWRvaWNvbiBwaXhtYXBzLyR7UE59LnBuZwoKCW1ha2VfZGVza3RvcF9lbnRyeSAke1BOfSAi
JHtQTn0iICR7UE59Cn0KCnBrZ19wb3N0aW5zdCgpIHsKCWVsb2cKCWVsb2cgIkFmdGVyIGFkZGlu
ZyBmaXJzdCBkaXJlY3RvcnkgdG8gc2hhcmVzIHlvdSBtaWdodCBuZWVkIHRvIHJlc3RhcnQgbGlu
dXhkY3BwLiIKCWVsb2cKfQo=
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>158005</attachid>
            <date>2008-06-22 12:58 0000</date>
            <desc>Patch adding &apos;#include &lt;memory&gt;&apos;</desc>
            <filename>linuxdcpp-1.0.1-gcc43.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtTnJVNSBsaW51eGRjcHAtMS4wLjEub3JpZy9jbGllbnQvU2hhcmVNYW5hZ2VyLmggbGlu
dXhkY3BwLTEuMC4xL2NsaWVudC9TaGFyZU1hbmFnZXIuaAotLS0gbGludXhkY3BwLTEuMC4xLm9y
aWcvY2xpZW50L1NoYXJlTWFuYWdlci5oCTIwMDctMDctMDcgMjI6MDI6MDguMDAwMDAwMDAwICsw
MjAwCisrKyBsaW51eGRjcHAtMS4wLjEvY2xpZW50L1NoYXJlTWFuYWdlci5oCTIwMDgtMDYtMjIg
MTQ6MTQ6MzAuMDAwMDAwMDAwICswMjAwCkBAIC0zNSwxMCArMzUsMTIgQEAKICNpbmNsdWRlICJT
aW5nbGV0b24uaCIKICNpbmNsdWRlICJCbG9vbUZpbHRlci5oIgogI2luY2x1ZGUgIkZhc3RBbGxv
Yy5oIgogI2luY2x1ZGUgIk1lcmtsZVRyZWUuaCIKIAorI2luY2x1ZGUgPG1lbW9yeT4JLy8gR0ND
IDQuMyBmaXgKKwogU1RBTkRBUkRfRVhDRVBUSU9OKFNoYXJlRXhjZXB0aW9uKTsKIAogY2xhc3Mg
U2ltcGxlWE1MOwogY2xhc3MgQ2xpZW50OwogY2xhc3MgRmlsZTsK
</data>        

          </attachment>
    </bug>

</bugzilla>