Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 249887 - games-mud/kmuddy-0.8 + gcc-4.3 - ctextchunk.cpp:1123: error: 'abs' was not declared in this scope
Summary: games-mud/kmuddy-0.8 + gcc-4.3 - ctextchunk.cpp:1123: error: 'abs' was not de...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-12-05 04:57 UTC by Yaroslav Gorbunov
Modified: 2008-12-18 22:03 UTC (History)
1 user (show)

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


Attachments
proposed patch (kmuddy-0.8-gcc43.patch,377 bytes, patch)
2008-12-05 05:12 UTC, Yaroslav Gorbunov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yaroslav Gorbunov 2008-12-05 04:57:43 UTC
if /bin/sh ../libtool --silent --tag=CXX --mode=compile i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.   -DQT_THREAD_SUPPORT  -D_REENTRANT -fPIC -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -O2 -march=core2 -pipe -fomit-frame-pointer -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  -MT ctextchunk.lo -MD -MP -MF ".deps/ctextchunk.Tpo" -c -o ctextchunk.lo ctextchunk.cpp; \
        then mv -f ".deps/ctextchunk.Tpo" ".deps/ctextchunk.Plo"; else rm -f ".deps/ctextchunk.Tpo"; exit 1; fi
In file included from /usr/qt/3/include/qwindowdefs.h:45,
                 from /usr/qt/3/include/qcolor.h:43,
                 from ctextchunk.h:17,
                 from ctextchunk.cpp:14:
/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 ctextchunk.cpp:14:
ctextchunk.h: At global scope:
ctextchunk.h:55: warning: unused parameter 'suffix'
In file included from /usr/qt/3/include/qobject.h:46,
                 from cansiparser.h:23,
                 from ctextchunk.cpp:16:
/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:50,
                 from /usr/qt/3/include/qframe.h:43,
                 from /usr/qt/3/include/qscrollview.h:42,
                 from /usr/qt/3/include/qgridview.h:43,
                 from cconsole.h:23,
                 from ctextchunk.cpp:17:
/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
ctextchunk.cpp: In member function 'cTextChunk* cTextChunk::splitLine(int, bool, int, bool)':
ctextchunk.cpp:179: warning: conversion to 'char' from 'int' may alter its value
ctextchunk.cpp: In member function 'QStringList cTextChunk::words(int)':
ctextchunk.cpp:561: warning: comparison between signed and unsigned integer expressions
ctextchunk.cpp: In member function 'QString cTextChunk::toAnsi(cANSIParser*)':
ctextchunk.cpp:677: warning: conversion to 'unsigned char' from 'int' may alter its value
ctextchunk.cpp: In member function 'virtual QString chunkText::toHTML(QString&)':
ctextchunk.cpp:787: warning: comparison between signed and unsigned integer expressions
ctextchunk.cpp: In static member function 'static QString chunkFg::constructAnsi(QColor, cANSIParser*)':
ctextchunk.cpp:1123: error: 'abs' was not declared in this scope
ctextchunk.cpp: In static member function 'static QString chunkBg::constructAnsi(QColor, cANSIParser*)':
ctextchunk.cpp:1164: error: 'abs' was not declared in this scope
ctextchunk.cpp: In member function 'virtual QString chunkAttrib::toAnsi(cANSIParser*)':
ctextchunk.cpp:1238: warning: conversion to 'unsigned char' from 'int' may alter its value
make[2]: *** [ctextchunk.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /usr/qt/3/include/qwindowdefs.h:45,
                 from /usr/qt/3/include/qwidget.h:43,
                 from /usr/qt/3/include/qstatusbar.h:43,
                 from /usr/kde/3.5/include/kstatusbar.h:25,
                 from cstatus.h:23,
                 from cstatus.cpp:23:
/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:46,
                 from /usr/qt/3/include/qwidget.h:44,
                 from /usr/qt/3/include/qstatusbar.h:43,
                 from /usr/kde/3.5/include/kstatusbar.h:25,
                 from cstatus.h:23,
                 from cstatus.cpp:23:
/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:50,
                 from /usr/qt/3/include/qstatusbar.h:43,
                 from /usr/kde/3.5/include/kstatusbar.h:25,
                 from cstatus.h:23,
                 from cstatus.cpp:23:
/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
make[2]: Leaving directory `/var/tmp/portage/games-mud/kmuddy-0.8/work/kmuddy-0.8/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/games-mud/kmuddy-0.8/work/kmuddy-0.8'
make: *** [all] Error 2
 *
 * ERROR: games-mud/kmuddy-0.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2915:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * 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/games-mud/kmuddy-0.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/games-mud/kmuddy-0.8/temp/environment'.
 *

Reproducible: Always




Portage 2.1.6_rc2 (default-linux/x86/2007.0, gcc-4.3.2, glibc-2.7-r2, 2.6.26-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r3-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-glibc2.0
Timestamp of tree: Thu, 04 Dec 2008 16:07:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer"
CHOST="i686-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/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="-O2 -march=core2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS=""
LINGUAS="en ru"
MAKEOPTS="-j2"
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/berkano /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/sunrise /usr/local/portage/layman/yarik-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb cli cracklib crypt css dri fortran fuse gdbm gpm hal iconv isdnlog kde lm_sensors midi mmx mudflap ncurses nls nptl nptlonly nvidia opengl openmp pam pcre perl pppd python qt3 readline reflection samba session spl sse sse2 sse3 ssl ssse3 tcpd unicode userlocales utf8 x86 xorg 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 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 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="nvidia vesa i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Yaroslav Gorbunov 2008-12-05 05:12:47 UTC
Created attachment 174292 [details, diff]
proposed patch
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2008-12-18 22:03:12 UTC
  18 Dec 2008; Peter Alfredsen <loki_val@gentoo.org>
  +files/kmuddy-0.8-gcc43.patch, +files/kmuddy-0.8-libtool.patch,
  kmuddy-0.8.ebuild:
  Fix bug 249887 for gcc-4.3 compilation. Also added libtool patch and
  tweaks to allow eautoreconf which fixes as-needed compilation (old
  automake, I presume). Kudos to Yaroslav Gorbunov for gcc43 fix.