Categories: Hostripples Featured

Clamav Upgrade error

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


HR-ADMIN

Recent Posts

The Ultimate Guide to WordPress Maintenance: Tips and Tricks

When you’re running a business that relies on website traffic and sales to succeed. Then you need to keep it…

4 days ago

Migrate In 2024: Our Comprehensive Website Migration Manual to the Next Level

Migration! Yes, this word is very big in the web hosting industry and it has its importance. Especially for businesses…

6 days ago

Unveiling the Importance of Server Maintenance Plans: A Comprehensive Guide

The server is the backbone of the web hosting industry and it acts like a HERO in the web hosting…

2 weeks ago

IP Address is Blocked? A handpicked list of Solutions to Fix it?

Imagine you are on holiday having a cup of tea and browsing your website or blog.Then, what next?You will get…

3 weeks ago

Explained: Difference between Nameservers Vs. DNS

The web hosting industry is growing every minute, day, and year. It has many terminologies that are important to understand…

1 month ago