Subject: re: pkg/31409
To: None <grant@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Carl Brewer <carl@bl.echidna.id.au>
List: pkgsrc-bugs
Date: 10/11/2005 01:09:02
The following reply was made to PR pkg/31409; it has been noted by GNATS.

From: Carl Brewer <carl@bl.echidna.id.au>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: re: pkg/31409
Date: Tue, 11 Oct 2005 11:07:50 +1000

 I found the problem.  The compiler on 1.6.2 doesn't like this (line 3444
 of clamav-milter.c)
 
 clamd_recv(int sock, char *buf, size_t len)
 {
          fd_set rfds;
          struct timeval tv;
 
          assert(sock >= 0);
          int ret;
 
 
 
 
 It seems to want ret to be declared before the assert for
 sock is done.
 
 If I hack that file and shift int ret; to be before the assert,
 it compiles ok and seems to work fine.
 
 Can this be added to a patch for the code etc?  I'm going to
 submit it as a bug to the clamav authors too, but in the
 meantime...