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

Bug 169731

Summary: app-antivirus/klamav-0.41 ebuild fails compile when building clamdmail
Product: Gentoo Linux Reporter: Vo Spader <terinstock>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: sir_kalot
Priority: High    
Version: unspecified   
Hardware: PPC   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Reporter's failed build.log
Revised klamav ebuild to apply the patch
Patch to remove the extra parameter to cl_loaddbdir

Description Vo Spader 2007-03-07 11:09:08 UTC
Building on PPC (maybe other archs?) app-antivirus/klamav-0.41 fails compile when building clamdmail.c with error "clamdmail.c:188: error: too many arguments to function 'cl_loaddbdir'"

Reproducible: Always

Steps to Reproduce:




Please also see attached reporters build.log

Portage 2.1.2.1-r1 (default-linux/ppc/ppc32/2006.1/G4, gcc-4.1.2, glibc-2.5-r0, 2.6.20.1 ppc)
=================================================================
System uname: 2.6.20.1 ppc 7447A, altivec supported
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 07 Mar 2007 07:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r4
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.15
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.20-r1
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo "
LINGUAS="en_GB en"
MAKEOPTS="-j2"
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="/usr/portage/local/layman/xeffects /usr/portage/local/layman/xeffects-experimental"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl agg aiglx aim akode alac alias alsa altivec amarok amazon amd animgif aotuv arts asterisk audacious audiofile auth automount autoreplace bash-completion berkdb bigpatch binfilter bitmap-fonts bittorrent bl bluetooth bonjour bonobo branding buttons bzip2 cdda cddb cdparanoia cdr cdrom cli cmdsubmenu connectionstatus console corba cracklib crypt css cups curl curlwrappers cvs daap dbase dbus dga divx dmx dnd doomsday dri dts dv dvd dvdr dvdread dxr3 eds emboss encode esd exif extraicons extramodules fat fbdev ffmpeg firefox flac flash font-server fortran ftp fuse gadu gdbm genericjb geoip gif gimp gimpprint glib glitz gopher gphoto2 gpm gps gs gstreamer gtalk gtk gtk2 gtkhtml h323 hal hfs highlight httpd iconv icq id3 ieee1394 ilbc imagemagick imap imlib ipod ipv6 irc isdnlog jabber jack java javascript jfs jingle jms jpeg kde kdexdeltas lame ldap libcaca libdsk libg++ libnotify libwww live lzo mad meanwhile midi mikmod ming mjpeg mng mod mozbranding mozilla mozsvg mp3 mp4 mpd mpeg mpeg2 mplayer msn mtp musicbrainz nas ncurses network new-login nfs nls nntp nptl nptlonly nsplugin ntfs ntlm ogg on-the-fly-crypt opengl oscar pam pbbuttonsd pci pcre pda pdf perl plib png ppc ppds pppd pri print python qt3 qt3support qt4 quicktime rdesktop readline realmedia reflection reiserfs rtsp ruby samba sametime sdl server session sftp silverxp skins sms speex spell spl ssl stream subtitles subversion svg svgz symlink syslog szip tagwriting tcpd texteffect theora threads thunderbird tiff timidity tordns transcode translator truetype truetype-fonts type1-fonts unicode unzip upnp urandom usb v4l v4l2 vcd vidix visualization vlm vnc vorbis webpresence winpopup wma wmf wmp wxwindows x264 xcomposite xft xine xinerama xml xorg xosd xprint xscreensaver xv xvid yahoo zeroconf zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vo Spader 2007-03-07 11:10:14 UTC
Created attachment 112384 [details]
Reporter's failed build.log
Comment 2 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-03-07 13:21:10 UTC
I've tested this and determined it to be a bug in a call to cl_loaddbdir(). I'm attaching a revised ebuild and a patch to fix the issue.
Please test it.
Comment 3 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-03-07 13:22:33 UTC
Created attachment 112410 [details]
Revised klamav ebuild to apply the patch
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2007-03-07 13:23:19 UTC
Created attachment 112411 [details, diff]
Patch to remove the extra parameter to cl_loaddbdir
Comment 5 Stefan Schweizer (RETIRED) gentoo-dev 2007-03-07 15:01:54 UTC
patch committed to portage, thanks.
Comment 6 Leo 2007-03-07 16:06:27 UTC
Hi all.. I got the same problem on x86 machine... and the patch seems to work... at least it compile... now we will see if it stops also the viruses ;-)

tnx

Leo