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

Bug 227221

Summary: kbudget-0.6 won't emerge with gcc 4.3.1
Product: Gentoo Linux Reporter: Billy DeVincentis <billydv1>
Component: [OLD] GCC PortingAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, mlm
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 198121    
Attachments: kbudget-0.6-gcc43.patch

Description Billy DeVincentis 2008-06-15 15:19:39 UTC
/usr/qt/3/include/qstring.h:362: warning: conversion to ‘unsigned int:30’ from ‘uint’ may alter its value
In file included from /usr/qt/3/include/qobject.h:45,
                 from /usr/qt/3/include/qiconset.h:42,
                 from /usr/kde/3.5/include/kiconloader.h:17,
                 from kbudget.cpp:26:
/usr/qt/3/include/qevent.h: In member function ‘void QDropEvent::setAction(QDropEvent::Action)’:
/usr/qt/3/include/qevent.h:520: warning: conversion to ‘unsigned char’ from ‘uint’ may alter its value
In file included from /usr/qt/3/include/qwidget.h:49,
                 from /usr/qt/3/include/qdialog.h:42,
                 from /usr/qt/3/include/qmessagebox.h:42,
                 from /usr/kde/3.5/include/kmessagebox.h:23,
                 from kbudget.cpp:27:
/usr/qt/3/include/qsizepolicy.h: In member function ‘void QSizePolicy::transpose()’:
/usr/qt/3/include/qsizepolicy.h:122: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
/usr/qt/3/include/qsizepolicy.h:122: warning: conversion to ‘uchar’ from ‘uint’ may alter its value
In file included from /usr/kde/3.5/include/klistbox.h:21,
                 from /usr/kde/3.5/include/kjanuswidget.h:27,
                 from /usr/kde/3.5/include/kdialogbase.h:27,
                 from /usr/kde/3.5/include/kfiledialog.h:30,
                 from kbudget.cpp:28:
/usr/qt/3/include/qlistbox.h: In member function ‘int QListBox::cellWidth() const’:
/usr/qt/3/include/qlistbox.h:191: warning: conversion to ‘int’ from ‘long int’ may alter its value
/usr/qt/3/include/qlistbox.h: In member function ‘int QListBox::cellWidth(int) const’:
/usr/qt/3/include/qlistbox.h:192: warning: conversion to ‘int’ from ‘long int’ may alter its value
In file included from /usr/kde/3.5/include/kservicetype.h:24,
                 from /usr/kde/3.5/include/kmimetype.h:33,
                 from /usr/kde/3.5/include/kfiledialog.h:33,
                 from kbudget.cpp:28:
