[Linuxtrent] Re: problemi compilazione pyclamav

  • From: Mirco Vivaldi <vivaldi@xxxxxxxxxxxxxxxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Sat, 23 Oct 2004 10:59:26 +0200

On Sat, 23 Oct 2004 00:08:56 +0200
Flavio Visentin <THe_ZiPMaN@xxxxxxxxx> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ricordo che per compilare pyclamav bisogna avere l'ultima release
> dell'antivirus (la 0.80) altrimenti picche.

beh non proprio ecco cosa dice l'autore di pyclamav :

Oh yes, you are using a previous version of clamav (debian : 0.75 I
think) And the name of those two functions as changed between 0.75 and
0.80 in the API.

So change occurences of cl_free by cl_freetrie
and cl_build by cl_buildtrie and you should be done.

diff file should be :

---------------------
57c57
<       cl_free(root); 
---

>>       cl_freetrie(root); 

69c69
<       if((ret = cl_build(root))) {
---

>>       if((ret = cl_buildtrie(root))) {

71c71
<       cl_free(root); 
---

>>       cl_freetrie(root); 

------------------------


>> Tnk
>> 
>> P.S. I change the path of include_dir FROM /usr/local/include into 
>> /usr/include cause i use debian


I need to do some cleanup... I am going to learn how to use
configure to generate proper includes and function names
in order to be compatible with both 0.75 and 0.80 releases.


-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: