Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227041 - app-crypt/calcchecksum-1.6_pre1 fails to build
Summary: app-crypt/calcchecksum-1.6_pre1 fails to build
Status: RESOLVED DUPLICATE of bug 250620
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-14 20:38 UTC by Evil Compile Person
Modified: 2009-06-13 23:21 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to allow compilation with GCC 4.3 (calcchecksum-1.6_pre1-gcc43-fix.patch,1.59 KB, patch)
2008-11-26 21:00 UTC, John Keeping
Details | Diff
Updated ebuild which applies the patch (calcchecksum-1.6_pre1-r1.ebuild,619 bytes, text/plain)
2008-11-26 21:00 UTC, John Keeping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Evil Compile Person 2008-06-14 20:38:41 UTC
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT -DQT_NO_STL -D_GNU_SOURCE -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -DNDEBUG -DNO_DEBUG -O2 -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fexceptions  -c -o calcchecksum-calcchecksum.o `test -f 'calcchecksum.cpp' || echo './'`calcchecksum.cpp
In file included from /usr/qt/3/include/qwindowdefs.h:44,
                 from /usr/qt/3/include/qwidget.h:42,
                 from /usr/qt/3/include/qframe.h:42,
                 from /usr/qt/3/include/qlineedit.h:47,
                 from calcchecksum.cpp:13:
/usr/qt/3/include/qstring.h: In member function 'char QChar::latin1() const':
/usr/qt/3/include/qstring.h:194: warning: conversion to 'char' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setCell(uchar)':
/usr/qt/3/include/qstring.h:219: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In member function 'void QChar::setRow(uchar)':
/usr/qt/3/include/qstring.h:220: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QChar::QChar(uchar, uchar)':
/usr/qt/3/include/qstring.h:264: warning: conversion to 'ushort' from 'int' may alter its value
/usr/qt/3/include/qstring.h: In constructor 'QStringData::QStringData(QChar*, uint, uint)':
/usr/qt/3/include/qstring.h:362: warning: conversion to 'unsigned int:30' from 'uint' may alter its value
/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/qwidget.h:43,
                 from /usr/qt/3/include/qframe.h:42,
                 from /usr/qt/3/include/qlineedit.h:47,
                 from calcchecksum.cpp:13:
/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/qframe.h:42,
                 from /usr/qt/3/include/qlineedit.h:47,
                 from calcchecksum.cpp:13:
/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 calcchecksum.cpp:19:
/usr/qt/3/include/qpushbutton.h: In member function 'virtual void QPushButton::setIsMenuButton(bool)':
/usr/qt/3/include/qpushbutton.h:91: warning: conversion to 'unsigned char:1' from 'int' may alter its value
In file included from /usr/qt/3/include/qdragobject.h:47,
                 from calcchecksum.cpp:24:
/usr/qt/3/include/qimage.h: In member function 'bool QImageTextKeyLang::operator<(const QImageTextKeyLang&) const':
/usr/qt/3/include/qimage.h:58: warning: suggest parentheses around && within ||
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/kaboutdialog.h:33,
                 from /usr/kde/3.5/include/kaboutapplication.h:27,
                 from calcchecksum.cpp:31:
/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
calcchecksum.cpp: In constructor 'CalcChecksum::CalcChecksum(KCmdLineArgs*, QWidget*, const char*)':
calcchecksum.cpp:89: error: 'exit' was not declared in this scope
calcchecksum.cpp: In member function 'void CalcChecksum::handleProgressRequest(const std::string*)':
calcchecksum.cpp:628: error: 'atoi' was not declared in this scope
calcchecksum.cpp:631: error: 'atoi' was not declared in this scope
calcchecksum.cpp: In member function 'void CalcChecksum::newProcCalc(KCmdLineArgs*)':
calcchecksum.cpp:910: warning: 'static void KWin::setActiveWindow(WId)' is deprecated (declared at /usr/kde/3.5/include/kwin.h:113)
make[3]: *** [calcchecksum-calcchecksum.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-crypt/calcchecksum-1.6_pre1/work/calcchecksum-1.6-pre1/calcchecksum'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-crypt/calcchecksum-1.6_pre1/work/calcchecksum-1.6-pre1/calcchecksum'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-crypt/calcchecksum-1.6_pre1/work/calcchecksum-1.6-pre1'
make: *** [all] Error 2
 *
 * ERROR: app-crypt/calcchecksum-1.6_pre1 failed.

Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25.1 x86_64)
=================================================================
System uname: 2.6.25.1 x86_64 unknown
Timestamp of tree: Fri, 13 Jun 2008 19:45:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.62
sys-devel/automake:  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="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://216.165.129.134/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.osuosl.org/"
LANG="en_US"
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"
SYNC="rsync://208.71.112.51/gentoo-portage"
USE="X acl amd64 berkdb cli cracklib crypt cups dri fortran gcj gdbm gpm iconv ipv6 isdnlog midi mmx mudflap ncurses nls nptl nptlonly objc openmp pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd unicode xorg 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="vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 John Keeping 2008-11-26 21:00:01 UTC
Created attachment 173512 [details, diff]
Patch to allow compilation with GCC 4.3

I got the same error and this patch allows it to compile successfully.
Comment 2 John Keeping 2008-11-26 21:00:28 UTC
Created attachment 173513 [details]
Updated ebuild which applies the patch
Comment 3 Theo Chatzimichos (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2009-06-13 23:21:03 UTC
Already fixed

*** This bug has been marked as a duplicate of bug 250620 ***