Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264887 - Version bump app-antivirus/klamav
Summary: Version bump app-antivirus/klamav
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-04 15:32 UTC by Richard Cox
Modified: 2009-04-19 16:26 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Cox 2009-04-04 15:32:05 UTC
The latest arch version of klamav (0.45) in portage does not support the newest version of clamav (0.95).  There is new a newer version of klamav available (0.46).
Comment 1 Randy Andy 2009-04-05 15:35:51 UTC
Is that the reason why i'm not able to compile successful klamav-0.45?

Here some Details:

Making all in sqlite
os_unix.c: In function 'sqlite3OsRandomSeed':
os_unix.c:1268: warning: ignoring return value of 'read', declared with attribute warn_unused_result
table.c: In function 'sqlite3_get_table':
table.c:146: warning: cast to pointer from integer of different size
table.c: In function 'sqlite3_free_table':
table.c:191: warning: cast from pointer to integer of different size
Making all in klammail
clamdmail.c: In function 'clamdscan':
clamdmail.c:99: error: storage size of 'limits' isn't known
clamdmail.c:159: error: 'CL_EIO' undeclared (first use in this function)
clamdmail.c:159: error: (Each undeclared identifier is reported only once
clamdmail.c:159: error: for each function it appears in.)
clamdmail.c:178: warning: passing argument 2 of 'cl_load' from incompatible pointer type
clamdmail.c:199: error: invalid application of 'sizeof' to incomplete type 'struct cl_limits'
clamdmail.c:209: error: 'CL_ARCHIVE' undeclared (first use in this function)
clamdmail.c:209: error: 'CL_MAIL' undeclared (first use in this function)
clamdmail.c:209: error: 'CL_OLE2' undeclared (first use in this function)
clamdmail.c:209: error: too many arguments to function 'cl_scandesc'
clamdmail.c:143: warning: ignoring return value of 'mkstemp', declared with attribute warn_unused_result
In file included from treewalk.c:38:
manager.h:28: warning: 'struct cl_limits' declared inside parameter list
manager.h:28: warning: its scope is only this definition or declaration, which is probably not what you want
manager.h:28: warning: 'struct cl_node' declared inside parameter list
manager.h:30: warning: 'struct cl_limits' declared inside parameter list
manager.h:30: warning: 'struct cl_node' declared inside parameter list
manager.h:32: warning: 'struct cl_limits' declared inside parameter list
manager.h:32: warning: 'struct cl_node' declared inside parameter list
manager.h:34: warning: 'struct cl_limits' declared inside parameter list
manager.h:34: warning: 'struct cl_node' declared inside parameter list
manager.h:36: warning: 'struct cl_limits' declared inside parameter list
manager.h:36: warning: 'struct cl_node' declared inside parameter list
manager.h:38: warning: 'struct cl_limits' declared inside parameter list
manager.h:38: warning: 'struct cl_node' declared inside parameter list
In file included from treewalk.c:41:
treewalk.h:32: warning: 'struct cl_limits' declared inside parameter list
treewalk.h:32: warning: 'struct cl_node' declared inside parameter list
clamdmail.c: In function 'startclamd':
clamdmail.c:505: warning: ignoring return value of 'mkstemp', declared with attribute warn_unused_result
make[3]: *** [clamdmail.o] Error 1
make[3]: *** Waiting for unfinished jobs....
output.c: In function 'mdprintf':
output.c:70: warning: ignoring return value of 'write', declared with attribute warn_unused_result
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 *
 * ERROR: app-antivirus/klamav-0.45 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 4290:  Called kde_src_compile
 *             environment, line 3097:  Called kde_src_compile 'all'
 *             environment, line 3222:  Called kde_src_compile 'myconf' 'configure' 'make'
 *             environment, line 3218:  Called die
 * The specific snippet of code:
 *                   emake || die "died running emake, $FUNCNAME:make"
 *  The die message:
 *   died running emake, kde_src_compile:make
 *
 * 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/app-antivirus/klamav-0.45/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-antivirus/klamav-0.45/temp/environment'.


