Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 328769

Summary: net-p2p/amule-2.2.6 - wxcasframe.cpp:292:58: error: cannot call constructor 'wxFont::wxFont' directly
Product: Gentoo Linux Reporter: fkhp <fkhp101>
Component: Current packagesAssignee: Gentoo net-p2p team <net-p2p>
Status: RESOLVED FIXED    
Severity: normal CC: anotherbearcatfan, b4b1, joel, nevernow, polidevk.polidevk, v_2e
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: With this, gcc 4.5 can build amule 2.2.6

Description fkhp 2010-07-18 00:26:04 UTC
Compiling wxcascte.cpp
wxcasframe.cpp: In member function 'wxImage* WxCasFrame::GetStatImage() const':
wxcasframe.cpp:292:58: error: cannot call constructor 'wxFont::wxFont' directly
wxcasframe.cpp:292:58: error:   for a function-style cast, remove the redundant '::wxFont'
make[5]: *** [wxcasframe.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in net-p2p/amule-2.2.6::gentoo:


Reproducible: Always




# emerge --info amule
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.5.0, glibc-2.11.2-r0, 2.6.34-ccs-r2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-ccs-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9300_@_2.50GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 17 Jul 2010 22:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
virtual/os-headers:  2.6.34
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-mtune=core2 -march=core2 -O2 -msse4.1 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.netnitco.net/ "
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN en_US zh en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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 /var/lib/layman/x11 /var/lib/layman/vmware /var/lib/layman/gentoo-china /var/lib/layman/gentoo-taiwan /var/lib/layman/sunrise /var/lib/layman/gnome /var/lib/layman/mozilla"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 ao apache2 bash-completion berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cups cxx dbus djvu doc dri dts dvd dvdr eds emboss encode esd evo examples exif fam ffmpeg firefox flac fortran gdbm gdu gif gimp gnome gnome-keyring gphoto2 gpm gstreamer gtk guile i18n iconv icu introspection jadetex java jpeg jpeg2k latex lcms ldap libnotify mad midi mikmod mmap mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nas nautilus ncurses networkmanager nfs nls nntp nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pch pcre pda pdf perl php png policykit ppds pppd python qt3support qt4 readline reflection samba scsi sdl session smp snmp spell spl sqlite sse sse2 sse3 ssl ssse3 startup-notification suid svg sysfs tcpd threads tiff tk truetype unicode usb v4l2 vim-syntax vorbis x264 xattr xcb xml xmp xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ens1370 hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 cgi cgid 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US zh en" QEMU_SOFTMMU_TARGETS="x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vmwgfx vmwlegacy nouveau nvidia nv vmware vesa svga" XTABLES_ADDONS="cui gfw zhang ipset" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 fkhp 2010-07-20 00:01:39 UTC
please update ebuild so that if gconftool-2 exists then let ed2k handles the ed2k links:

gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command "ed2k %s"
gconftool-2 -s /desktop/gnome/url-handlers/ed2k/needs_terminal false -t bool
gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true
Comment 2 niogic 2010-08-31 15:00:22 UTC
Please set this block #296658 to give more visibility.
Comment 3 Joel 2010-09-09 18:32:59 UTC
I've submitted this to the aMule bugTracker.
Comment 4 niogic 2010-09-10 13:45:28 UTC
(In reply to comment #3)
> I've submitted this to the aMule bugTracker.
> 

I think it was in SVN already.
Watch if they mark it duplicate..
Comment 5 Joel 2010-09-10 13:58:29 UTC
Created attachment 246712 [details, diff]
With this, gcc 4.5 can build amule 2.2.6
Comment 6 Joel 2010-09-10 14:00:02 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > I've submitted this to the aMule bugTracker.
> > 
> 
> I think it was in SVN already.
> Watch if they mark it duplicate..
> 

Yes, you were right. I found that after I notified the bug :( By the way, I've modified the file that caused the troubles, please check if everything is right now. (On my machine, at least, now builds correctly)
Comment 7 Francesco Riosa 2010-10-10 12:42:02 UTC
amule-2.2.6-gcc45.patch work for me

desktop-laptop temp # emerge --info net-p2p/amule
Portage 2.2_rc91 (default/linux/amd64/10.0, gcc-4.5.1, glibc-2.12.1-r1, 2.6.36-rc5-vs2.3.0.36.32-pre3 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-rc5-vs2.3.0.36.32-pre3-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 09 Oct 2010 01:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
Repositories: gentoo temporary kde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/g/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks fixlafiles fixpackages news nodoc noinfo notitles parallel-fetch protect-owned sandbox sfperms strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.gentoo.skynet.be/pub/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://gentoo.inode.at/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed  -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--build-id"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/g/packages"
PORTAGE_COMPRESS="lzma"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/g/tmp"
PORTDIR="/g/portage"
PORTDIR_OVERLAY="/g/ovl/tmp /g/ovl/kde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi akonadi alsa amd64 amr apache2 apm asf automount avahi avi bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo caps captury cdda cddb chm cjk cli compositor consolekit cracklib crypt cups curl cxx dbus decibel dedicated device-mapper djvu dri dvdread emboss encode engines erandom exif exiv2 extrafilters fam fame ffmpeg firefox flac foomaticdb fortran gdbm geos gif glitz gpm gtk2 hal hdf hdf5 hpijs hpn htmlhandbook iconv idn imagemagick imlib iproute2 ipv6 ithreads jack java jingle jpeg jpeg2k justify kde kdehiddenvisibility kdepim kontact latex libg++ libwww lm_sensors lua lzma lzo mad mbrola mdnsresponder-compat messenger mikmod mjpeg mmx mng modules motif mp3 mpeg mplayer mudflap multilib mysql ncurses nepomuk new-hpcups newxkb nls nptl nptlonly odbc ogdi ogg openexr opengl openmp pam pam_chroot pcre perl plasma plugins pmu png policykit pppd private-headers python qt qt3support qt4 quicktime rdesktop readline reflection reiserfs samba sasl scanner schroedinger screen sdl semantic-desktop server session skey slang social-desktop spell sqlite3 sse sse2 ssl startup-notification svg synaptics sysfs system-sqlite taglib tcltk tcpd telepathy theora threads tiff tls truetype truetype-fonts ucs2 udev unicode urandom usb userlocales utempter utils v4l v4l2 vaapi vnc vorbis webkit wma x264 xcb xcomposite xine xinerama xml xorg xv xvid zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CAMERAS="ptp2 directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp4200 net ricoh" USERLAND="GNU" VIDEO_CARDS="fbdev intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

net-p2p/amule-2.2.6 was built with the following:
USE="daemon geoip gtk (multilib) nls remote stats unicode -debug -upnp"
CFLAGS="-O2 -march=core2 -pipe"
CXXFLAGS="-O2 -march=core2 -pipe"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common -Wl,--build-id"
Comment 8 igor 2010-12-03 22:31:27 UTC
(In reply to comment #7)
> amule-2.2.6-gcc45.patch work for me
And for me on amd64.
Comment 9 Jesús Guerrero Botella (RETIRED) gentoo-dev 2010-12-10 09:23:59 UTC
(In reply to comment #8)
> (In reply to comment #7)
> > amule-2.2.6-gcc45.patch work for me
> And for me on amd64.
> 

The patch works here too for amd64.
Comment 10 mondrillo 2011-01-01 19:33:11 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > (In reply to comment #7)
> > > amule-2.2.6-gcc45.patch work for me
> > And for me on amd64.
> > 
> 
> The patch works here too for amd64.
> 

The bug is today active, 

it's posible to update the portage with the patch?
Comment 11 xenon 2011-02-14 00:44:54 UTC
(In reply to comment #10)
> 
> The bug is today active, 
> 
> it's posible to update the portage with the patch?
>

Agreed. I understand it should be taken care of upstream, but in the meanwhile portage should step in.

Comment 12 Zentoo 2011-05-08 14:09:07 UTC
 The patch is not in actual portage so people on unstable arch can not compile it with gcc-4.5.x.

 When is the patch scheduled to get in portage ?
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2011-05-08 18:25:22 UTC
Applied, sorry for taking so long