After downloading ClamAV 0.98 I tried to compile it, but I got this error,

In file included from 7z/LzmaDec.h:7,
                 from lzma_iface.h:26,
                 from upx.c:59:
7z/Types.h:58: redefinition of `Byte'
/usr/local/include/zconf.h:368: `Byte' previously declared here
make[4]: *** [libclamav_la-upx.lo] Error 1
make[4]: Leaving directory `/home/clamav/clamav-0.98/libclamav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/clamav/clamav-0.98/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/clamav/clamav-0.98/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/clamav/clamav-0.98'
make: *** [all] Error 2


Here's what I'm using,

gcc version 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

./configure --enable-bigstack --enable-readdir_r --with-zlib=/usr/local 
--with-libcurl --enable-no-cache --enable-milter --enable-dns-fix 
--enable-clamdtop

I tried this work around, which allowed me to compile it,

(in clamav-0.98/libclamav/7z/Types.h line 59)

replaced this,
typedef unsigned char Byte;

with this,
#define Byte unsigned char

I don't know if it's safe to use, so I held off installing it.  Also, I didn't 
have any problems compiling the previous version of ClamAV (0.97.8).  Any help 
would be appreciated.

Thanks,

B.                                        
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to