Re: Fwd: LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found - unrar support unavailable

"Micah Snyder (micasnyd)" <[email protected]> Sun, 14 Jul 2019 15:17:33 +0000
Newsgroups gmane.comp.security.virus.clamav.devel
Message-ID <[email protected]>
Hi Chris,

You wouldn’t see libclamunrar_iface linked with clamd.  It is intentionally not linked, but instead loaded at runtime. The intention is that you can run clamd without it, for the sake of linux package managers that restrict themselves from shipping code that is not entirely free.  Libclamunrar is derived from RARLab's UnRAR library who's license has as stipulation that UnRAR may not be reverse engineered to create a RAR archiver / may only be used for extracting RAR archives.  For this reason, we provide the libclamunrar_iface that is optional and can be installed separately.  

The port was contributed here, by Yasuhiro Kimura: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236818 
You can view the freebsd port, here: https://www.freshports.org/security/clamav/ 
If you expand the Pseudo-pkg-plist information, it appears that libclamunrar is included:

	lib/libclamunrar.so
	lib/libclamunrar.so.9
	lib/libclamunrar.so.9.0.2
	lib/libclamunrar_iface.so
	lib/libclamunrar_iface.so.9
	lib/libclamunrar_iface.so.9.0.2

I'm not sure why it isn't able to load libclamunrar_iface.  May be worth asking via bugs.freebsd.org. 

Micah

On 7/13/19, 9:00 PM, "clamav-devel on behalf of Chris" <[email protected] on behalf of [email protected]> wrote:

    Hi on restarting clamd or freshclam I get the following error.
    
    LibClamAV Warning: Cannot dlopen libclamunrar_iface: file not found -
    unrar support unavailable
    
    This is on FreeBSD 11.2, compiled from ports, clamav-0.101.2,1 which
    at this time is the latest version in the ports tree.
    
    This same problem was reported several years ago and fixed in a patch
    but I see no recent hits for it on google.
    
    I ran ldd on the clamd binary and its not linked to any kind of unrar
    files.  So I dont know how unrar support is implemented.
    
    any ideas?
    _______________________________________________
    
    clamav-devel mailing list
    [email protected]
    https://lists.clamav.net/mailman/listinfo/clamav-devel
    
    Please submit your patches to our Bugzilla: http://bugzilla.clamav.net
    
    Help us build a comprehensive ClamAV guide:
    https://github.com/vrtadmin/clamav-faq
    
    http://www.clamav.net/contact.html#ml
    

_______________________________________________

clamav-devel mailing list
[email protected]
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml