HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 15 posts ] 
Author Message
PostPosted: 14 Feb 2007 17:43 
Offline

Joined: 14 Feb 2007 17:33
Posts: 9
when i try install HAVP with clamav-0.90 i get the error:

root@server:/usr/local/havp-0.84# make
cd havp && make
make[1]: Entering directory `/usr/local/havp-0.84/havp'
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o helper.o helper.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o logfile.o logfile.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o scannerhandler.o scannerhandler.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o connectiontobrowser.o connectiontobrowser.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o genericscanner.o genericscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o httphandler.o httphandler.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o params.o params.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o sockethandler.o sockethandler.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o connectiontohttp.o connectiontohttp.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o havp.o havp.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o proxyhandler.o proxyhandler.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o utils.o utils.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o whitelist.o whitelist.cpp
cd scanners && make
make[2]: Entering directory `/usr/local/havp-0.84/havp/scanners'
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o avgscanner.o avgscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o f-protscanner.o f-protscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o kasperskyscanner.o kasperskyscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o nod32scanner.o nod32scanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o clamdscanner.o clamdscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o sophiescanner.o sophiescanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o avastscanner.o avastscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o arcavirscanner.o arcavirscanner.cpp
g++ -I/usr/include -Wall -O2 -DHAVE_CONFIG_H -c -o clamlibscanner.o clamlibscanner.cpp
clamlibscanner.cpp: In member function `virtual bool ClamLibScanner::InitDatabase()':
clamlibscanner.cpp:32: error: `cl_loaddbdir' was not declared in this scope
clamlibscanner.cpp:32: warning: unused variable 'cl_loaddbdir'
clamlibscanner.cpp: In member function `virtual bool ClamLibScanner::ReloadDatabase()':
clamlibscanner.cpp:68: error: `cl_loaddbdir' was not declared in this scope
clamlibscanner.cpp:68: warning: unused variable 'cl_loaddbdir'
make[2]: *** [clamlibscanner.o] Error 1
make[2]: Leaving directory `/usr/local/havp-0.84/havp/scanners'
make[1]: *** [havp] Error 2
make[1]: Leaving directory `/usr/local/havp-0.84/havp'
make: *** [all] Error 2
root@server:/usr/local/havp-0.84#

when i use clamav-0.87 i don't have any errors....


anybody help?


Top
 Profile  
 
 Post subject:
PostPosted: 14 Feb 2007 18:38 
Offline

Joined: 02 Nov 2006 11:17
Posts: 7
In the 0.90 the don't exist cl_loaddbdir (line 199 of clamav.h version 0.88.7)
The new definition is located into clamav.h (version 0.90) line 235.

The information are also inserted into the changelog:

Sat Nov 12 02:25:03 CET 2005 (tk)
---------------------------------
* libclamav/readdb.c: add cl_load(), successor of cl_loaddb and cl_loaddbdir


Top
 Profile  
 
 Post subject:
PostPosted: 14 Feb 2007 19:12 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
Yes it's a simple fix.. I'm amazed they didn't keep the old cl_loaddbdir supported as wrapper.


--- clamlibscanner.cpp.orig 2007-02-14 18:10:48.000000000 +0200
+++ clamlibscanner.cpp 2007-02-14 18:11:02.000000000 +0200
@@ -29,7 +29,7 @@

LogFile::ErrorMessage("ClamAV: Using database directory: %s\n", dbdir);

- if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )
+ if ( (ret = cl_load(dbdir, &root, &no, CL_DB_STDOPT)) != 0 )
{
LogFile::ErrorMessage("ClamAV: Could not load database: %s\n", cl_strerror(ret));
return false;
@@ -65,7 +65,7 @@

cl_settempdir(Params::GetConfigString("TEMPDIR").c_str(), 0);

- if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )
+ if ( (ret = cl_load(dbdir, &root, &no, CL_DB_STDOPT)) != 0 )
{
LogFile::ErrorMessage("ClamAV: Could not reload database: %s\n", cl_strerror(ret));
return false;


Top
 Profile  
 
 Post subject:
PostPosted: 20 Feb 2007 22:59 
Offline

Joined: 20 Feb 2007 22:13
Posts: 2
Please, how to exactly apply this patch ?

I am ussing Slackware and I can´t to go across the compilation.

Thanks a lot.


Top
 Profile  
 
 Post subject:
PostPosted: 20 Feb 2007 23:02 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
You can either save that in a file where clamlibscanner.cpp is located and run "patch < thepatchfile".

Or just easier: edit clamlibscanner.cpp quickly and remove lines with - and add the + lines ;)


Top
 Profile  
 
 Post subject:
PostPosted: 20 Feb 2007 23:21 
Offline

Joined: 20 Feb 2007 22:13
Posts: 2
It´s working, thanks a lot.

HAVP is the best. (I am using together with squid) :lol:


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 19:04 
Offline

Joined: 21 Feb 2007 18:58
Posts: 5
hi
i've got the same problem with clamav 090 :(
but i wasn't able to patch the file successfully:

Quote:
# patch < patch
patching file clamlibscanner.cpp
patch: **** malformed patch at line 5: LogFile::ErrorMessage("ClamAV: Using database directory: %s\n", dbdir);


can you tell me what is the problem and what should i do?
thanks a lot in advance


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 19:15 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
Try http://havp.hege.li/download/clamav-0.90.patch - maybe you didn't paste it properly.

Or just do like I said before: edit yourself and replace - lines with + ones.


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 20:22 
Offline

Joined: 21 Feb 2007 18:58
Posts: 5
ohhhh i've got the same error with patch < clamav-0.90.patch

and the problem is that i dont have the lines
Quote:
- if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )

and
Quote:
- if ( (ret = cl_loaddbdir(dbdir, &root, &no)) != 0 )

in my clamlibscanner.cpp
Is that possible :?:


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 20:42 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
If you have old version? Go get 0.84 :)


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 21:11 
Offline

Joined: 21 Feb 2007 18:58
Posts: 5
ive got 084 :lol:

Is it the right one? I could not find not
Code:
LogFile::ErrorMessage("ClamAV: Using database directory: %s\n", dbdir);
nor
Code:
cl_settempdir(Params::GetConfigString("TEMPDIR").c_str(), 0);


:oops: :oops: sorry 4 being annoing :roll:


Last edited by yasuka on 21 Feb 2007 22:02, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 21:13 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
You are looking at clamdscanner and not clamlibscanner.. ;)


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 21:39 
Offline

Joined: 21 Feb 2007 18:58
Posts: 5
:lol: thanks, i was so heedless :wink:

anyway it looks like problems are not going to vanish :(

Quote:
cd scanners && make
make[2]: Entering directory `/home2/tmp/havp-0.84/havp/scanners'
g++ -I/usr/local/include -Wall -O2 -DHAVE_CONFIG_H -c -o clamlibscanner.o clamlibscanner.cpp
clamlibscanner.cpp: In member function ‘virtual bool ClamLibScanner::ReloadDatabase()’:
clamlibscanner.cpp:69: error: ‘cl_loaddbdir’ was not declared in this scope


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 21:54 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
So there is still cl_loaddbdir in the file. You need to replace it..


Top
 Profile  
 
 Post subject:
PostPosted: 21 Feb 2007 22:01 
Offline

Joined: 21 Feb 2007 18:58
Posts: 5
hege, thanks a lot! you've been really helpful and patient :wink:

everything's fine now :idea: :lol:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group