[clamav-users] Libclamav :: Issue with version 0.98.4 on FC20 - Can't load /usr/local/share/clamav/daily.cvd: Can't allocate memory
Paul Kosinski
clamav at iment.com
Sat Aug 9 03:13:45 UTC 2014
> Date: 8 Aug 2014 12:44:39 -0000
> From: "Chinmay Mahata" <chinmay_mahata at rediffmail.com>
> Subject: [clamav-users] Libclamav :: Issue with version 0.98.4 on FC20
> Can't load /usr/local/share/clamav/daily.cvd: Can't allocate memory
> Hi,
> I need to use clamav library in one of my
> modules. I downloaded latest version of clamav (clamav-0.98.tar.gz)
> and installed on my system FC-20. Then I built the code in example
> directory and tired to test my installation.
>
> But getting some error "LibClamAV Error: Can't
> load /usr/local/share/clamav/daily.cvd: Can't allocate memory".
This sound like the problem I had a few weeks ago, where HAVP's use of
libclamav didn't work, reporting "out of memory".
The problem turned out to be that libclamav's initialization mechanism
didn't itself initialize OpenSSL, which ClamAV now (unfortunately) needs.
The following patch to HAVP worked for me, and might be a guide to
fixing your use of libclamav:
diff -c clamlibscanner.cpp clamlibscanner.cpp.orig
*** clamlibscanner.cpp
--- clamlibscanner.cpp.orig
***************
*** 27,40 ****
if (LL>2) cl_debug();
#ifdef CL_INIT_DEFAULT
-
- /* PRK 6 Jul 2014 - added to work around ClamAV change */
- if ( (ret = cl_initialize_crypto()) != 0 )
- {
- printf("ClamAV: cl_initialize_crypto() error: %s\n", cl_strerror(ret));
- return false;
- }
-
if ( (ret = cl_init(CL_INIT_DEFAULT)) != CL_SUCCESS )
{
printf("ClamAV: cl_init() error: %s\n", cl_strerror(ret));
--- 27,32 ----
Diff finished. Wed Jul 9 12:13:10 2014
More information about the clamav-users
mailing list