And my output of emerge --info:
Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Sun, 05 Apr 2009 14:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p10-r1
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r1
sys-apps/sandbox:    1.8
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=core2 -march=core2 -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/share/config/kdm /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=core2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s"
LINGUAS="de"
MAKEOPTS="-s -j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac aalib accessibility acl acpi aiglx alsa amarok amd amd64 amr animgif apm arts audiofile bash-completion berkdb bluetooth branding bzip2 cairo canvas ccache cdda cddb cdparanoia cdr cdrom cgi chipcard chroot cjk clamav cli cracklib crypt css cups cvs cvsgraph daemon dar64 dbus dc1394 dia disk-partition divx divx4linux djbfft djvu dri dts dv dvd dvdnav dvdr dvdread dvi dxr3 dynamic editor eds emboss emovix enblend encode enscript esd evo excel exif expat extrafilters fam fame fat ffmpeg fftw finger firefox flac flash flv fmod foomaticdb fortran freetype fuse gd gdbm german gif gimp gimpprint glut gmedia gnokii gnome gphoto2 gpm gstreamer gtk gzip hal hddtemp hdri hfs html http httpd iconv icq id3 id3tag ieee1394 image imagemagick imap imlib inkjar iptv ipv6 irc irmc isdnlog ivtv jabber jack java java6 javacomm javascript jbig jce jfs jingle joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdgraphics kdm kerberos kexi kig-scripting kipi ladspa lame lcms ldap libcaca libnotify libsamplerate libvisual linuxthreads-tls live lm_sensors logrotate logwatch loop-aes lzo lzw mad math matroska maya-shaderlibrary midi mikmod mime ming mjpeg mmkeys mmx mmxext mng mod modplug mouse mozdevelop mozsvg mp2 mp3 mp3rtp mp4 mp4live mpd mpeg mplayer mpu401 mudflap muine multilib multiprocess musepack musicbrainz mysql nautilus ncurses network network-cron nfs nls nntp nptl nptlonly nsplugin ntfs nuv nvtv obex odk office ogg on-the-fly-crypt openal opendoc openexr opengl openmp openvpn oss pam pcre pda pdf perforce perl pg-intdatetime php plib plotutils pmount pmu png pnm pop postgres postproc postscript povray ppds pppd pptp prelude profile proj ps pulseaudio pvr pwdb python q32 qt3 qt3support qt4 quicktime rar raw readline realmedia recode reflection rsh rss rtc rtsp ruby samba scanner schedule sdl sdl-image sdl-sound sdlaudio sensord session shorten shout skins smartcard smp smpeg sms sndfile sound soundtouch source speedo speex spell spl srt sse sse2 sse3 ssl ssse3 startup-notification stats stream svg svgz sysfs syslog tagwriting tcpd teletext tga tgif themes theora threads tiff timidity tivo tk transcode truetype tse3 tta tv tv_check tv_combiner tv_pick_cgi twolame type1 udev unicode usb uudeview v4l v4l2 vcd vcdx vdr visualization vlm vorbis wav wavpack webdav webinstall winpopup wma wmf wmp wordperfect wxwindows x11vnc x264 xanim xcf xface xforms xfs xine xinerama xml xmlreader xmlwriter xorg xpm xprint xscreensaver xsl xslt xterm xulrunner xv xvid xvmc yv12 zeroconf zip zlib zvbi" 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 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="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia v4l"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Comment 2 Richard Cox 2009-04-05 16:16:17 UTC
"Is that the reason why i'm not able to compile successful klamav-0.45?"

Yep.  After upgrading to clamav 0.95, I got the same errors when I tried to re-emerge klamav 0.45.  klamav 0.46 compiled fine for me.

Comment 3 Richard Cox 2009-04-05 16:17:51 UTC
BTW, as a temporary workaround, I just copied the the klamav 0.45 ebuild to my local portage repository and renamed it 0.46.  Built and installed fine.  You may need to copy the supporting files from the klamav repository as well.
Comment 4 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-04-12 17:59:21 UTC
I just tested it here and it's dying when trying to link to a missing libpcreposix.la - I only have the shared lib.

lrwxrwxrwx 1 root root    21 Abr 12 17:49 /usr/lib64/libpcreposix.so -> libpcreposix.so.0.0.0
lrwxrwxrwx 1 root root    21 Abr 12 17:49 /usr/lib64/libpcreposix.so.0 -> libpcreposix.so.0.0.0
-rwxr-xr-x 1 root root 10144 Abr 12 17:49 /usr/lib64/libpcreposix.so.0.0.0

