Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 226749 - app-antivirus/klamav-0.43 fails to build
Summary: app-antivirus/klamav-0.43 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-4.3
  Show dependency tree
 
Reported: 2008-06-14 16:38 UTC by Evil Compile Person
Modified: 2008-08-22 18:41 UTC (History)
4 users (show)

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


Attachments
klamav elog (app-antivirus:klamav-0.43:20080722-204410.log,93.55 KB, text/plain)
2008-07-22 20:46 UTC, Steffen 'j0inty' Stollfuß
Details
build.log (build.log,84.84 KB, text/plain)
2008-08-03 08:06 UTC, Andrey Aleksandrovich
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 16:38:45 UTC
In file included from /usr/kde/3.5/include/kpushbutton.h:24,
                 from /usr/kde/3.5/include/kurlrequester.h:27,
                 from schedule.cpp:14:
/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 schedule.cpp:505:
ctunit.cpp: In member function 'void CTUnit<min, max>::parse(std::string) [with int min = 0, int max = 23]':
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 23]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 23]'
cthour.h:31:   instantiated from here
ctunit.cpp:82: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 23]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 23]'
cthour.h:31:   instantiated from here
ctunit.cpp:87: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 23]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 23]'
cthour.h:31:   instantiated from here
ctunit.cpp:91: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 23]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 23]'
cthour.h:31:   instantiated from here
ctunit.cpp:102: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp: In member function 'void CTUnit<min, max>::parse(std::string) [with int min = 0, int max = 59]':
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 59]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 59]'
ctminute.h:31:   instantiated from here
ctunit.cpp:82: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:87: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:91: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 59]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 59]'
ctminute.h:31:   instantiated from here
ctunit.cpp:102: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp: In member function 'int CTUnit<min, max>::fieldToValue(std::string) const [with int min = 0, int max = 23]':
ctunit.cpp:95:   instantiated from 'void CTUnit<min, max>::parse(std::string) [with int min = 0, int max = 23]'
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 23]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 23]'
cthour.h:31:   instantiated from here
ctunit.cpp:279: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:281: warning: conversion to 'char' from 'int' may alter its value
ctunit.cpp: In member function 'int CTUnit<min, max>::fieldToValue(std::string) const [with int min = 0, int max = 59]':
ctunit.cpp:95:   instantiated from 'void CTUnit<min, max>::parse(std::string) [with int min = 0, int max = 59]'
ctunit.cpp:61:   instantiated from 'void CTUnit<min, max>::initialize(const std::string&) [with int min = 0, int max = 59]'
ctunit.cpp:26:   instantiated from 'CTUnit<min, max>::CTUnit(const std::string&) [with int min = 0, int max = 59]'
ctminute.h:31:   instantiated from here
ctunit.cpp:279: warning: conversion to 'int' from 'size_t' may alter its value
ctunit.cpp:281: warning: conversion to 'char' from 'int' may alter its value
make[3]: *** [schedule.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/app-antivirus/klamav-0.43/work/klamav-0.43-source/klamav-0.43/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-antivirus/klamav-0.43/work/klamav-0.43-source/klamav-0.43/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-antivirus/klamav-0.43/work/klamav-0.43-source/klamav-0.43'
make: *** [all] Error 2
 *
 * ERROR: app-antivirus/klamav-0.43 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 Billy DeVincentis 2008-06-15 05:19:11 UTC
Same here. It built under GCC 4.2.4  and glibc 2.7.
Comment 2 Andrei Slavoiu 2008-06-20 22:25:12 UTC
Real error message (the original report only pasted the warnings after the real error message):
In file included from ctunit.h:157,
                 from ctmonth.h:19,
                 from cttask.h:21,
                 from schedule.h:22,
                 from schedule.cpp:6:
ctunit.cpp: In member function ‘int CTUnit<min, max>::fieldToValue(std::string) const’:
ctunit.cpp:317: error: there are no arguments to ‘atoi’ that depend on a template parameter, so a declaration of ‘atoi’ must be available
ctunit.cpp:317: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Comment 3 Steffen 'j0inty' Stollfuß 2008-07-22 20:45:50 UTC
Hi,

I have the same error with gcc-4.3.1.

elog attached.

Comment 4 Steffen 'j0inty' Stollfuß 2008-07-22 20:46:19 UTC
Created attachment 161137 [details]
klamav elog
Comment 5 Andrey Aleksandrovich 2008-08-03 08:06:32 UTC
Created attachment 162065 [details]
build.log

emerge --info
Portage 2.1.4.4 (selinux/2007.0/amd64/hardened, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-hardened-r3-selinux x86_64)
=================================================================
System uname: 2.6.24-hardened-r3-selinux x86_64 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55
Timestamp of tree: Sat, 02 Aug 2008 01:45:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.5.2-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.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1
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="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks loadpolicy metadata-transfer parallel-fetch sandbox selinux sesandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://192.168.66.2/pub"
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"
SYNC="rsync://192.168.66.2/gentoo-portage"
USE="3dnow X alsa amd64 berkdb branding cli cracklib crypt cups dbus dri fortran gdbm gpm hal hardened iconv isdnlog kde midi mmx mudflap ncurses nls nptl nptlonly nvidia openmp pam pcre perl pic pppd python readline reflection selinux session spl sse sse2 ssl tcpd threads unicode utf8 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Steffen 'j0inty' Stollfuß 2008-08-17 10:31:40 UTC
Hi a version bumped ebuild to 0.44 fixed that problem for me.

see here http://bugs.gentoo.org/show_bug.cgi?id=234998

j0inty 
Comment 7 Michal Kurgan (RETIRED) gentoo-dev 2008-08-17 18:53:30 UTC
Assigning blocks to gcc-4.3 porting tracker and adjusting Component.
Comment 8 Andrey Aleksandrovich 2008-08-22 14:16:18 UTC
Thank's to Jointy, klamav-0.44.ebuild is working for me now.
Comment 9 Timo Gurr (RETIRED) gentoo-dev 2008-08-22 18:41:35 UTC
New version in CVS now, closing.