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

How Can You Prepare Your Ecommerce Site/blog for Festivals?

Festivals are more than cultural celebrations—they’re golden opportunities for e-commerce stores and bloggers to attract, engage, and convert audiences. During…

2 days ago

Shared Hosting: Migrating Your Site Seamlessly

If you’re new to web hosting, the idea of moving your website from one provider to another might sound intimidating.…

2 weeks ago

Top 15 WooCommerce Plugins to Power Your eCommerce Store in 2025

WooCommerce powers over 5 million online stores, and its true potential comes alive with plugins that enhance functionality. The right…

2 weeks ago

Explore the WordPress Theme Editor: Customization Made Easy

When you first launch a WordPress website, it comes with a theme that controls how your site looks and feels.…

3 weeks ago

Make in India, Make for the World: How Hostripples Empowers Modi’s Vision

Introduction Prime Minister Narendra Modi’s clarion call — “Make in India, Make for the World” — is not just a…

1 month ago