Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206835 - kde-base/kdelibs-3.5.7-r3 cannot be compiled (kMin kMax - float given, double required)
Summary: kde-base/kdelibs-3.5.7-r3 cannot be compiled (kMin kMax - float given, double...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-21 05:02 UTC by Marek Cruz
Modified: 2008-02-10 00:47 UTC (History)
0 users

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


Attachments
Fixed calling of kMin() and kMax(), now it can be compiled and it works (kMinkMax.patch,2.28 KB, patch)
2008-01-21 05:04 UTC, Marek Cruz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Cruz 2008-01-21 05:02:26 UTC
kdelibs cannot be compiled on my machine without my patch.

[ebuild  N    ] kde-base/kdelibs-3.5.7-r3  USE="acl alsa cups spell tiff -arts -avahi -bindist -branding -debug -doc -fam -jpeg2k -kdeenablefinal -kdehiddenvisibility -kerberos -legacyssl -lua -openexr -utempter -xinerama" 0 kB

Reproducible: Always

Steps to Reproduce:
Try to emerge kde-base/kdelibs-3.5.7-r3 with these USE flags I used

Actual Results:  
knuminput.cpp: In constructor 'KDoubleNumInput::KDoubleNumInput(double, QWidget*, const char*)':
knuminput.cpp:570: error: no matching function for call to 'kMin(float, double&)'
knuminput.cpp:570: error: no matching function for call to 'kMax(float, double&)'
knuminput.cpp: In constructor 'KDoubleNumInput::KDoubleNumInput(KNumInput*, double, QWidget*, const char*)':
knuminput.cpp:577: error: no matching function for call to 'kMin(float, double&)'
knuminput.cpp:577: error: no matching function for call to 'kMax(float, double&)'
make[3]: *** [knuminput.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.7-r3/work/kdelibs-3.5.7/kdeui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.7-r3/work/kdelibs-3.5.7/kdeui'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/kde-base/kdelibs-3.5.7-r3/work/kdelibs-3.5.7'
make: *** [all] Error 2

cssparser.cpp: In member function 'bool DOM::CSSParser::parseColorParameters(DOM::Value*, int*, bool)':
cssparser.cpp:2000: error: no matching function for call to 'kMin(float, double&)'
cssparser.cpp: In member function 'bool DOM::CSSParser::parseHSLParameters(DOM::Value*, double*, bool)':
cssparser.cpp:2026: error: no matching function for call to 'kMin(float, double&)'
cssparser.cpp:2035: error: no matching function for call to 'kMin(float, double&)'


Expected Results:  
Successful compilation.

Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22.9 x86_64)
=================================================================
System uname: 2.6.22.9 x86_64 AMD Athlon(tm) 64 Processor 3200+
Timestamp of tree: Sun, 20 Jan 2008 22:00:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb -feliminate-unused-debug-symbols -fivopts -fsingle-precision-constant -frename-registers -mmmx -msse -msse2 -msse3 -m3dnow -ggdb -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/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="-march=k8 -O2 -pipe -ggdb -feliminate-unused-debug-symbols -fivopts -fsingle-precision-constant -frename-registers -mmmx -msse -msse2 -msse3 -m3dnow -ggdb -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/user/tmpdownloads/x4x-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac acl acpi alsa amd64 bash-completion berkdb bitmap-fonts bzip2 chardet cli cracklib crypt cups dri dxr3 fglrx flac fortran gdbm gnutls gpm iconv isdnlog jpeg mad mailwrapper midi mmx mmxext mp3 mudflap ncurses nls nptl nptlonly nsplugin ogg openmp oss pam pcre perl png pppd python readline reflection rtc sensord session spell spl sse sse2 ssl svg tcpd tiff truetype-fonts type1-fonts unicode vorbis wma x264 xorg xvid xvmc 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="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marek Cruz 2008-01-21 05:04:43 UTC
Created attachment 141424 [details, diff]
Fixed calling of kMin() and kMax(), now it can be compiled and it works
Comment 2 Ingmar Vanhassel (RETIRED) gentoo-dev 2008-01-23 03:16:08 UTC
Can you submit a bug upstream, for this patch, and link to it here? :)
And do you have the same problem with KDE 3.5.8?
Comment 3 Wulf Krueger (RETIRED) gentoo-dev 2008-02-10 00:47:56 UTC
Please re-open this bug if it persists with KDE 3.5.8.