clamav-0.95.3へのバージョンアップの暫定対応 09/10/29

clamav-0.95.3へのバージョンアップがコンパイルで失敗するので暫定対応して様子を見ています。

発生するエラーは

others.h: In function ‘cli_getpagesize’:
others.h:363: error: ‘_SC_PAGESIZE’ undeclared (first use in this function)
others.h:363: error: (Each undeclared identifier is reported only once
others.h:363: error: for each function it appears in.)

対応およびインストールで行ったこと。
ここから先は危険がありますので自己責任でお願いしますし、すばやい対応を期待したいと思います。

最新のclamavのソースコードの場所を要確認

  • wget http://jaist.dl.sourceforge.net/sourceforge/clamav/clamav-0.95.3.tar.gz
  • tar zxvf clamav-0.95.3.tar.gz
  • cd clamav-0.95.3
  • ./configure && make && make install
    ->エラーになりますので、「clamav-config.h」ファイルの最後に追加しました。
    —start start start—

    #include <stdio.h>
    #include <assert.h>
    #include <unistd.h>

    —end end end—

  • pushd /var/log
  • ls -lt clamd.log
  • tail clamd.log
  • service clamd status
  • service clamd restart
  • ls -lt clamd.log
  • tail clamd.log
  • tail freshclam.log
  • /usr/local/bin/freshclam –quiet
  • tail freshclam.log

    [test q=”clamd”]

    タグ:
    1. pmd
      10月 30th, 2009 05:19

      とりあえず、動いているように見えます。
      で、お約束のチェックメールも届いています。

      /tmp/clamav-0.95.3/test/clam.zip: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.impl.zip: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-fsg.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-upx.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-nsis.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe.szdd: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.pdf: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-aspack.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.cab: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.ea05.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe.mbox.base64: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.sis: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.ppt: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.tar.gz: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-upack.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.d64.zip: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe.binhex: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.ea06.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.chm: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-petite.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe.rtf: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.mail: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-v3.rar: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-pespin.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-mew.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.arj: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.tnef: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe.mbox.uu: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-wwpack.exe: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.ole.doc: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam-v2.rar: ClamAV-Test-File FOUND
      /tmp/clamav-0.95.3/test/clam.exe.html: ClamAV-Test-File FOUND

    2. pmd
      11月 1st, 2009 20:39

      http://www.clamav.net/download/sourcesにパッチを当てる情報がある様です。

      一部引用です。

      Important note: if you want to compile ClamAV 0.95.3 on Fedora 9 or FreeBSD 7 (and possibly other platforms), you’ll need the following patch patch-0.95.3-bug1737.diff. See bug #1737 for more information.

    3. pmd
      11月 3rd, 2009 14:32

      私の環境ではパッチを当てることが出来なかったので、パッチ情報を元にプログラムを修正して「clamav-0.95.3へのバージョンアップの備忘録 その後 09/11/03」として変更内容を書いてみました。