After several days testing, finally I can compile and build clamav1.4.2 RPM package on Centos7, I have tried it, it works well.
I have copied/pasted clamav.spec as the following. this file is not generated originally, it was got from Federo website, some modification was made. ################################################################################# %define clamav_usr %{name} %define clamav_grp %{name} %define clamav_uid 65035 %define clamav_gid 65035 %define libname lib%{name} Name: clamav Version: 1.4.2 Release: 1 Summary: Clam AntiVirus is a GPL anti-virus toolkit for UNIX Group: Applications/Security Distribution: Centos Packager: ChengFu Yang<cyan...@dxc.com> URL: https://www.clamav.net/ Source0: https://www.clamav.net/downloads/production/clamav-%{version}.tar.gz #Source0: http://downloads.sourceforge.net/sourceforge/clamav/clamav-%{version}.tar.gz #Source1: %{name}-clamd.initscript #Source2: %{name}-clamd.logrotate #Source3: %{name}-freshclam.initscript #Source4: %{name}-freshclam.logrotate #Source5: http://db.local.clamav.net/daily.cvd #Source6: clamav-clamd.service #Source7: clamav-freshclamd.service License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: bzip2-devel BuildRequires: libcurl-devel BuildRequires: libgcc BuildRequires: json-c-devel BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: pcre2-devel BuildRequires: libstdc++-devel BuildRequires: systemd-devel BuildRequires: libxml2-devel BuildRequires: xz-devel ## AUTOBUILDREQ-END BuildRequires: bash BuildRequires: ldconfig Requires: bzip2 Requires: gzip Requires: tar Requires: unzip #Requires(pre): %{libname} = %{?epoch:%epoch:}%{version}-%{release} Requires(pre): /usr/sbin/groupadd, /usr/sbin/useradd %systemd_requires %description Clam AntiVirus is a GPL anti-virus toolkit for UNIX. The main purpose of this software is the integration with mail servers (attachment scanning). This package provides a command line scanner, and a tool for automatic updating via Internet. %prep %setup -q %define _default_patch_fuzz 2 #cp %{SOURCE5} database/daily.cvd %build mkdir build cd build cmake .. \ -D OPTIMIZE=OFF \ -D ENABLE_EXAMPLES=ON \ -D ENABLE_STATIC_LIB=ON \ -D ENABLE_SYSTEMD=ON \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D CMAKE_INSTALL_LIBDIR=/usr/local/lib \ -D APP_CONFIG_DIRECTORY=/usr/local/etc\ -D DATABASE_DIRECTORY=/var/lib/clamav cmake --build . #cmake --build . --target install ./usr/local #export SENDMAIL="%{_libdir}/sendmail" #% configure \ # --with-dbdir=%{_localstatedir}/lib/clamav/ \ # --disable-zlib-vcheck %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} # log files stuff install -d %{buildroot}%{_var}/log/%{name} install -d %{buildroot}/usr/local/bin install -d %{buildroot}/usr/local/sbin install -d %{buildroot}/usr/local/share install -d %{buildroot}/usr/local/share/man/man1 install -d %{buildroot}/usr/local/share/man/man5 install -d %{buildroot}/usr/local/share/man/man8 install -d %{buildroot}/usr/local/etc install -d %{buildroot}/usr/local/include install -d %{buildroot}/usr/local/lib install -d %{buildroot}/var/lib/clamav install -d %{buildroot}/usr/local/lib64 install -d %{buildroot}/usr/local/share/doc/ClamAV install -d %{buildroot}/usr/local/lib64/pkgconfig touch %{buildroot}%{_var}/log/%{name}/clamd.log touch %{buildroot}%{_var}/log/%{name}/freshclam.log #install -d %{buildroot}%{_var}/lib/%{name} cp -R build/clambc/clambc %{buildroot}/usr/local/bin #cp -R build/clamd/clamd %{buildroot}/usr/local/sbin cp -R build/clamconf/clamconf %{buildroot}/usr/local/bin cp -R build/clamdscan/clamdscan %{buildroot}/usr/local/bin cp -R build/clamscan/clamscan %{buildroot}/usr/local/bin cp -R build/clamsubmit/clamsubmit %{buildroot}/usr/local/bin cp -R build/freshclam/freshclam %{buildroot}/usr/local/bin cp -R build/sigtool/sigtool %{buildroot}/usr/local/bin cp -R build/clamav-milter/clamav-milter %{buildroot}/usr/local/bin cp -R build/clamonacc/clamonacc %{buildroot}/usr/local/sbin cp -R build/clamd/clamav-daemon.service %{buildroot}/usr/local/share cp -R build/clamonacc/clamav-clamonacc.service %{buildroot}/usr/local/share cp -R build/clamd/clamav-daemon.socket %{buildroot}/usr/local/share cp -R build/freshclam/clamav-freshclam.service %{buildroot}/usr/local/share mv etc/clamd.conf.sample %{buildroot}/usr/local/etc/clamd.conf mv etc/freshclam.conf.sample %{buildroot}/usr/local/etc/freshclam.conf mv etc/clamav-milter.conf.sample %{buildroot}/usr/local/etc/clamav-milter.conf mv docs/html %{buildroot}/usr/local/share/doc/ClamAV/ cp -R build/libclamav/libclamav.so.12.0.3 %{buildroot}/usr/local/lib64 cp -R build/libclammspack/libclammspack.so.0.8.0 %{buildroot}/usr/local/lib64 cp -R build/libclamunrar/libclamunrar.so.12.0.3 %{buildroot}/usr/local/lib64 cp -R build/libclamunrar_iface/libclamunrar_iface.so.12.0.3 %{buildroot}/usr/local/lib64 cp -R build/libfreshclam/libfreshclam.so.3.0.2 %{buildroot}/usr/local/lib64 cp -R build/clamav-config %{buildroot}/usr/local/bin cp -R build/clamd/clamd %{buildroot}/usr/local/sbin cp -R build/clamdtop/clamdtop %{buildroot}/usr/local/sbin cp -R build/docs/man/clamconf.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/clamdscan.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/clamscan.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/clamdtop.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/clamsubmit.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/freshclam.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/sigtool.1 %{buildroot}/usr/local/share/man/man1 cp -R build/docs/man/clamav-milter.conf.5 %{buildroot}/usr/local/share/man/man5 cp -R build/docs/man/clamd.conf.5 %{buildroot}/usr/local/share/man/man5 cp -R build/docs/man/freshclam.conf.5 %{buildroot}/usr/local/share/man/man5 cp -R build/docs/man/clamav-milter.8 %{buildroot}/usr/local/share/man/man8 cp -R build/docs/man/clamonacc.8 %{buildroot}/usr/local/share/man/man8 cp -R build/docs/man/clamd.8 %{buildroot}/usr/local/share/man/man8 cp -R build/docs/man/clamav-milter.8 %{buildroot}/usr/local/share/man/man8 cp -R build/clamav-config.h %{buildroot}/usr/local/include cp -R build/clamav_rust.h %{buildroot}/usr/local/include cp -R build/clamav-types.h %{buildroot}/usr/local/include cp -R build/clamav-version.h %{buildroot}/usr/local/include cp -R build/target.h %{buildroot}/usr/local/include cp -R build/platform.h %{buildroot}/usr/local/include cp -R build/libclamav.pc %{buildroot}/usr/local/lib64/pkgconfig %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %pre /usr/sbin/groupadd %{clamav_grp} -g %{clamav_gid} &>/dev/null /usr/sbin/useradd %{clamav_usr} -c "Clam AntiVirus" -s /bin/false \ -u %{clamav_uid} -g %{clamav_grp} &>/dev/null : %post %systemd_post clamav-freshclam #if [ $1 -ge 1 ]; then # # Workaround: remove /0 file created by error in initscript # [ -e /0 ] && rm -f /0 #fi ln -s -f /usr/local/lib64/libfreshclam.so.3.0.2 /usr/local/lib64/libfreshclam.so.3 ln -s -f /usr/local/lib64/libfreshclam.so.3 /usr/local/lib64/libfreshclam.so ln -s -f /usr/local/lib64/libclamunrar_iface.so.12.0.3 /usr/local/lib64/libclamunrar_iface.so.12 ln -s -f /usr/local/lib64/libclamunrar_iface.so.12 /usr/local/lib64/libclamunrar_iface.so ln -s -f /usr/local/lib64/libclamunrar.so.12.0.3 /usr/local/lib64/libclamunrar.so.12 ln -s -f /usr/local/lib64/libclamunrar.so.12 /usr/local/lib64/libclamunrar.so ln -s -f /usr/local/lib64/libclammspack.so.0.8.0 /usr/local/lib64/libclammspack.so.0 ln -s -f /usr/local/lib64/libclammspack.so.0 /usr/local/lib64/libclammspack.so ln -s -f /usr/local/lib64/libclamav.so.12.0.3 /usr/local/lib64/libclamav.so.12 ln -s -f /usr/local/lib64/libclamav.so.12 /usr/local/lib64/libclamav.so %preun %systemd_preun clamav-freshclam if [ $1 -eq 0 ]; then # erase /usr/sbin/userdel %{clamav_usr} 2>/dev/null fi : %postun %systemd_postun_with_restart clamav-freshclam : %files %defattr(-,root,root) %config(noreplace) /usr/local/etc/freshclam.conf %config(noreplace) /usr/local/etc/clamav-milter.conf /usr/local/bin/clambc /usr/local/bin/clamconf /usr/local/bin/clamdscan /usr/local/bin/clamscan /usr/local/bin/clamsubmit /usr/local/bin/freshclam /usr/local/bin/sigtool /usr/local/bin/clamav-milter /usr/local/sbin/clamonacc /usr/local/share/clamav-daemon.service /usr/local/share/clamav-clamonacc.service /usr/local/share/clamav-daemon.socket /usr/local/share/clamav-freshclam.service #%dir %attr(0755,%{clamav_usr},%{clamav_grp}) %{_var}/lib/%{name} #755,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name} %ghost %attr(0644,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}/freshclam.log /usr/local/share/man/man1/clamconf.1 /usr/local/share/man/man1/clamdscan.1 /usr/local/share/man/man1/clamscan.1 /usr/local/share/man/man1/clamsubmit.1 /usr/local/share/man/man1/freshclam.1 /usr/local/share/man/man1/sigtool.1 /usr/local/share/man/man5/clamav-milter.conf.5 /usr/local/share/man/man5/clamd.conf.5 /usr/local/share/man/man5/freshclam.conf.5 /usr/local/share/man/man8/clamav-milter.8 /usr/local/share/man/man8/clamd.8 /usr/local/share/man/man8/clamonacc.8 /usr/local/share/man/man1/clamdtop.1 /usr/local/sbin/clamd /usr/local/sbin/clamdtop %doc COPYING %config(noreplace) /usr/local/etc/clamd.conf %ghost %attr(0644,%{clamav_usr},%{clamav_grp}) %{_var}/log/%{name}/clamd.log /usr/local/lib64/libclamav.so.* /usr/local/lib64/libclammspack.so.* /usr/local/lib64/libclamunrar.so.* /usr/local/lib64/libclamunrar_iface.so.* /usr/local/lib64/libfreshclam.so.* /usr/local/bin/clamav-config /usr/local/include/*.h /usr/local/lib64/pkgconfig/*.pc %dir /usr/local/share/doc/ClamAV/html /usr/local/share/doc/ClamAV/html/* #% doc BUGS ChangeLog NEWS README %changelog * Thu Feb 16 2023 Automatic Build System <autod...@mambasoft.it> 1.0.1-1mamba - automatic version update by autodist * Wed Feb 01 2023 Automatic Build System <autod...@mambasoft.it> 1.0.0-1mamba - automatic version update by autodist * Sun Nov 21 2021 Silvan Calarco <silvan.cala...@mambasoft.it> 0.104.1-1mamba - update to 0.104.1 * Tue Jun 22 2021 Automatic Build System <autod...@mambasoft.it> 0.103.3-1mamba - automatic version update by autodist * Thu Apr 08 2021 Automatic Build System <autod...@mambasoft.it> 0.103.2-1mamba - automatic version update by autodist * Thu Feb 04 2021 Automatic Build System <autod...@mambasoft.it> 0.103.1-1mamba - automatic version update by autodist * Wed Oct 07 2020 Automatic Build System <autod...@mambasoft.it> 0.103.0-1mamba - automatic version update by autodist * Thu Jul 23 2020 Automatic Build System <autod...@mambasoft.it> 0.102.4-1mamba - automatic version update by autodist * Wed May 13 2020 Automatic Build System <autod...@mambasoft.it> 0.102.3-1mamba - automatic version update by autodist * Thu Feb 13 2020 Automatic Build System <autod...@mambasoft.it> 0.102.2-1mamba - automatic version update by autodist * Tue Sep 10 2019 Automatic Build System <autod...@mambasoft.it> 0.101.4-1mamba - automatic version update by autodist * Wed Aug 07 2019 Automatic Build System <autod...@mambasoft.it> 0.101.3-1mamba - automatic version update by autodist * Thu Mar 28 2019 Automatic Build System <autod...@mambasoft.it> 0.101.2-1mamba - automatic version update by autodist * Thu Jan 10 2019 Automatic Build System <autod...@mambasoft.it> 0.101.1-1mamba - automatic version update by autodist * Wed Dec 19 2018 Automatic Build System <autod...@mambasoft.it> 0.101.0-1mamba - automatic version update by autodist * Sun Oct 07 2018 Automatic Build System <autod...@mambasoft.it> 0.100.2-1mamba - automatic version update by autodist * Tue Jul 31 2018 Automatic Build System <autod...@mambasoft.it> 0.100.1-1mamba - automatic version update by autodist * Sat Jun 23 2018 Silvan Calarco <silvan.cala...@mambasoft.it> 0.100.0-1mamba - update to 0.100.0 * Wed May 04 2016 Silvan Calarco <silvan.cala...@mambasoft.it> 0.99.2-1mamba - update to 0.99.2 * Thu Mar 03 2016 Automatic Build System <autod...@mambasoft.it> 0.99.1-1mamba - automatic version update by autodist * Sun Dec 13 2015 Silvan Calarco <silvan.cala...@mambasoft.it> 0.99-1mamba - update to 0.99 * Wed Apr 29 2015 Automatic Build System <autod...@mambasoft.it> 0.98.7-1mamba - automatic version update by autodist * Thu Jan 29 2015 Automatic Build System <autod...@mambasoft.it> 0.98.6-1mamba - automatic version update by autodist * Wed Nov 19 2014 Automatic Build System <autod...@mambasoft.it> 0.98.5-1mamba - automatic version update by autodist * Thu Jul 24 2014 Silvan Calarco <silvan.cala...@mambasoft.it> 0.98.4-4mamba - move socket file and pid from /var/run/clamav to /run/clamav - systemd switch * Thu Jul 24 2014 Silvan Calarco <silvan.cala...@mambasoft.it> 0.98.4-3mamba - rebuilt with correct dbdir (--with-dbdir=%{_localstatedir}/lib/clamav/) - make /var/lib/clamav world readable to work with amavis * Thu Jul 24 2014 Silvan Calarco <silvan.cala...@mambasoft.it> 0.98.4-2mamba - rebuilt with correct dbdir (--with-dbdir=/var/lib/clamav) * Tue Jun 17 2014 Automatic Build System <autod...@mambasoft.it> 0.98.4-1mamba - automatic version update by autodist * Sun May 11 2014 Automatic Build System <autod...@mambasoft.it> 0.98.3-1mamba - automatic version update by autodist * Wed Jan 15 2014 Automatic Build System <autod...@mambasoft.it> 0.98.1-1mamba - automatic version update by autodist * Wed Oct 30 2013 Silvan Calarco <silvan.cala...@mambasoft.it> 0.98-2mamba - initscript: fix to avoid creating a /0 file in root directory * Fri Sep 27 2013 Automatic Build System <autod...@mambasoft.it> 0.98-1mamba - automatic version update by autodist * Wed Apr 24 2013 Automatic Build System <autod...@mambasoft.it> 0.97.8-1mamba - automatic version update by autodist * Sat Apr 13 2013 Silvan Calarco <silvan.cala...@mambasoft.it> 0.97.7-2mamba - freshclam initscript: fix pidfile argument for systemd to correctly detect it is running * Thu Mar 14 2013 Automatic Build System <autod...@mambasoft.it> 0.97.7-1mamba - automatic version update by autodist * Fri Oct 12 2012 Automatic Build System <autod...@mambasoft.it> 0.97.6-1mamba - automatic version update by autodist * Mon Aug 13 2012 Automatic Build System <autod...@mambasoft.it> 0.97.5-1mamba - automatic version update by autodist * Mon May 14 2012 Ercole 'ercolinux' Carpanetto <ercol...@gmail.com> 0.97.4-1mamba - update to 0.97.4 * Thu Apr 28 2011 Silvan Calarco <silvan.cala...@mambasoft.it> 0.97-1mamba - update to 0.97 * Tue Dec 07 2010 Silvan Calarco <silvan.cala...@mambasoft.it> 0.96.5-1mamba - update to 0.96.5 * Wed Jun 02 2010 Automatic Build System <autod...@mambasoft.it> 0.96.1-1mamba - automatic update by autodist * Mon Jul 06 2009 Silvan Calarco <silvan.cala...@mambasoft.it> 0.95.2-1mamba - update to 0.95.2 * Thu Jan 29 2009 Silvan Calarco <silvan.cala...@mambasoft.it> 0.94.2-2mamba - added patch for freshclam.conf to fix initscript startup * Mon Dec 22 2008 Silvan Calarco <silvan.cala...@mambasoft.it> 0.94.2-1mamba - automatic update by autodist * Sat Jul 12 2008 Silvan Calarco <silvan.cala...@mambasoft.it> 0.93.3-2mamba - clamav: added PreReq for libclamav to fix freshclam restart on upgrade * Sat Jul 12 2008 gil <punto...@libero.it> 0.93.3-1mamba - update to 0.93.3 * Mon Feb 11 2008 Silvan Calarco <silvan.cala...@mambasoft.it> 0.92-1mamba - update to 0.92 * Tue May 08 2007 Aleph0 <ale...@openmamba.org> 0.90.2-1mamba - update to 0.90.2 - fixes the security issues: CVE-2007-0897, CVE-2007-0898, and CVE-2007-1997 - update configuration file patch - update initscripts * Wed Oct 18 2006 Davide Madrisan <davide.madri...@qilinux.it> 0.88.5-2qilnx - fixed static requirements for clamd and libclamv-devel packages * Wed Oct 18 2006 Davide Madrisan <davide.madri...@qilinux.it> 0.88.5-1qilnx - update to version 0.88.5 by autospec * Wed Aug 30 2006 Davide Madrisan <davide.madri...@qilinux.it> 0.88.4-1qilnx - update to version 0.88.4 by autospec - also fixes a security flaw (bugtraq#221) * Tue May 09 2006 Davide Madrisan <davide.madri...@qilinux.it> 0.88.2-1qilnx - update to version 0.88.2 by autospec * Mon Apr 10 2006 Davide Madrisan <davide.madri...@qilinux.it> 0.88.1-1qilnx - update to version 0.88.1 by autospec - this version fixes the vulnerabilities CVE-2006-16[14,15,30] and other bugs * Mon Jan 16 2006 Davide Madrisan <davide.madri...@qilinux.it> 0.88-1qilnx - update to version 0.88 by autospec - also fixes CVE-2006-0162 (qibug#110) * Mon Nov 07 2005 Davide Madrisan <davide.madri...@qilinux.it> 0.87.1-1qilnx - update to version 0.87.1 by autospec - this release fixes two security issues discovered by iDEFENSE (see bug#64) * Tue Sep 27 2005 Davide Madrisan <davide.madri...@qilinux.it> 0.87-2qilnx - fixed %%preun scriptlet for clamd - %%post scriptlet: run freshclam - initscripts updated ################################################################################# ----- My mailbox is almost full, please don't send pictures or big files to me. -- Yang, Chengfu Linux Administrator, RTX account DXC Technology T. +1.450.677.9411 ext. 75846 W. +1 289-785-6177 cyan...@dxc.com dxc.com --------- Master say we are just visitors of the earth. Be Safe, Be healthy and Be joyful ________________________________________ From: Val Snyder (micasnyd) <micas...@cisco.com> Sent: Wednesday, March 12, 2025 8:45:02 PM To: Yang, ChengFu; clamav-users@lists.clamav.net Subject: Re: ClamAV 1.4 and RHEL7 problem You don't often get email from micas...@cisco.com. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> The clamav source is a .tar.gz available from https://www.clamav.net/downloads<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.clamav.net%2Fdownloads&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638774235182259784%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=4PWYbBtZu4wznDHgwKztIuL4YU3koH8bRUQXpLvSst0%3D&reserved=0> or from the github release page https://github.com/Cisco-Talos/clamav/releases<https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCisco-Talos%2Fclamav%2Freleases&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638774235182275043%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=hi2gV4kjyXD5pjV44b9kXwlKCJR%2B1ElEZjSWM5V FDCU%3D&reserved=0>. Most commonly, source is distributed as either in a .tar.gz or .zip although these days I would say most projects forego that and simply provide the public github or gitlab repository, which automatically make releases available one of those two. I'm not familiar with any projects distributing source in an RPM. Regards, Val Val Snyder (they/them) ClamAV Development Talos Cisco Systems, Inc. ________________________________ From: Yang, ChengFu <cyan...@dxc.com> Sent: Wednesday, March 12, 2025 6:05 PM To: Val Snyder (micasnyd) <micas...@cisco.com>; clamav-users@lists.clamav.net <clamav-users@lists.clamav.net> Subject: Re: ClamAV 1.4 and RHEL7 problem Thanks Val for such explanation. One more thing, is there SOURCE ClamAV RPM package available for downloading, if yes, it will be nice. ----- My mailbox is almost full, please don't send pictures or big files to me. -- Yang, Chengfu Linux Administrator, RTX account DXC Technology T. +1.450.677.9411 ext. 75846 W. +1 289-785-6177 cyan...@dxc.com dxc.com --------- Master say we are just visitors of the earth. Be Safe, Be healthy and Be joyful ________________________________________ From: Val Snyder (micasnyd) <micas...@cisco.com> Sent: Wednesday, March 12, 2025 6:01:06 PM To: Yang, ChengFu; clamav-users@lists.clamav.net Subject: Re: ClamAV 1.4 and RHEL7 problem You don't often get email from micas...@cisco.com. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> The Extended Life Cycle Support (ELS) for Red Hat Enterprise is a subscription offering that provides support for Red Hat Enterprise for longer than its standard seven-year life cycle. With Extended Life Cycle Support customers can receive limited software maintenance and technical support services for an additional three years, extending the life cycle of Red Hat Enterprise to a full ten years. That is to say, ELS is something you pay Red Hat for. We don't have it for our own systems, nor do we get any money from Red Hat to provide extended support to the community. If you are paying Red Hat for ELS, then perhaps their support staff can assist. Respectfully, Val Val Snyder (they/them) ClamAV Development Talos Cisco Systems, Inc. ________________________________ From: Yang, ChengFu <cyan...@dxc.com> Sent: Wednesday, March 12, 2025 5:37 PM To: Val Snyder (micasnyd) <micas...@cisco.com>; clamav-users@lists.clamav.net <clamav-users@lists.clamav.net> Subject: Re: ClamAV 1.4 and RHEL7 problem Thanks Val for the prompt reply. >From what I check, RHEL7 is still 'Extend Life support' till Jun 2028, it >could be a good idea to continue compile and build Clamav on Centos7 or RHEL7. ----- My mailbox is almost full, please don't send pictures or big files to me. -- Yang, Chengfu Linux Administrator, RTX account DXC Technology T. +1.450.677.9411 ext. 75846 W. +1 289-785-6177 cyan...@dxc.com dxc.com --------- Master say we are just visitors of the earth. Be Safe, Be healthy and Be joyful ________________________________________ From: Val Snyder (micasnyd) <micas...@cisco.com> Sent: Wednesday, March 12, 2025 5:26:01 PM To: clamav-users@lists.clamav.net Cc: Yang, ChengFu Subject: Re: ClamAV 1.4 and RHEL7 problem You don't often get email from micas...@cisco.com. Learn why this is important<https://aka.ms/LearnAboutSenderIdentification> Hello! Red Hat Enterprise Linux (RHEL) 7 (and CentOS 7 - which is what we had used) reached the end of its maintenance support phase (EOM) on June 30, 2024, and no longer receives regular updates including critical security patches and bug fixes. We no longer use CentOS 7 in our build systems. As you found, the RPM's we provide will no longer run on RHEL 7 or CentOS 7. If you're stuck on RHEL 7, you may have success building ClamAV from source, either an RPM as described in the link you shared, or else to install directly as described here https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html<https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html><https://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html%3Chttps://docs.clamav.net/manual/Installing/Installing-from-source-Unix.html%3E><https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.clamav.net%2Fmanual%2FInstalling%2FInstalling-from-source-Unix.html%253Chttps%3A%2F%2Fdocs.clamav.net%2Fmanual%2FInstalling%2FInstalling-from-source-Unix.html%253E%253Chttps%3A%2F%2Fdocs.clamav.net%2Fmanual%2FInstalling%2FInstalling-from-source-Unix.html%253Chttps%3A%2F%2Fdocs.clamav.net%2Fmanual%2FInstalling%2FInstalling-from-source-Unix.html%253E%253E&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09f cd331338d086%7C0%7C0%7C638774235182286790%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ggtZrhoQP8zzEkTMx4HuEXF5UXDgl5Z80UcmSADdlds%3D&reserved=0> Regards, Val Val Snyder (they/them) ClamAV Development Talos Cisco Systems, Inc. ________________________________ From: clamav-users <clamav-users-boun...@lists.clamav.net> on behalf of Yang, ChengFu via clamav-users <clamav-users@lists.clamav.net> Sent: Wednesday, March 12, 2025 4:35 PM To: clamav-users@lists.clamav.net <clamav-users@lists.clamav.net> Cc: Yang, ChengFu <cyan...@dxc.com> Subject: [clamav-users] ClamAV 1.4 and RHEL7 problem Hello guys, we have ClamAV1.3 installation (rpm package) on RHEL7/8/9, however with ClamAV1.4 coming, it can not run on RHEL7. The error message is Mar 12 10:08:10 zcahqt01 clamd[28408]: /usr/local/sbin/clamd: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib64/libclamav.so.11) Mar 12 10:08:10 zcahqt01 clamd[28408]: /usr/local/sbin/clamd: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /usr/local/lib64/libclamav.so.11) Mar 12 10:08:10 zcahqt01 clamd[28408]: /usr/local/sbin/clamd: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib64/libclamav.so.11) Mar 12 10:08:10 zcahqt01 clamd[28408]: /usr/local/sbin/clamd: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /usr/local/lib64/libclamav.so.11) Mar 12 10:08:10 zcahqt01 clamd[28408]: /usr/local/sbin/clamd: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /usr/local/lib64/libclamav.so.11) Mar 12 10:08:10 zcahqt01 systemd[1]: clamav-daemon.service: main process exited, code=exited, status=1/FAILURE >From what I check, on RHEL7, there is such GLIBC version 0 ? root@zcahqt01 /home/jade/p931548 # strings /usr/lib/libstdc++.so.6 | grep GLIBC GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBC_2.3 GLIBC_2.0 GLIBC_2.4 GLIBC_2.1 GLIBC_2.1.3 GLIBC_2.3.2 GLIBC_2.2 GLIBCXX_DEBUG_MESSAGE_LENGTH I believe the problem is coming from the compiling done higher RHEL version, instead of RHEL7 currently under ELS. Can you compile and build the RPM package on RHEL7, as your suggestion on https://docs.clamav.net/manual/Development/build-installer-packages.html<https://docs.clamav.net/manual/Development/build-installer-packages.html><https://docs.clamav.net/manual/Development/build-installer-packages.html%3Chttps://docs.clamav.net/manual/Development/build-installer-packages.html%3E><https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.clamav.net%2Fmanual%2FDevelopment%2Fbuild-installer-packages.html%253Chttps%3A%2F%2Fdocs.clamav.net%2Fmanual%2FDevelopment%2Fbuild-installer-packages.html%253E%253Chttps%3A%2F%2Fdocs.clamav.net%2Fmanual%2FDevelopment%2Fbuild-installer-packages.html%253Chttps%3A%2F%2Fdocs.clamav.net%2Fmanual%2FDevelopment%2Fbuild-installer-packages.html%253E%253E&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638774235182298373%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiO iJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=YFxeBA8Dj3i2z6KcP7NJ1TUCcbYcjsGrqj6gdZB6hE8%3D&reserved=0> ----- My mailbox is almost full, please don't send pictures or big files to me. -- Yang, Chengfu Linux Administrator, RTX account DXC Technology T. +1.450.677.9411 ext. 75846 W. +1 289-785-6177 cyan...@dxc.com dxc.com --------- Master say we are just visitors of the earth. Be Safe, Be healthy and Be joyful _______________________________________________ Manage your clamav-users mailing list subscription / unsubscribe: https://lists.clamav.net/mailman/listinfo/clamav-users<https://lists.clamav.net/mailman/listinfo/clamav-users><https://lists.clamav.net/mailman/listinfo/clamav-users%3Chttps://lists.clamav.net/mailman/listinfo/clamav-users%3E><https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.clamav.net%2Fmailman%2Flistinfo%2Fclamav-users%253Chttps%3A%2F%2Flists.clamav.net%2Fmailman%2Flistinfo%2Fclamav-users%253E%253Chttps%3A%2F%2Flists.clamav.net%2Fmailman%2Flistinfo%2Fclamav-users%253Chttps%3A%2F%2Flists.clamav.net%2Fmailman%2Flistinfo%2Fclamav-users%253E%253E&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638774235182309847%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=bciQGtnCU5BiZRRdBHkeQZ0hJB5rA7V2oLQUtyo8D%2BE%3D&reserved=0> Help us build a comprehensive ClamAV guide: https://github.com/Cisco-Talos/clamav-documentation<https://github.com/Cisco-Talos/clamav-documentation><https://github.com/Cisco-Talos/clamav-documentation%3Chttps://github.com/Cisco-Talos/clamav-documentation%3E><https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FCisco-Talos%2Fclamav-documentation%253Chttps%3A%2F%2Fgithub.com%2FCisco-Talos%2Fclamav-documentation%253E%253Chttps%3A%2F%2Fgithub.com%2FCisco-Talos%2Fclamav-documentation%253Chttps%3A%2F%2Fgithub.com%2FCisco-Talos%2Fclamav-documentation%253E%253E&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638774235182321352%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=nzMdeaHqWhD2%2Fbc5DBi308a6Jo72b12oxkozLk%2F%2Fdco%3D&reserved=0> https://docs.clamav.net/#mailing-lists-and-chat<https://docs.clamav.net/#mailing-lists-and-chat><https://docs.clamav.net/#mailing-lists-and-chat%3Chttps://docs.clamav.net/#mailing-lists-and-chat%3E><https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdocs.clamav.net%2F%23mailing-lists-and-chat%253Chttps%3A%2F%2Fdocs.clamav.net%2F%23mailing-lists-and-chat%253E%253Chttps%3A%2F%2Fdocs.clamav.net%2F%23mailing-lists-and-chat%253Chttps%3A%2F%2Fdocs.clamav.net%2F%23mailing-lists-and-chat%253E%253E&data=05%7C02%7Ccyang53%40dxc.com%7Cff9849f739f64151259908dd61c8518f%7C93f33571550f43cfb09fcd331338d086%7C0%7C0%7C638774235182332733%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=7hzTDjCOmqPaML7C%2FMqS7y7e7anVMQra36Y7oVItAV8%3D&reserved=0> _______________________________________________ Manage your clamav-users mailing list subscription / unsubscribe: https://lists.clamav.net/mailman/listinfo/clamav-users Help us build a comprehensive ClamAV guide: https://github.com/Cisco-Talos/clamav-documentation https://docs.clamav.net/#mailing-lists-and-chat