ClamAV 0.98.1 released

Hello

I have server Centos 5.8 64bit

when i try to install last version of clamav 0.98.1 - BUG:

CC libclamav_la-line.lo
CC libclamav_la-untar.lo
CC libclamav_la-unzip.lo
CC libclamav_la-inflate64.lo
CC libclamav_la-special.lo
CC libclamav_la-binhex.lo
CC libclamav_la-is_tar.lo
CC libclamav_la-tnef.lo
CC libclamav_la-autoit.lo
CC libclamav_la-unarj.lo
CC libclamav_la-bzlib.lo
CC libclamav_la-nulsft.lo
CC libclamav_la-infblock.lo
CC libclamav_la-pdf.lo
CC libclamav_la-spin.lo
CC libclamav_la-yc.lo
CC libclamav_la-elf.lo
CC libclamav_la-sis.lo
CC libclamav_la-uuencode.lo
CC libclamav_la-phishcheck.lo
CC libclamav_la-phish_domaincheck_db.lo
CC libclamav_la-phish_whitelist.lo
CC libclamav_la-regex_list.lo
CC libclamav_la-regex_suffix.lo
CC libclamav_la-mspack.lo
CC libclamav_la-cab.lo
CC libclamav_la-entconv.lo
CC libclamav_la-hashtab.lo
CC libclamav_la-dconf.lo
CC libclamav_la-lzma_iface.lo
CC libclamav_la-7z_iface.lo
CC libclamav_la-7zAlloc.lo
CC libclamav_la-7zBuf.lo
CC libclamav_la-7zBuf2.lo
CC libclamav_la-7zCrc.lo
CC libclamav_la-7zDec.lo
CC libclamav_la-7zFile.lo
CC libclamav_la-7zIn.lo
CC libclamav_la-7zStream.lo
CC libclamav_la-Bcj2.lo
CC libclamav_la-Bra.lo
CC libclamav_la-Bra86.lo
CC libclamav_la-Lzma2Dec.lo
CC libclamav_la-LzmaDec.lo
CC libclamav_la-Ppmd7.lo
CC libclamav_la-Ppmd7Dec.lo
CC libclamav_la-Xz.lo
CC libclamav_la-XzCrc64.lo
CC libclamav_la-XzDec.lo
CC libclamav_la-XzIn.lo
CC libclamav_la-Delta.lo
CC libclamav_la-BraIA64.lo
CC libclamav_la-CpuArch.lo
CC libclamav_la-7zCrcOpt.lo
CC libclamav_la-explode.lo
CC libclamav_la-textnorm.lo
CC libclamav_la-dlp.lo
CC libclamav_la-js-norm.lo
CC libclamav_la-uniq.lo
GEN version.h.tmp
CC libclamav_la-mpool.lo
CC libclamav_la-filtering.lo
CC libclamav_la-fmap.lo
CC libclamav_la-perflogging.lo
CC libclamav_la-sha256.lo
CC libclamav_la-sha1.lo
CC libclamav_la-bytecode.lo
CC libclamav_la-bytecode_vm.lo
CC libclamav_la-cpio.lo
CC libclamav_la-macho.lo
CC libclamav_la-ishield.lo
CC libclamav_la-bytecode_api.lo
CC libclamav_la-bytecode_api_decl.lo
CC libclamav_la-cache.lo
CC libclamav_la-bytecode_detect.lo
CC libclamav_la-events.lo
CC libclamav_la-adc.lo
CC libclamav_la-dmg.lo
CC libclamav_la-xar.lo
CC libclamav_la-xz_iface.lo
CC libclamav_la-sf_base64decode.lo
CC libclamav_la-hfsplus.lo
CC libclamav_la-swf.lo
CC libclamav_la-jpeg.lo
CC libclamav_la-png.lo
CC libclamav_la-iso9660.lo
CC libclamav_la-arc4.lo
CC libclamav_la-rijndael.lo
CC libclamav_la-crtmgr.lo
CC libclamav_la-asn1.lo
CC libclamav_la-fp_add.lo
CC libclamav_la-fp_add_d.lo
CC libclamav_la-fp_addmod.lo
CC libclamav_la-fp_cmp.lo
CC libclamav_la-fp_cmp_d.lo
CC libclamav_la-fp_cmp_mag.lo
CC libclamav_la-fp_sub.lo
CC libclamav_la-fp_sub_d.lo
CC libclamav_la-fp_submod.lo
CC libclamav_la-s_fp_add.lo
CC libclamav_la-s_fp_sub.lo
CC libclamav_la-fp_radix_size.lo
CC libclamav_la-fp_read_radix.lo
CC libclamav_la-fp_read_signed_bin.lo
CC libclamav_la-fp_read_unsigned_bin.lo
CC libclamav_la-fp_reverse.lo
CC libclamav_la-fp_s_rmap.lo
CC libclamav_la-fp_signed_bin_size.lo
CC libclamav_la-fp_to_signed_bin.lo
CC libclamav_la-fp_to_unsigned_bin.lo
CC libclamav_la-fp_toradix.lo
CC libclamav_la-fp_toradix_n.lo
CC libclamav_la-fp_unsigned_bin_size.lo
CC libclamav_la-fp_cnt_lsb.lo
CC libclamav_la-fp_count_bits.lo
CC libclamav_la-fp_div_2.lo
CC libclamav_la-fp_div_2d.lo
CC libclamav_la-fp_lshd.lo
CC libclamav_la-fp_mod_2d.lo
CC libclamav_la-fp_rshd.lo
CC libclamav_la-fp_div.lo
CC libclamav_la-fp_div_d.lo
CC libclamav_la-fp_mod.lo
CC libclamav_la-fp_mod_d.lo
CC libclamav_la-fp_2expt.lo
CC libclamav_la-fp_exptmod.lo
CC libclamav_la-fp_ident.lo
CC libclamav_la-fp_set.lo
CC libclamav_la-fp_montgomery_calc_normalization.lo
CC libclamav_la-fp_montgomery_reduce.lo
CC libclamav_la-fp_montgomery_setup.lo
CC libclamav_la-fp_mul.lo
CC libclamav_la-fp_mul_comba.lo
CC libclamav_la-fp_mul_2.lo
CC libclamav_la-fp_mul_2d.lo
CC libclamav_la-fp_mul_comba_12.lo
CC libclamav_la-fp_mul_comba_17.lo
CC libclamav_la-fp_mul_comba_20.lo
CC libclamav_la-fp_mul_comba_24.lo
CC libclamav_la-fp_mul_comba_28.lo
CC libclamav_la-fp_mul_comba_3.lo
CC libclamav_la-fp_mul_comba_32.lo
CC libclamav_la-fp_mul_comba_4.lo
CC libclamav_la-fp_mul_comba_48.lo
CC libclamav_la-fp_mul_comba_6.lo
CC libclamav_la-fp_mul_comba_64.lo
CC libclamav_la-fp_mul_comba_7.lo
CC libclamav_la-fp_mul_comba_8.lo
CC libclamav_la-fp_mul_comba_9.lo
CC libclamav_la-fp_mul_comba_small_set.lo
CC libclamav_la-fp_mul_d.lo
CC libclamav_la-fp_mulmod.lo
CC libclamav_la-fp_invmod.lo
CC libclamav_la-fp_sqr.lo
CC libclamav_la-fp_sqr_comba_12.lo
CC libclamav_la-fp_sqr_comba_17.lo
CC libclamav_la-fp_sqr_comba_20.lo
CC libclamav_la-fp_sqr_comba_24.lo
CC libclamav_la-fp_sqr_comba_28.lo
CC libclamav_la-fp_sqr_comba_3.lo
CC libclamav_la-fp_sqr_comba_32.lo
CC libclamav_la-fp_sqr_comba_4.lo
CC libclamav_la-fp_sqr_comba_48.lo
CC libclamav_la-fp_sqr_comba_6.lo
CC libclamav_la-fp_sqr_comba_64.lo
CC libclamav_la-fp_sqr_comba_7.lo
CC libclamav_la-fp_sqr_comba_8.lo
CC libclamav_la-fp_sqr_comba_9.lo
CC libclamav_la-fp_sqr_comba_generic.lo
CC libclamav_la-fp_sqr_comba_small_set.lo
CC libclamav_la-fp_sqrmod.lo
CC libclamav_internal_utils_la-str.lo
CC libclamav_internal_utils_la-iowrap.lo
CC libclamav_internal_utils_la-md5.lo
CC libclamav_internal_utils_la-others_common.lo
CC libclamav_internal_utils_la-qsort.lo
CC libclamav_internal_utils_la-strlcpy.lo
CC libclamav_internal_utils_la-regcomp.lo
CC libclamav_internal_utils_la-regerror.lo
CC libclamav_internal_utils_la-regexec.lo
CC libclamav_internal_utils_la-regfree.lo
CC libclamav_internal_utils_nothreads_la-str.lo
CC libclamav_internal_utils_nothreads_la-iowrap.lo
CC libclamav_internal_utils_nothreads_la-md5.lo
CC libclamav_internal_utils_nothreads_la-others_common.lo
CC libclamav_internal_utils_nothreads_la-qsort.lo
CC libclamav_internal_utils_nothreads_la-strlcpy.lo
CC libclamav_internal_utils_nothreads_la-regcomp.lo
CC libclamav_internal_utils_nothreads_la-regerror.lo
CC libclamav_internal_utils_nothreads_la-regexec.lo
CC libclamav_internal_utils_nothreads_la-regfree.lo
CC bytecode_nojit.lo
CCLD libclamunrar.la
GEN version.h
CC libclamav_la-version.lo
CCLD libclamav_internal_utils.la
CCLD libclamav_nocxx.la
CCLD libclamunrar_iface.la
CCLD libclamav_internal_utils_nothreads.la
CCLD libclamav.la
make[4]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1/libclamav'
make[3]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1/libclamav'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1/libclamav'
Making all in clamscan
make[2]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.1/clamscan'
CC output.o
CC optparser.o
CC getopt.o
CC actions.o
CC clamscan.o
CC misc.o
CC manager.o
CCLD clamscan
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderDepth@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderValue@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderNodeType@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderConstValue@LIBXML2_2.6.0'
../libclamav/.libs/libclamav.so: undefined reference to `xmlStrdup@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderClose@LIBXML2_2.5.0'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderConstLocalName@LIBXML2_2.6.0'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderNext@LIBXML2_2.5.7'
../libclamav/.libs/libclamav.so: undefined reference to `xmlInitParser@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderIsEmptyElement@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlFree@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderRead@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlFreeTextReader@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlStrlen@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlStrEqual@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderLocalName@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderGetAttribute@LIBXML2_2.5.0'
../libclamav/.libs/libclamav.so: undefined reference to `xmlTextReaderReadInnerXml@LIBXML2_2.5.0'
../libclamav/.libs/libclamav.so: undefined reference to `xmlReaderForMemory@LIBXML2_2.6.0'
../libclamav/.libs/libclamav.so: undefined reference to `xmlStrcasecmp@LIBXML2_2.4.30'
../libclamav/.libs/libclamav.so: undefined reference to `xmlStrcmp@LIBXML2_2.4.30'
collect2: ld returned 1 exit status
make[2]: *** [clamscan] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1/clamscan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1'
make: *** [all] Error 2
*** The make has failed, do you want to try to make again? (y,n):