/usr/kde/3.5/include/ksycocaentry.h: In member function ‘virtual void KSycocaEntry::save(QDataStream&)’:
/usr/kde/3.5/include/ksycocaentry.h:104: warning: conversion to ‘int’ from ‘Q_ULONG’ may alter its value
In file included from kbudget.cpp:35:
/usr/kde/3.5/include/kedittoolbar.h: At global scope:
/usr/kde/3.5/include/kedittoolbar.h:271: warning: ‘KEditToolbarWidget’ has a field ‘KEditToolbarWidget::m_inactiveList’ whose type uses the anonymous namespace
/usr/kde/3.5/include/kedittoolbar.h:271: warning: ‘KEditToolbarWidget’ has a field ‘KEditToolbarWidget::m_activeList’ whose type uses the anonymous namespace
kbudget.cpp: In member function ‘void KBudgetApp::initActions()’:
kbudget.cpp:127: warning: ‘KToggleAction* KStdAction::showToolbar(const QObject*, const char*, KActionCollection*, const char*)’ is deprecated (declared at /usr/kde/3.5/include/kstdaction.h:502)
kbudget.cpp: In member function ‘void KBudgetApp::slotCrash()’:
kbudget.cpp:699: error: ‘rand’ was not declared in this scope
kbudget.cpp: In member function ‘int KBudgetApp::debugGetRandomTransaction()’:
kbudget.cpp:727: error: ‘rand’ was not declared in this scope
kbudget.cpp: In member function ‘QDate KBudgetApp::debugRandomDate()’:
kbudget.cpp:734: error: ‘rand’ was not declared in this scope
kbudget.cpp: In member function ‘void KBudgetApp::debugRandomAccts(int&, int&)’:
kbudget.cpp:742: error: ‘rand’ was not declared in this scope
kbudget.cpp:752: error: ‘rand’ was not declared in this scope
kbudget.cpp: In member function ‘float KBudgetApp::debugRandomValue()’:
kbudget.cpp:759: error: ‘rand’ was not declared in this scope
/usr/qt/3/include/qmemarray.h: In constructor ‘QMemArray<type>::QMemArray(int) [with type = QPoint]’:
/usr/qt/3/include/qpointarray.h:56:   instantiated from here
/usr/qt/3/include/qmemarray.h:59: warning: conversion to ‘int’ from ‘long unsigned int’ may alter its value
/usr/qt/3/include/qmemarray.h: In member function ‘type& QMemArray<type>::operator[](int) const [with type = QPoint]’:
/usr/include/KDChartEnums.h:280:   instantiated from here
/usr/qt/3/include/qmemarray.h:100: warning: conversion to ‘uint’ from ‘long unsigned int’ may alter its value
make[3]: *** [kbudget.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/app-office/kbudget-0.6/work/kbudget-0.6/kbudget'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-office/kbudget-0.6/work/kbudget-0.6/kbudget'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-office/kbudget-0.6/work/kbudget-0.6'
make: *** [all] Error 2
 *
 * ERROR: app-office/kbudget-0.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 4117:  Called kde_src_compile
 *             environment, line 2945:  Called kde_src_compile 'all'
 *             environment, line 3065:  Called kde_src_compile 'myconf' 'configure' 'make'
 *             environment, line 3061:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/kbudget-0.6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/kbudget-0.6/temp/environment'.


Reproducible: Always




emerge --info
Portage 2.1.5.5 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Timestamp of tree: Sun, 15 Jun 2008 05:35:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
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=native -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 /var/bind /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/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
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/portage/local/miscellaneous /usr/portage/local/desktop-effects"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow S3TC X a52 aac aalib accessibility acl acpi alsa amarok amd64 apm arts artworkextra audiofile automount avahi bash-completion berkdb bidi bittorrent bluetooth branding bzip2 cairo calendar cdda cdio cdparanoia cdr clamav cli cpudetection cracklib crypt css cups curl dbus deprecated devil dga directfb discouraged distribution divx doc dri dts dv dvb dvd dvdr dvdread eds elisp emacs emboss emerald encode esd etc-proposals evo examples exif extraicons fam fat fax fbcon fbcondecor fbsplash ffmpeg firefox flac flash foomaticdb fortran fuse gcj gd gdbm gedit gif gimp glitz gmedia gnome gnutls gphoto2 gpm gstreamer gtk gtkhtml hal hddtemp hfs html htmlhandbook httpd iconv idn ieee1394 imagemagick imlib inkjar ipv6 isdnlog jack java jfs joystick jpeg kde kdehiddenvisibility kerberos lcms ldap libcaca libnotify lirc live lm_sensors logrotate mad mail matroska mdnsresponder-compat midi mikmod mime mjpeg mmx mmxext mng mono mozilla mp3 mpeg mplayer mudflap multilib musicbrainz mysql nas nautilus ncurses networking new-login nforce2 nls nptl nptlonly nsplugin ntfs nvidia odbc offensive ogg opengl openmp pam parport pcre pdf perl pmu png postgres ppds pppd pulseaudio python qt3 qt3support qt4 quicktime rar rdesktop readline realmedia reflection regex reiser4 reiserfs samba scanner sdl seamonkey semantic-desktop servletapi session skins slang slp smp sndfile snmp sound sounds speex spell spl sqlite sse sse2 ssl startup-notification stream subversion svg swat symlink sysfs syslog tcpd tetex theora thesaurus threads thunderbird tidy tiff timidity tk truetype type1 unicode usb userlocales utempter utils v4l vcd vdr vlm voice vorbis vram weather wmf wmp wordperfect wxwindows xattr xcb xcomposite xforms xfs xine xml xorg xpm xprint xscreensaver xv xvid zeroconf 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marek Miller 2008-06-15 18:34:17 UTC
Again missing headers.

Steps to reproduce:
1. USE="arts debug xinerama" emerge -v1 =app-office/kbudget-0.6

The error messages:
1.
> kbudget.cpp: In member function 'void KBudgetApp::slotCrash()':
> kbudget.cpp:699: error: 'rand' was not declared in this scope


My emerge --info: as in the bug 226663, comment 2.
Comment 2 Marek Miller 2008-06-15 18:34:35 UTC
Created attachment 156969 [details, diff]
kbudget-0.6-gcc43.patch
Comment 3 Ingmar Vanhassel (RETIRED) gentoo-dev 2008-06-15 23:26:48 UTC
*** Bug 227249 has been marked as a duplicate of this bug. ***
Comment 4 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-28 22:18:12 UTC
+  28 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/kbudget-0.6-gcc43.patch, kbudget-0.6.ebuild:
+  Fix for gcc-4.3, bug #227221. Thanks to Marek Miller <mlm@shells.pl>.
+