Subject: Re: Clamav
To: BETO <beto@bonbon.net>
From: David Ferlier <david@netbsd-fr.org>
List: netbsd-users
Date: 03/11/2003 17:30:09
On Tue, Mar 11, 2003 at 03:41:47PM +0000, BETO wrote:
> Hello, this is my problem
> 
> #./configure 		-- ok
> #make			-- nop
> 
> zziplib/zzip-file.c: In function `zzip_file_open':
> zziplib/zzip-file.c:116: `strcasecmp' undeclared (first use in this function)
> zziplib/zzip-file.c:116: (Each undeclared identifier is reported only once
> zziplib/zzip-file.c:116: for each function it appears in.)
> *** Error code 1
> 
> Stop.
> make: stopped in /usr/src/mail/clamav-0.54/libclamav
> *** Error code 1
> 
> Which is the problem ???

Easy. If you watch closely, in libclamav there's a strings.h. They pass -I. to
gcc, so the strings.h in libclamav gets included, and it doesn't have
strcasecmp. So the quick hack is to remove strings.h, and add #include
<strings.h> to zziplib/zzip-{file,stat}.c.

Anyway, i'm doing the pkgsrc right now.

David

> 
> 
> Thanks
> 

-- 
	David Ferlier -- david@netbsd-fr.org

    http://happy-hacking.homeunix.org     (IPV4)  ||
    http://cobaye.segfault.quatriemek.com (IPV6)