/bin/sh ../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2 -O2 -march=athlon64 -pipe -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common   -Wl,--as-needed -o klamav -R /usr/lib64 -R /usr/kde/3.5/lib64 -R /usr/qt/3/lib64 -R /usr/lib64 -R /usr/kde/3.5/lib64 -L/usr/kde/3.5/lib64 -L/usr/qt/3/lib64 -L/usr/lib64    -L/usr/kde/3.5/lib64  main.o klamav.o freshklam.o sigtool.o klamscan.o klamd.o kuarantine.o aboutklamav.o dbviewer.o frame.o tabwidget.o viewer.o pageviewer.o klamav_run.o directorylist.o scanviewer.o schedule.o datepicker.o cthost.o ctcron.o ctmonth.o ctdom.o ctdow.o cttask.o ctvariable.o ktlistitem.o ktlisttask.o ktlisttasks.o ktview.o ktlistcron.o kticon.o activityviewer.o collectiondb.o configdialog.o k3bjobprogressosd_mod.o update.o dcopklamscan_skel.o archivelimits.o archivetypes.o specialfiletypes.o firstrunwizard.o autoscanoptions.o logoptions.o klamavconfig.o -lkio -lkparts -lkhtml  sqlite/libsqlite.la -lclamav                                                  
libtool: link: cannot find the library `/usr/lib64/libpcreposix.la'

I'll look at it when I have some free time.
Comment 5 Richard Cox 2009-04-12 18:15:17 UTC
(In reply to comment #4)
> I just tested it here and it's dying when trying to link to a missing
> libpcreposix.la - I only have the shared lib.
> 
> lrwxrwxrwx 1 root root    21 Abr 12 17:49 /usr/lib64/libpcreposix.so ->
> libpcreposix.so.0.0.0
> lrwxrwxrwx 1 root root    21 Abr 12 17:49 /usr/lib64/libpcreposix.so.0 ->
> libpcreposix.so.0.0.0
> -rwxr-xr-x 1 root root 10144 Abr 12 17:49 /usr/lib64/libpcreposix.so.0.0.0
> 
> /bin/sh ../libtool --silent --tag=CXX --mode=link x86_64-pc-linux-gnu-g++ 
> -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
> -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -DNDEBUG -DNO_DEBUG -O2
> -O2 -march=athlon64 -pipe -Wformat-security -Wmissing-format-attribute
> -Wno-non-virtual-dtor -fno-exceptions -fno-check-new -fno-common  
> -Wl,--as-needed -o klamav -R /usr/lib64 -R /usr/kde/3.5/lib64 -R
> /usr/qt/3/lib64 -R /usr/lib64 -R /usr/kde/3.5/lib64 -L/usr/kde/3.5/lib64
> -L/usr/qt/3/lib64 -L/usr/lib64    -L/usr/kde/3.5/lib64  main.o klamav.o
> freshklam.o sigtool.o klamscan.o klamd.o kuarantine.o aboutklamav.o dbviewer.o
> frame.o tabwidget.o viewer.o pageviewer.o klamav_run.o directorylist.o
> scanviewer.o schedule.o datepicker.o cthost.o ctcron.o ctmonth.o ctdom.o
> ctdow.o cttask.o ctvariable.o ktlistitem.o ktlisttask.o ktlisttasks.o ktview.o
> ktlistcron.o kticon.o activityviewer.o collectiondb.o configdialog.o
> k3bjobprogressosd_mod.o update.o dcopklamscan_skel.o archivelimits.o
> archivetypes.o specialfiletypes.o firstrunwizard.o autoscanoptions.o
> logoptions.o klamavconfig.o -lkio -lkparts -lkhtml  sqlite/libsqlite.la
> -lclamav                                                  
> libtool: link: cannot find the library `/usr/lib64/libpcreposix.la'
> 
> I'll look at it when I have some free time.
> 

Looks like something is wrong with your installed version of dev-libs/libpcre.  Built fine for me, but I have /usr/lib64/libpcreposix.la.
Comment 6 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2009-04-19 16:26:56 UTC
(In reply to comment #4)
> I just tested it here and it's dying when trying to link to a missing
> libpcreposix.la - I only have the shared lib.

The above was related to an update to libpcre that has since been fixed in the tree.

I bumped klamav locally, was able to fetch the virus database definitions and run it. It seems it found 1 or 2 false viruses, but also found some I didn't knew I had here.
Bumped in the tree.

18:23 <+CIA-38> jmbsvicetto * gentoo-x86/app-antivirus/klamav/ (klamav-0.46.ebuild ChangeLog):
18:23 <+CIA-38> Bumped klamav to 0.46. Thanks to Richard Cox - fixes bug 264887.