From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 13 09:40:01 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 269AB1065673 for ; Fri, 13 Feb 2009 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 017A68FC18 for ; Fri, 13 Feb 2009 09:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1D9e0m7024814 for ; Fri, 13 Feb 2009 09:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1D9e0l8024813; Fri, 13 Feb 2009 09:40:00 GMT (envelope-from gnats) Resent-Date: Fri, 13 Feb 2009 09:40:00 GMT Resent-Message-Id: <200902130940.n1D9e0l8024813@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tofig Suleymanov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03B33106564A for ; Fri, 13 Feb 2009 09:32:58 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id C9DED8FC0C for ; Fri, 13 Feb 2009 09:32:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1D9WvJ6007447 for ; Fri, 13 Feb 2009 09:32:57 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1D9WvMr007446; Fri, 13 Feb 2009 09:32:57 GMT (envelope-from nobody) Message-Id: <200902130932.n1D9WvMr007446@www.freebsd.org> Date: Fri, 13 Feb 2009 09:32:57 GMT From: Tofig Suleymanov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/131632: www/c-icap + latest clamav does not compile X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Feb 2009 09:40:01 -0000 >Number: 131632 >Category: misc >Synopsis: www/c-icap + latest clamav does not compile >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 13 09:40:00 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Tofig Suleymanov >Release: FreeBSD 7.0-RELEASE-p4 >Organization: BP >Environment: gw# uname -a FreeBSD gw 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #1: Wed Sep 24 23:39:08 AZST 2008 root@gw:/usr/obj/usr/src/sys/GW i386 gw# >Description: www/c-icap is marked broken most probably because of problems compiling with latest versions of security/clamav. According to the clamav changelog, the cl_load() function was introduced as a successor of cl_loaddb() and cl_loaddbdir() starting from Sat, Nov 12, 2005. www/c-icap in its turn still tries to use cl_loaddbdir() which leads to compile-time errors. >How-To-Repeat: In order to repeat the problem just try to compile www/c-icap. >Fix: Patch file attached below utilizes cl_load() function instead old cl_loaddbdir() so that compilation finishes fine. Place the patch to port's root directory: www/c-icap and do patch < c_icap.patch.txt Patch attached with submission follows: diff -ruN work/c_icap-030606rc1/services/clamav/srv_clamav.c work.patched/c_icap-030606rc1/services/clamav/srv_clamav.c --- work/c_icap-030606rc1/services/clamav/srv_clamav.c 2006-06-06 22:08:13.000000000 +0500 +++ work.patched/c_icap-030606rc1/services/clamav/srv_clamav.c 2009-02-13 11:33:57.000000000 +0400 @@ -137,17 +137,18 @@ int srvclamav_init_service(service_module_t *this,struct icap_server_conf *server_conf){ - int ret,no=0,i; + int ret,i; + unsigned int no = 0; + unsigned int options = 0; + options = options & CL_DB_STDOPT; magic_db=server_conf->MAGIC_DB; scantypes=(int *)malloc(ci_magic_types_num(magic_db)*sizeof(int)); scangroups=(int *)malloc(ci_magic_groups_num(magic_db)*sizeof(int)); for(i=0;iRelease-Note: >Audit-Trail: >Unformatted: