I have a 3.9 system running clamav and freshclam chroot and I wanted to update clamav from 0.88.4 to 0.88.7. So I...
i) stopped the clamd and freshclam daemons ii) removed clamav package with pkg_delete iii) installed the newer clamav with pkg_add I then used ldd to locate what I need to put in my $CHROOT for clamd. I was missing libclamav.so.2.0 so I copied it into $CHROOT. I started clamd fine after using ldconfig. But I encountered trouble when doing the same for freshclam: $ ldd /usr/local/bin/freshclam /usr/local/bin/freshclam: Start End Type Open Ref GrpRef Name 00000000 00000000 exe 1 0 0 /usr/local/bin/freshclam 065c4000 265d9000 rlib 0 1 0 /usr/local/lib/libclamav.so.2.0 <<=== 03e08000 23e12000 rlib 0 2 0 /usr/local/lib/libcurl.so.3.3 09ee5000 29eed000 rlib 0 3 0 /usr/lib/libz.so.4.1 0e0d8000 2e106000 rlib 0 3 0 /usr/lib/libcrypto.so.12.0 07fe0000 27feb000 rlib 0 3 0 /usr/lib/libssl.so.10.0 06782000 26788000 rlib 0 2 0 /usr/local/lib/libgmp.so.6.3 09e54000 29e58000 rlib 0 2 0 /usr/local/lib/libbz2.so.10.3 0a49b000 2a4a4000 rlib 0 1 0 /usr/lib/libpthread.so.6.2 0fd6a000 2fd9b000 rlib 0 1 0 /usr/lib/libc.so.39.0 0cc84000 0cc84000 rtld 0 1 0 /usr/libexec/ld.so When starting freshclam outside $CHROOT it works but it does not when starting it inside. It asks for an outdated version of libclamav.so (1.9): $ /usr/local/bin/freshclam -u root ClamAV update process started at Thu Feb 15 17:52:28 2007 WARNING: Your ClamAV installation is OUTDATED! WARNING: Local version: 0.88.7 Recommended version: 0.90 DON'T PANIC! Read http://www.clamav.net/faq.html main.cvd is up to date (version: 42, sigs: 83951, f-level: 10, builder: tkojm) daily.cvd is up to date (version: 2578, sigs: 7844, f-level: 13, builder: sven) WARNING: Your ClamAV installation is OUTDATED! WARNING: Current functionality level = 10, recommended = 13 DON'T PANIC! Read http://www.clamav.net/faq.html # chroot -u amavisd /var/amavisd /usr/local/bin/freshclam -d /usr/local/bin/freshclam: can't load library 'libclamav.so.1.19' I used the same procedure on a 4.0 system with no such problem. PM