First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 228891
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo net-p2p team <net-p2p@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: zimous <zimous@matfyz.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
linuxdcpp-1.0.1.ebuild Fixed ebuild text/plain zimous 2008-06-22 12:54 0000 1.24 KB Details
linuxdcpp-1.0.1-gcc43.patch Patch adding '#include <memory>' patch zimous 2008-06-22 12:58 0000 495 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 228891 depends on: Show dependency tree
Bug 228891 blocks: 198121
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-06-22 12:52 0000
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 'auto_ptr'
with no type
client/ShareManager.h:246: error: expected ';' before '<' token

Reproducible: Always

------- Comment #1 From zimous 2008-06-22 12:54:21 0000 -------
Created an attachment (id=158003) [details]
Fixed ebuild

------- Comment #2 From zimous 2008-06-22 12:58:12 0000 -------
Created an attachment (id=158005) [details]
Patch adding '#include <memory>'

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.

------- Comment #3 From Alexandre Rostovtsev 2008-06-29 23:16:45 0000 -------
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 ‘<’ token
scons: *** [build/client/AdcHub.o] Error 1
scons: building terminated because of errors.

------- Comment #4 From Santiago M. Mola 2008-06-29 23:20:21 0000 -------
Reopening.

------- Comment #5 From zimous 2008-06-30 08:32:12 0000 -------
Sorry, my fault, my first on bugs.gentoo.

------- Comment #6 From ~S 2008-06-30 09:06:17 0000 -------
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
"/var/tmp/portage/net-p2p/linuxdcpp-1.0.1-r1/work/linuxdcpp-1.0.1/linux/SConstruct",
line 26, in <module>
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='"/usr/share"' -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='"/usr/share"' -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='"/usr/share"' -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 ‘<’ 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="${CXXFLAGS}" PREFIX=/usr || die
"scons failed"
 *  The die message:
 *   scons failed
[/snip]
and for the sake of complicity here'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="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/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"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccachei distlocks metadata-transfer parallel-fetch preserve-libs
sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://10.200.15.2/os/gentoo/gentoo-os
http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LC_ALL="en_US.utf-8"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/verlihub /usr/local/portage"
SYNC="rsync://ftp.iitb.ac.in/gentoo/portage"
USE="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"
ALSA_CARDS="hda-intel" 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" APACHE2_MODULES="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" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

~S

------- Comment #7 From Raúl Porcel 2008-06-30 10:06:34 0000 -------
Fixed, thanks.

First Last Prev Next    No search results available      Search page      Enter new bug