when i click "y" it ask again ...

what i need to do ? hlp !
 
LOL, I had 0.98 fail on al freebsd servers, but succeed on centos, now I have 0.98.1 fail on centos, but succeed on freebsd... :)
 
I have upgraded to ClamAV 0.98.1 on three servers running CentOS 6.5 64bit, and did not have any problems at all.
 
Hmm, seems only the centos 5.9 versions fail (over here).

Edit: 5.x 64bit versions.
 
Last edited:
Same here, but on Debian 6 64 bit.

cat /etc/debian_version = 6.0.8
uname -a = Linux *HOSTNAME* 2.6.32-5-amd64 #1 SMP Mon Sep 23 22:14:43 UTC 2013 x86_64 GNU/Linux

Code:
make[2]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.1/freshclam'
  CCLD   freshclam
/usr/lib64/libxml2.so.2: undefined reference to `gzopen64'
/usr/lib64/libxml2.so.2: undefined reference to `gzdirect@ZLIB_1.2.2.3'
collect2: ld returned 1 exit status
make[2]: *** [freshclam] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1/freshclam'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.1'
make: *** [all] Error 2

Thanks for the solution :)
 
Updated from ClamAV 0.98 to ClamAV 0.98.1 on FreeBSD 9.1 (x64) with no problems.
 
