On Tue, 02 Nov 2010 22:33:40 +0100
Marcin Krol <[email protected]> wrote:
> Hello everyone,
>
> I am backporting 0.96.4 to debian etch (in a rather brutal but
> effective way: downloaded Etch source package and overwritten sources
> in there with 0.96.4 sources). I have managed to build working
> packages, but a strange problem cropped up:
>
> LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found -
> unrar support unavailable
>
> Now I HAVE linked libclamunrar.so* in /usr/lib.
It needs libclamunrar_iface.so.
There's a Debian package from libclamunrar in non-free.
> It doesn't help,
> because when I strace clamd I get this:
>
> open("/lib/tls/i686/cmov/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> open("/lib/tls/i686/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/lib/tls/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> open("/lib/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT (No such file
> or directory)
> open("/usr/lib/i686/cmov/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT
> (No such file or directory)
> open("/usr/lib/i686/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT (No
> such file or directory)
> open("/usr/lib/libclamunrar_iface.a", O_RDONLY) = -1 ENOENT (No such
> file or directory)
> open("/lib/i486-linux-gnu/libclamunrar_iface.a", O_RDONLY) = -1
> ENOENT (No such file or directory)
> open("/usr/lib/i486-linux-gnu/libclamunrar_iface.a", O_RDONLY) = -1
> ENOENT (No such file or directory)
> munmap(0xb7233000, 65470) = 0
> write(2, "LibClamAV Warning: Cannot dlopen"..., 96LibClamAV Warning:
> Cannot dlopen libclamunrar_iface: file not found - unrar support
> unavailable ) = 96
>
> Apparently clamd is trying to open .a library instead of .so.
Do you have a libclamunrar_iface.la file installed? Delete it if you do.
Are you sure the .a is the first file it tries to open?
It should try .so.6.1.6, then .so.6, then .so, and only finally .a.
Best regards,
--Edwin
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml