Hi Scott,

I found a fix/workaround for your build error:
others.c:970:10: error: storage size of 'maind' isn't known
  STATBUF maind, statbuf;

This is due to STATBUF being defined as 'struct stat64' instead of 'struct stat'. I attached a patch that fixes the issue by disabling stat64, at least it now builds until:
dh_installexamples -pclamav-base
cp: cannot stat 'etc/clamd.conf': No such file or directory
dh_installexamples: cp -a etc/clamd.conf debian/clamav-base/usr/share/doc/clamav-base/examples returned exit code 1
make: *** [clamav-base] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

I hope clamav0.98 will be in sid soon.

Best regards,
Andreas
--- clamav-0.98+dfsg.orig/libclamav/clamav.h
+++ clamav-0.98+dfsg/libclamav/clamav.h
@@ -22,7 +22,7 @@
 #define __CLAMAV_H
 
 /* Certain OSs already use 64bit variables in their stat struct */
-#define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__)
+#define STAT64_BLACKLIST !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(__hurd__)
 
 #if defined(HAVE_STAT64) && STAT64_BLACKLIST
 

Reply via email to