On 10/4/10 9:20 AM, Al Varnell wrote:
On 10/4/10 7:51 AM, "Dennis Peterson"<[email protected]> wrote:
On 10/1/10 11:30 PM, Al Varnell wrote:
On 10/1/10 12:07 AM, "Dennis Peterson"<[email protected]> wrote:
A short term solution until Apple updates bzip2 is to install MacPorts if
not
already installed, and use it to install bzip2. It will install it in
/opt/local
so you need to add an option to your clamav configure statement:
configure --with-libbz2-prefix=/opt/local ...
It should build and run fine.
What you said is correct, as far as it goes, but realize that bzip2 1.0.6 is
not necessary to compile clamav correctly since clamav provides it's own
bzip library. What it will do is lose the warning which is only there to
let the user know that he has a bugged version of bzip on his computer.
Using a port to correct the bug is fine as long as the directory is included
in the users path. If it isn't then you've defeated the purpose of the
compilers check.
As much as I dislike bzip2 I have customers that require it. Leaving it out is
not an option. Doesn't mean I have to be happy about it :)
Sorry, I wasn't clear. I didn't mean one should leave it out, just that if
you do install the MacPorts version in /opt/local you need to make sure that
this is included in the path designation or your customer won't benefit by
it's being there.
-Al-
Ah - yes. One should test it using otool which is similar to ldd in Linux:
otool -l /usr/local/sbin/clamd (much stuff deleted from the output)
Load command 14
cmd LC_LOAD_DYLIB
cmdsize 56
name /opt/local/lib/libbz2.1.0.dylib (offset 24)
time stamp 2 Wed Dec 31 16:00:02 1969
current version 1.0.6
compatibility version 1.0.0
This shows the full path to the dylib is hardcoded into clamd.
dp
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml