On 09/23/2013 05:45 PM, Shawn Webb wrote:
This is due to a change I had made in November 2012 to how the zlib linking
checks are done in the configure script. If you have a few extra moments,
can you apply the below-pasted patchfile and re-run configure? If your
compile works with just this patch (and without the changes you made to
zconf.h), we will better know how to proceed from here. The diff is in
unified diff format. If you need me to convert the diff from unified to
traditional, let me know.

Thanks,

Shawn

The patch:

  diff --git a/configure b/configure
index 0158088..4109375 100755
[..snip..]

As it's just a few lines I applied the patch manually because of wrapping. I believe I did it right, but I get the same error:

  CC     libclamav_la-pe.lo
  CC     libclamav_la-pe_icons.lo
  CC     libclamav_la-disasm.lo
  CC     libclamav_la-upx.lo
In file included from 7z/LzmaDec.h:7,
                 from lzma_iface.h:26,
                 from upx.c:59:
7z/Types.h:58: error: redefinition of typedef 'Byte'
/usr/local/zlib/include/zconf.h:368: error: previous declaration of 'Byte' was here
make[4]: *** [libclamav_la-upx.lo] Error 1
make[4]: Leaving directory `/usr/local/src/clamav/clamav-0.98/libclamav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/src/clamav/clamav-0.98/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/clamav/clamav-0.98/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/clamav/clamav-0.98'
make: *** [all] Error 2

This is on CentOS 5.5.

However, I'm using --with-zlib=/usr/local/zlib which contains zlib-1.2.8. When I use --with-zlib=/usr or not use --with-zlib=... at all (configure will then find /usr which contains zlib-1.2.3), then clamav will compile successfully. Other software compiles and works just fine when using zlib from /usr/local/zlib.

CentOS 5 zlib = 1.2.3-7  (mine is)
CentOS 6 zlib = 1.2.3-29 (according to the CentOS packages website)


--
Rob

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

Reply via email to