ClamAV: Missing *.cvd files and undefined references
Submitted by Bram Schoenmakers on 10 September, 2008 - 10:23.
At a certain point, ClamAV 0.93 was not running anymore and complained with the following message as soon as you tried to start it:
Missing /var/db/clamav/clamav/*.cvd files. You must run a freshclam first.
It appears that the quickest solution is to update ClamAV to 0.93.3 or higher. However, compiling ClamAV 0.93.3 on a FreeBSD 6.1 machine (or earlier) causes the following error:
undefined reference to `gethostbyname_r'
It appears that at the moment of writing, FreeBSD 5.x support was removed from the security/clamav port. Apply the following tiny patch to the Makefile in order to make the compilation succeed:
--- Makefile.orig Wed Sep 10 10:15:02 2008
+++ Makefile Wed Sep 10 10:17:32 2008
@@ -46,7 +46,6 @@
--disable-clamav \
--enable-bigstack \
--enable-readdir_r \
- --enable-gethostbyname_r \
--disable-dependency-tracking
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
+++ Makefile Wed Sep 10 10:17:32 2008
@@ -46,7 +46,6 @@
--disable-clamav \
--enable-bigstack \
--enable-readdir_r \
- --enable-gethostbyname_r \
--disable-dependency-tracking
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}