In case it doesn't work using the ./build, try the following:

cd /usr/local/directadmin/custombuild
tar -zxvf clamav-0.98.1.tar.gz
cd clamav-0.98.1
./configure --sysconfdir=/etc
make

If it succeeds, run 'make install'

/etc/init.d/freshclam stop
/etc/init.d/clamd stop

# copy /usr/local/ clamd files to /usr/
cp /usr/local/bin/*clam* /usr/bin
cp /usr/local/sbin/clamd /usr/sbin/clamd

# copy configs to /usr/local/etc/
cp /etc/freshclam.conf /usr/local/etc/freshclam.conf
cp /etc/clamd.conf /usr/local/etc/clamd.conf

# run freshclam to download files
freshclam

# create shared clamav dir and set owner
mkdir /usr/local/share/clamav
chown clamav:clamav /usr/local/share/clamav/

# restart stuff
/etc/init.d/freshclam start
/etc/init.d/clamd start
/etc/init.d/exim restart

This is not the coolest way to do things, but you can remove the clamd files from the /usr/local/ tree and you don't have to figure out what files on your previous libxml install ended up in the wrong places.
With a little luck, the next clamav update with set things straight.
 
Last edited:
Even easier but I'm not 100% if reuqired xml related things will break is to add --disable-xml in the ./configure line in ./build's doclamav function.
This way you can simply run ./build clamav (but without libxml2 support)
 
Even easier but I'm not 100% if reuqired xml related things will break is to add --disable-xml in the ./configure line in ./build's doclamav function.
This way you can simply run ./build clamav (but without libxml2 support)

Do you people have the newest libxml2 installed? Newest version is 2.9.1, but you need to set "new_xml2=yes" in options.conf. Maybe there is a problem with newest ClamAV and older libxml2 versions?

To upgrade libxml2 you also need to recompile libxslt and php, like this:

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set new_xml2 yes
./build libxml2
./build libxslt
./build php n

Related thread: http://forum.directadmin.com/showthread.php?t=44626
 
Last edited:
I tried both the old and the new xml2 versions. Kept getting the same error, so most likely any previously installled updates dropped some include files 'in front' in the PATH which are used when building clamav through ./build.
I also deleted all libxml2 *.h and *.so/a files, reinstalled the new libxml2, libxslt (and php to be sure), but still the make of clamav failed.
 
Same here on Debian 64Bit.

Tried rebuilding clamav but did not help. Also getting:

Code:
clamd[10130]: segfault at 1f4e ip 0000000000001f4e sp 00007fe9d9a18a18 error 14 in clamd[400000+23000]
 
Same here

Experiencing the same problem on CentOs 5.10.
Perhaps it has to do with multiple installations of libxml2?

I recieved the following response after running the commands:
Code:
# locate libxml2.so.2
/usr/lib/libxml2.so.2
/usr/lib/libxml2.so.2.6.26
/usr/lib64/libxml2.so.2
/usr/lib64/libxml2.so.2.6.26
/usr/local/lib/libxml2.so.2
/usr/local/lib/libxml2.so.2.7.6

# stat /usr/local/lib/libxml2.so | head -n1
  File: `/usr/local/lib/libxml2.so' -> `libxml2.so.2.9.1'

# ls -la libxml2*
-rw-rw-r-- 1 root root 5172503 May 13  2013 [COLOR="#FF0000"]libxml2-2.9.1.tar.gz[/COLOR]

I'm no expert, but I suppose this means I have multiple installs and te older versions is used?

Hope this helps
 
Here are what I did
Code:
rm /usr/lib64/libxml2.so.2
ln -s /usr/local/lib/libxml2.so.2.9.1 /usr/lib64/libxml2.so.2

then compile clamav. After that, need to create symbolic link again for freshclam restarting without warning.
 
Thanks for sharing.

This workaround worked well but after ClamAV install you need to remove the symlink that get re-created during installation, so, the command list would be:

Code:
rm /usr/lib64/libxml2.so.2
/usr/local/directadmin/custombuild/build clamav
rm /usr/lib64/libxml2.so.2
ln -s /usr/local/lib/libxml2.so.2.9.1 /usr/lib64/libxml2.so.2

Regards
 
Still no luck

Thanks for sharing.

This workaround worked well but after ClamAV install you need to remove the symlink that get re-created during installation, so, the command list would be:

Code:
rm /usr/lib64/libxml2.so.2
/usr/local/directadmin/custombuild/build clamav
rm /usr/lib64/libxml2.so.2
ln -s /usr/local/lib/libxml2.so.2.9.1 /usr/lib64/libxml2.so.2

Regards

I tried this aswell however I get the following errors:
Code:
/usr/local/lib/libxml2.so.2: undefined reference to `gzdirect@ZLIB_1.2.2.3'
/usr/local/lib/libxml2.so.2: undefined reference to `gzopen64@ZLIB_1.2.3.3'
collect2: ld returned 1 exit status
make[2]: *** [clamscan] Error 1
Which are the same (or similar) to the ones in this topic:
http://forum.directadmin.com/showthread.php?t=48168
 
Back
Top