Richard Feldmann wrote:
> Hi List,
>
> Been digging in this for a while and I can't get mod_clamav
> to work with apache. It looks like the cl_perror function
> which was removed from clamav in November 2005 is still used
> by mod_clamav (version 0.21 is the latest I found), and
> apache barfs on it when I try to use it.
>
> It errors with:
>
> Cannot load /usr/lib/apache/mod_clamav.so into server:
> /usr/lib/apache/mod_clamav.so: undefined symbol: cl_perror
>
> My question is, what replaced cl_perror so that I can modify
> mod_clamav to get it working. Or, is there a better http
> scanning option using clamav with apache? Or is http virus
> scanning a waste of time, etc? I guess that was three questions. :)
Hi Richard,
after updating to the newest 0.90 release of clamav I've got the
same problem :-)
My solution was to patch mod_clamav:
--- snip ---
--- mod_clamav.c.org 2004-04-29 00:48:43.000000000 +0200
+++ mod_clamav.c 2007-02-15 09:35:22.000000000 +0100
@@ -68,4 +68,21 @@
#define MOD_CLAMAV_FAILED_STATUS "failed"
+const char *cl_perror(int clerror) /* deprecated */
+{
+ return cl_strerror(clerror);
+}
+
+void cl_freetrie(struct cl_node *root) /* for backward compatibility */
+{
+ cl_free(root);
+}
+
+int cl_buildtrie(struct cl_node *root) /* for backward compatibility */
+{
+ return cl_build(root);
+}
+
module AP_MODULE_DECLARE_DATA clamav_module;
--- snip ---
Seems to work so far...
Hope this helps,
Wolfgang
--
Wolfgang Cernohorsky Email: [EMAIL PROTECTED]
ZID, Abt. Kommunikation WWW: http://www.vu-wien.ac.at/
Vet.Med.Univ. Wien Phone: +43-1-25077 /1602 Fax: /1690
Veterinaerplatz 1
A-1210 Vienna, Austria
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html