[prev in list] [next in list] [prev in thread] [next in thread] 

List:       clamav-users
Subject:    Re: [clamav-users] =?utf-8?q?Libclamav_=3A=3A_Issue_with_version_0=2E?=
From:       "Chinmay  Mahata" <chinmay_mahata () rediffmail ! com>
Date:       2014-08-12 9:57:54
Message-ID: 1407554053.S.7920.10451.F.H.TlBhdWwgS29zaW5za2kAUmU6IFtjbGFtYXYtdXNlcnNdIExpYmNsYW1hdiA6OiBJc3N1ZSB3aXRoIHZlcnM_.RU.rfs293, rfs293, 218, 395.f5-147-157.old.1407837474.7522 () webmail ! rediffmail ! com
[Download RAW message or body]

Hi Paul,
&nbsp;&nbsp;&nbsp;&nbsp; Thanks you very much for mail and the patch. I will put this \
patch in the example code and test it.

Best regards,
--Chinmay




From: Paul Kosinski &lt;clamav@iment.com&gt;
Sent: Sat, 09 Aug 2014 08:44:13 
To: clamav-users@lists.clamav.net
Subject: Re: [clamav-users] Libclamav :: Issue with version 0.98.4 on FC20 - Can't \
load /usr/local/share/clamav/daily.cvd: Can't allocate memory &gt; Date: 8 Aug 2014 \
12:44:39 -0000

&gt; From: "Chinmay &nbsp;Mahata" &lt;chinmay_mahata@rediffmail.com&gt;

&gt; Subject: [clamav-users] Libclamav ::&nbsp;Issue with version 0.98.4 on FC20

&gt; &nbsp; Can't load /usr/local/share/clamav/daily.cvd: Can't allocate memory

&gt; Hi,

&gt; I need to use clamav library in one of my

&gt; modules. I downloaded latest version of clamav (clamav-0.98.tar.gz)

&gt; and installed on my system FC-20. Then I built the code in example

&gt; directory and tired to test my installation. 

&gt; 

&gt; But getting some error "LibClamAV Error: Can't

&gt; 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:



 &nbsp;diff -c &nbsp;clamlibscanner.cpp &nbsp;clamlibscanner.cpp.orig

 &nbsp;*** clamlibscanner.cpp

 &nbsp;--- clamlibscanner.cpp.orig

 &nbsp;***************

 &nbsp;*** 27,40 ****

 &nbsp; &nbsp; &nbsp; &nbsp;if (LL&gt;2) cl_debug();

 &nbsp;

 &nbsp; &nbsp;#ifdef CL_INIT_DEFAULT

 &nbsp;- 

 &nbsp;- &nbsp; &nbsp; /* PRK 6 Jul 2014 - added to work around ClamAV change */

 &nbsp;- &nbsp; &nbsp; if ( (ret = cl_initialize_crypto()) != 0 )

 &nbsp;- &nbsp; &nbsp; {

 &nbsp;- &nbsp; &nbsp; &nbsp; &nbsp; printf("ClamAV: cl_initialize_crypto() error: \
%s\n", cl_strerror(ret));

 &nbsp;- &nbsp; &nbsp; &nbsp; &nbsp; return false;

 &nbsp;- &nbsp; &nbsp; }

 &nbsp;- 

 &nbsp; &nbsp; &nbsp; &nbsp;if ( (ret = cl_init(CL_INIT_DEFAULT)) != CL_SUCCESS )

 &nbsp; &nbsp; &nbsp; &nbsp;{

 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;printf("ClamAV: cl_init() error: %s\n", \
cl_strerror(ret));

 &nbsp;--- 27,32 ----



 &nbsp;Diff finished. &nbsp;Wed Jul &nbsp;9 12:13:10 2014

_______________________________________________

Help us build a comprehensive ClamAV guide:

https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/support/ml

_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic