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
As the demand for virtual private servers (VPS) continues to grow, businesses and individuals are faced with a crucial decision:…
Web hosting is a large industry, as many other factors help any web hosting provider to form a company. The…
Welcome to the complete guide to WordPress security best practices in 2024. As technology evolves rapidly, implementing strong security measures…
Hey, wanted to learn about web hosting? Or do you want to start a new website and need hosting? Questions…
In today's digital world, the threat of DDoS attacks has become increasingly prevalent. These types of attacks have the power…