ClamAV 0.98.5 released

Serious problem with update of clamav, clamd will not start and when running freshclam as recommended in clamav site the following error is obtained:
Code:
ERROR: This tool requires libclamav with functionality level 79 or higher (current f-level: 77)
Unfortunately I had to return to the previous version using the procedure explained in the knowledgebase article: 'How to override the version of one item with CustomBuild 2.0'
Code:
cd /usr/local/directadmin/custombuild
echo "clamav:0.98.4:" > custom_versions.txt
./build clamav
Has anyone else had this problem?
 
Last edited:
Yes I had the same problem. You have to remove all old versions of libclamav.so.6 before running "make install".

This is what I got when I ran make install without removing old versions:
lrwxrwxrwx 1 root staff 19 Nov 19 11:14 libclamav.so.6 -> libclamav.so.6.1.23
-rwxr-xr-x 1 root staff 18120175 Nov 19 11:14 libclamav.so.6.1.22
-rwxr-xr-x 1 root staff 18012678 Jun 19 10:16 libclamav.so.6.1.23

This is what I got after:
lrwxrwxrwx 1 root staff 19 Nov 19 11:16 libclamav.so -> libclamav.so.6.1.22
lrwxrwxrwx 1 root staff 19 Nov 19 11:16 libclamav.so.6 -> libclamav.so.6.1.22
-rwxr-xr-x 1 root staff 18120175 Nov 19 11:16 libclamav.so.6.1.22

Now it starts but some other files seems affected, too:
lrwxrwxrwx 1 root staff 28 Nov 19 11:16 libclamunrar_iface.so -> libclamunrar_iface.so.6.1.22
lrwxrwxrwx 1 root staff 28 Nov 19 11:16 libclamunrar_iface.so.6 -> libclamunrar_iface.so.6.1.23
-rwxr-xr-x 1 root staff 34687 Nov 19 11:16 libclamunrar_iface.so.6.1.22
-rwxr-xr-x 1 root staff 34695 Jun 19 10:16 libclamunrar_iface.so.6.1.23
lrwxrwxrwx 1 root staff 22 Nov 19 11:16 libclamunrar.so -> libclamunrar.so.6.1.22
lrwxrwxrwx 1 root staff 22 Nov 19 11:16 libclamunrar.so.6 -> libclamunrar.so.6.1.23
-rwxr-xr-x 1 root staff 212995 Nov 19 11:16 libclamunrar.so.6.1.22
-rwxr-xr-x 1 root staff 212995 Jun 19 10:16 libclamunrar.so.6.1.23

So a quick guess is that the older version of clamav used the version number 1.23 and the new one uses 1.22 and the install script links to the highest version number?
 
Apparently this fixes the problem, but what worries me is what happens to the other libraries that have the same problem as mentioned 'hanne' in the previous message.

If the correct way to install from source is to do a 'make uninstall' first, as advised in the clamav website, I wonder if it would be wise to follow his instructions and incorporate it in custombuild to avoid these problems
 
They're just used for "--unrar" functionality, of course you can remove them too:
Code:
rm -f /usr/local/lib64/libclamunrar*
 
clamd: /usr/local/sbin/clamd: unrecognized option `--nofork=yes
centos 7
 
clamd: /usr/local/sbin/clamd: unrecognized option `--nofork=yes
centos 7

It happened because ClamAV changed their code in optparser.c. Temporary fix:
Code:
cd /usr/local/directadmin/custombuild
./build update
perl -pi -e 's/TYPE_BOOL/CLOPT_TYPE_BOOL/' configure/systemd/dependencies/clamd_nofork.patch
./build clamav
 
@smtalk, Regarding your reply #4 in this thread: Please update this thread when the fix for clamav is added to custombuild. Thanks.
 
@smtalk, Regarding your reply #4 in this thread: Please update this thread when the fix for clamav is added to custombuild. Thanks.

Latest versions (CB 2.0 rev 1130 and CB 1.2) already have the fix included. They were uploaded to files1 yesterday, so all of the mirrors should have the fix already :)
 
I performed this update today (after running ./build update) and I still received the error mentioned in the OP.

Code:
Restarting freshclam.
Shutting down freshclam:                                   [  OK  ]
Starting freshclam: ERROR: This tool requires libclamav with functionality level 79 or higher (current f-level: 77)
                                                           [FAILED]
Restarting clamd.
Shutting down clamd:                                       [  OK  ]
Starting clamd: ERROR: This tool requires libclamav with functionality level 79 or higher (current f-level: 77)
                                                           [FAILED]
Restarting exim.
Shutting down exim: 
Starting exim: 
Done ClamAV.
 
Please try the latest version of CB 1.2:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build clamav
 
It happened because ClamAV changed their code in optparser.c. Temporary fix:
Code:
cd /usr/local/directadmin/custombuild
./build update
perl -pi -e 's/TYPE_BOOL/CLOPT_TYPE_BOOL/' configure/systemd/dependencies/clamd_nofork.patch
./build clamav

With ClamAV 0.99.2, the issue is still remaining. Even the temporary fix still works, can you make permanent patch please?

Thanks.
 
The patch is not used anymore, because ClamAV included "foreground" support to their packages by default for systemd.
 
Back
Top