Clamav Upgrade error

wordpress Hosting

Following error occurred while upgrading the clamav :-

#make
……………
……………
……………
cdiff.o(.text+0x1a37): In function `cdiff_apply’:
../shared/cdiff.c:984: undefined reference to `gzdopen’
cdiff.o(.text+0x1a71):../shared/cdiff.c:994: undefined reference to `gzgets’
cdiff.o(.text+0x1b8d):../shared/cdiff.c:1016: undefined reference to `gzclose’
cdiff.o(.text+0x1bc4):../shared/cdiff.c:1010: undefined reference to `gzclose’
tar.o(.text+0xd2): In function `tar_addfile’:
../shared/tar.c:82: undefined reference to `gzwrite’
tar.o(.text+0x107):../shared/tar.c:95: undefined reference to `gzwrite’
tar.o(.text+0x1c2):../shared/tar.c:111: undefined reference to `gzwrite’
manager.o(.text+0xf24): In function `buildcld’:
/usr/src/clamav-0.93/freshclam/manager.c:913: undefined reference to `gzclose’
manager.o(.text+0xf59):/usr/src/clamav-0.93/freshclam/manager.c:884: undefined reference to `gzopen’
manager.o(.text+0x108d):/usr/src/clamav-0.93/freshclam/manager.c:932: undefined reference to `gzclose’
manager.o(.text+0x10d5):/usr/src/clamav-0.93/freshclam/manager.c:944: undefined reference to `gzclose’
collect2: ld returned 1 exit status
make[2]: *** [freshclam] Error 1
make[2]: Leaving directory `/usr/src/clamav-0.93/freshclam’
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/clamav-0.93′
make: *** [all] Error 2

Solution:

mv /usr/local/lib/libz.a /usr/local/lib/libz.a.backup

and then run the make command, after this is done revert back the changes.

mv /usr/local/lib/libz.a.backup /usr/local/lib/libz.a


Cpanel Hosting