ClamAV 0.99.3

There is a global attack on ClamAV <0.99.3 currently, You can install updated version by force:

Code:
cd /usr/local/directadmin/custombuild
./build update
wget https://www.clamav.net/downloads/production/clamav-0.99.3.tar.gz
sed -i 's/clamav:0.99.2:61b51a04619aeafd965892a53f86d192/clamav:0.99.3:5272f127312e987b3e10c155cf1d84df/' versions.txt
./build clamav
 
Same issues here, lot's of errors in the daily scan log like this;

WARNING: Can't open file /var/log/secure: Too many open files

It's still not on files1, I have opened a ticket to add it as soon as possible.
 
Sorry, corrected version:
Code:
cd /usr/local/directadmin/custombuild
./build update
wget https://www.clamav.net/downloads/production/clamav-0.99.3.tar.gz
echo "clamav:0.99.3:5272f127312e987b3e10c155cf1d84df" >> custom_versions.txt
./build clamav
 
Also, please remember to remove clamd from custom_versions.txt when official one will be out.
 
Encountered an error during compilation:
Code:
cant open ./lib/config.h no such file or directory
but did compile without any further errors as far as I could see. Can this one be safely ignored?
 
Same thing here using CB 1823, also compiled without any further errors and running without any problems. Same thing with the Curl 7.58.0 update. Is this just a bug in CB and can it be ignored?:)
 
Last edited:
Here it works now! Can you check which GCC version is installed there?

Debian 9 (Stretch):

ii gcc 4:6.3.0-4 amd64 GNU C compiler
ii gcc-6 6.3.0-18 amd64 GNU C compiler
ii gcc-6-base:amd64 6.3.0-18 amd64 GCC, the GNU Compiler Collection (base package)
ii libgcc-6-dev:amd64 6.3.0-18 amd64 GCC support library (development files)
ii libgcc1:amd64 1:6.3.0-18 amd64 GCC support library

Debian 8 (Jessie):

ii gcc 4:4.9.2-2 amd64 GNU C compiler
ii gcc-4.9 4.9.2-10 amd64 GNU C compiler
ii gcc-4.9-base:amd64 4.9.2-10 amd64 GCC, the GNU Compiler Collection (base package)
ii libgcc-4.9-dev:amd64 4.9.2-10 amd64 GCC support library (development files)
ii libgcc1:amd64 1:4.9.2-10 amd64 GCC support library

This is not allowed:

ii gcc 4:6.3.0-4 amd64 GNU C compiler
ii gcc-4.9 4.9.2-10 amd64 GNU C compiler
ii gcc-4.9-base:amd64 4.9.2-10 amd64 GCC, the GNU Compiler Collection (base package)
ii libgcc-4.9-dev:amd64 4.9.2-10 amd64 GCC support library (development files)
ii gcc-6 6.3.0-18 amd64 GNU C compiler
ii gcc-6-base:amd64 6.3.0-18 amd64 GCC, the GNU Compiler Collection (base package)
ii libgcc-6-dev:amd64 6.3.0-18 amd64 GCC support library (development files)
ii libgcc1:amd64 1:6.3.0-18 amd64 GCC support library

If you have that under "This is not allowed", please removed only the old gcc-4.9* version. That was the solution here!

Edit: New problem after removing gcc-4.9*, I can't build pcre. I am again in contact with DirectAdmin.
 
Last edited:
Centos 6.9 Final:
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) (base package).
Does that help? Yum update does not give a newer one.
 
ClamAV install error

I get the following error while installing ClamAV

cd /usr/local/directadmin/custombuild
./build update
wget https://www.clamav.net/downloads/production/clamav-0.99.3.tar.gz
echo "clamav:0.99.3:5272f127312e987b3e10c155cf1d84df" >> custom_versions.txt
./build clamav


2018-01-31 17:15:25 (49.4 KB/s) - '/etc/exim.clamav.conf' saved [828/828]

Installing clamav 0.99.3-beta1 ...
*** Cannot find /usr/local/directadmin/custombuild/clamav-0.99.3-beta1.tar.gz. Aborting ***
 
Centos 6.9 Final:
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) (base package).
Does that help? Yum update does not give a newer one.

Do you not see other versions? (as installed)


I get the following error while installing ClamAV

cd /usr/local/directadmin/custombuild
./build update
wget https://www.clamav.net/downloads/production/clamav-0.99.3.tar.gz
echo "clamav:0.99.3:5272f127312e987b3e10c155cf1d84df" >> custom_versions.txt
./build clamav


2018-01-31 17:15:25 (49.4 KB/s) - '/etc/exim.clamav.conf' saved [828/828]

Installing clamav 0.99.3-beta1 ...
*** Cannot find /usr/local/directadmin/custombuild/clamav-0.99.3-beta1.tar.gz. Aborting ***

Can you do this?

cd /usr/local/directadmin/custombuild/
rm -f /usr/local/directadmin/custombuild/custom_versions.txt
./build update
rm -f /usr/local/directadmin/custombuild/clamav-0.99.3.tar.gz
wget https://www.clamav.net/downloads/production/clamav-0.99.3.tar.gz
echo "clamav:0.99.3:5272f127312e987b3e10c155cf1d84df" >> custom_versions.txt

I think you installed the beta for this install?
 
thanks. that helped.
Now I got a new errors:

==========
^
Makefile:2077: recipe for target 'libclamavcxx_la-ClamBCRTChecks.lo' failed
make[5]: *** [libclamavcxx_la-ClamBCRTChecks.lo] Error 1
Makefile:2070: recipe for target 'libclamavcxx_la-bytecode2llvm.lo' failed
make[5]: *** [libclamavcxx_la-bytecode2llvm.lo] Error 1
make[5]: Leaving directory '/usr/local/directadmin/custombuild/clamav-0.99.3/libclamav/c++'
Makefile:1469: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/usr/local/directadmin/custombuild/clamav-0.99.3/libclamav/c++'
Makefile:3376: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/usr/local/directadmin/custombuild/clamav-0.99.3/libclamav'
Makefile:1089: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/usr/local/directadmin/custombuild/clamav-0.99.3/libclamav'
Makefile:675: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/usr/local/directadmin/custombuild/clamav-0.99.3'
Makefile:503: recipe for target 'all' failed
make: *** [all] Error 2

*** The make has failed, do you want to try to make again? (y,n):
 
ClamAV 0.99.3 (all previous beta's for 0.99.3 are renamed because of the security patch to 0.100.0, that version is coming next) is available normally in CB so you don't need to use the custom_versions.txt at all. Just remove (if it exists) clamav in custom_versions.txt, remove any old .tar files for clamav and do ./build update & ./build clamav. :)
 
Back
Top