iT邦幫忙

1

ClamAV-0.102.0

ayu 2019-10-28 01:21:232068 瀏覽
  • 分享至 

  • xImage
  •  

clamav-0.102.0 雖已於20191002在官網公告釋出, 但

  • 0.101.4 freshclam 並沒有提醒版本OUTDATED訊息, 這跟以往大不同
  • Libcurl version >= 7.45 為必要條件
  • clamonacc 限Linux kernel >= 3.8
  • 編譯時有gcc版本問題, 卻未言明或提醒, 這點特別嚴重
  • 缺 clamav-milter

在此提供一些心得給有興趣的邦友參考, 但請不要拿正式上線服務的主機來玩哦!
( On FreeBSD-12.0 )

Making all in clamscan
  CCLD     clamscan
../libclamav/.libs/libclamav.so: undefined reference to `libiconv'
../libclamav/.libs/libclamav.so: undefined reference to `libiconv_close'
../libclamav/.libs/libclamav.so: undefined reference to `libiconv_open'
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

( On CentOS-6.9 )

  CCLD     freshclam
../libclamav/.libs/libclamav.so: undefined reference to `gzseek64'
../libfreshclam/.libs/libfreshclam.so: undefined reference to `gzopen64'
collect2: ld returned 1 exit status
make[2]: *** [freshclam] Error 1

由於找不到相關線索, 曾嘗試加裝新版libiconv也無效果,
好不容易才意識到會不會是編譯器的問題, 果然在Debian-9.6上得到印證.

已確定不可用的cc有:
clang-6.0.1 , clang-7.0.1 , gcc-4.4.7
已確定可用的cc有:
gcc-9.2.0(FreeBSD-12.0) , gcc-8.3.0(CentOS-6.9) , gcc-6.3.0(Debian-9.6)

( On FreeBSD-12.0 )
./configure ......(略)\
--enable-milter \
CC=gcc9 CXX=g++9

( On CentOS-6.9 )
./configure ......(略) \
--enable-milter \
--enable-clamonacc \
CC=/opt/gcc830/bin/gcc CXX=/opt/gcc830/bin/g++ \
--with-libcurl=/opt/curl7660

clamav-milter確實是漏了
參考 https://lists.gt.net/clamav/users/77196
這篇確定clamav-milter確實是漏了, 說是會在0.102.1修改:
It appears that configure changes between ClamAV 0.102.0-rc and 0.102.0 broke building of clamav-milter.
但實際上, dev/0.102.1 dev/0.103.0 都還是老樣子從缺,
只有 dev/0.101.5 仍正常提供.
不過毋須擔心, 實測直接拿 0.101.4 的 sbin/clamav-milter 來用即可.

附注:

  1. On-Access is only available on Linux systems, 且kernel >= 3.8

  2. ClamAV的Mailing List Archive
    https://lists.gt.net/clamav/

20191122補充:
clamav-0.102.1 已於 2019-11-20 18:22:40 UTC 在官網公告釋出, 除了已補上 clamav-milter , 其餘皆如前述.


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言