I've been trying to upgrade ClamAV to 0.96 on my PowerPC Macintosh after running 0.95.x versions with no problems for a year or two. The Macintosh is running OS X 10.5.8 - note that this is a Client version of OS X which does not have an Apple-provided version of ClamAV (I believe OS X Server comes with a version of ClamAV).

I appear to get a good build but when I try to start clamd, get the following error:

sh-3.2# /usr/local/sbin/clamd
Assertion failed: (ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) &&
"Relocation out of range!"), function relocate,
file llvm/lib/Target/PowerPC/PPCJITInfo.cpp, line 399.
Abort trap

I've been building it as follows:
In my personal account, untarred the sources, then:
   ./configure CC=/usr/local/llvm-gcc4.2-2.4-ppc-darwin9/bin/llvm-gcc

(I installed that compiler when I first installed ClamAV 0.95.x as the Apple-provided compiler was flagged by configure for the PR28045 bug).

Based on the Upgrade Notes on the website, I also tried the following but am not sure if that's what the note meant to do:
   ./configure CC=/usr/local/llvm-gcc4.2-2.4-ppc-darwin9/bin/llvm-gcc
      CXX=/usr/local/llvm-gcc4.2-2.4-ppc-darwin9/bin/llvm-gcc

then:
   make

Once make finished, su to root, killed the exisiting 0.95.3 clamd, cd to 0.95.3 directory and did 'make uninstall', back to the 0.96 directory, and did 'make install'. Ran freshclam and attempted to start clamd but received the error message above.

I'm back on 0.95.3 (but noticed that 0.96 freshclam gets an additional file related to bytecode and 0.95.3 does not like that file being present).

Any ideas?

-- Larry Stone
   lston...@stonejongleux.com
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to