Tomasz Chmielewski wrote:
Tomasz Chmielewski wrote:
I just compiled clamav 0.88 for a mipsel platform.
I have a problem with freshclam though - when it downloads a database,
it wants to write the temp file to / - and it should write to
DatabaseDirectory dir.
It looks like this:
# freshclam
ClamAV update process started at Thu Mar 2 14:42:10 2006
ERROR: Can't create new file /clamav-e10140f025526634 in
/usr/share/clamav
ERROR: The database directory must be writable for UID 74 or GID 74
ERROR: Can't download main.cvd from database.clamav.net (IP:
213.209.100.191)
On other systems, it would download to ./clamav-e10140f025526634 in
/usr/share/clamav (note the dot before clamav-...).
For some reason, on the mipsel system, after cross-compilation, the dot
is not appended before the temp database file.
A quick hack is to add a missing dot in libclamav/others.c - change:
sprintf(name, "%s/clamav-", mdir);
to match:
sprintf(name, ".%s/clamav-", mdir);
Anyway, if you want to cross-compile clamav, you'll have to hack the
./configure script, so one more change doesn't make a big difference,
does it?
Unfortunately the quick hack repairs freshclam behaviour, but breaks
other clam* tools:
[EMAIL PROTECTED]:~# clamscan
LibClamAV Error: Empty database file
LibClamAV Error: Can't load /: Malformed database
ERROR: Malformed database
--
Tomasz Chmielewski
WPKG - http://wpkg.org
Software deployment with Samba
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html