Clamav 0.95

Rick Cooper rcooper at dwford.com
Wed Apr 1 17:37:15 IST 2009


 

> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info 
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> Of Denis Beauchemin
> Sent: Wednesday, April 01, 2009 11:46 AM
> To: MailScanner discussion
> Subject: Re: Clamav 0.95
> 
> Rick Cooper a écrit :
> >  
> >
> >   
> >> -----Original Message-----
> >> From: mailscanner-bounces at lists.mailscanner.info 
> >> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> >> Of Denis Beauchemin
> >> Sent: Wednesday, April 01, 2009 11:04 AM
> >> To: MailScanner discussion
> >> Subject: Re: Clamav 0.95
> >>
> >> Rick Cooper a écrit :
> >>     
> >>>  
> >>>
> >>>   
> >>>       
> >>>> -----Original Message-----
> >>>> From: mailscanner-bounces at lists.mailscanner.info 
> >>>> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
> >>>> Of Denis Beauchemin
> >>>> Sent: Wednesday, April 01, 2009 9:51 AM
> >>>> To: MailScanner discussion
> >>>> Subject: Re: Clamav 0.95
> >>>>
> >>>> Randal, Phil a écrit :
> >>>>     
> >>>>         
> >>>>> Over on the clamav-users mailing list, Edwin Török says:
> >>>>>
> >>>>> "Make sure there is a symlink 
> >>>>>       
> >>>>>           
> >>>> /usr/lib64/libclamunrar_iface.so -> 
> >>>> /usr/lib64/libclamunrar_iface.so.6, run ldconfig again if 
> >>>>         
> >> necessary."
> >>     
> >>>>     
> >>>>         
> >>>>> It'll be a while before I can test this.
> >>>>>
> >>>>> Cheers,
> >>>>>
> >>>>> Phil 
> >>>>>
> >>>>>   
> >>>>>       
> >>>>>           
> >>>> Phil,
> >>>>
> >>>> I tested it on a 32 bit system and it worked. Before the 
> >>>> symlink I got:
> >>>> service clamd restart
> >>>> Stopping Clam AntiVirus Daemon:                          
>   [FAILED]
> >>>> Starting Clam AntiVirus Daemon: LibClamAV Warning: Cannot 
> >>>> dlopen: file 
> >>>> not found - unrar support unavailable
> >>>>                                                          
>   [  OK  ]
> >>>>
> >>>> I then did:
> >>>> cd /usr/lib
> >>>> ln -s libclamunrar_iface.so.6 libclamunrar_iface.so
> >>>> service clamd restart
> >>>> Stopping Clam AntiVirus Daemon:                          
>   [  OK  ]
> >>>> Starting Clam AntiVirus Daemon:                          
>   [  OK  ]
> >>>>
> >>>> Thanks!
> >>>>
> >>>> Denis
> >>>>
> >>>>     
> >>>>         
> >>> For some reason (don't remember why) for several versions 
> >>>       
> >> now, the build
> >>     
> >>> scripts for clamav don't run ldconfig properly after 
> >>>       
> >> install. I have added a
> >>     
> >>> call to ldconfig after install and before restarting to 
> >>>       
> >> address this on my
> >>     
> >>> systems (in my own build script). I believe the original 
> >>>       
> >> post (on the clamav
> >>     
> >>> list) concerning the check for the symlink was to check for 
> >>>       
> >> the link and if
> >>     
> >>> it was missing run ldconfig manually and check again to 
> >>>       
> >> ensure ldconfig
> >>     
> >>> created the proper link. You should *not* have to create 
> >>>       
> >> that link by hand.
> >>     
> >>> Rick
> >>>
> >>>
> >>> --
> >>> This message has been scanned for viruses and
> >>> dangerous content by MailScanner, and is
> >>> believed to be clean.
> >>>
> >>>
> >>>   
> >>>       
> >> Rick,
> >>
> >> Just tried it on my last MS server and it didn't work (RHEL 5.3):
> >> # ldconfig
> >> # service clamd restart
> >> Stopping Clam AntiVirus Daemon:                            [  OK  ]
> >> Starting Clam AntiVirus Daemon: LibClamAV Warning: Cannot 
> >> dlopen: file 
> >> not found - unrar support unavailable
> >>                                                            [  OK  ]
> >> # ln -s /usr/lib/libclamunrar_iface.so.6 
> >> /usr/lib/libclamunrar_iface.so
> >> # service clamd restart
> >> Stopping Clam AntiVirus Daemon:                            [  OK  ]
> >> Starting Clam AntiVirus Daemon:                            [  OK  ]
> >>
> >> Denis
> >>
> >>     
> >
> > IIRC one of the people having the issue with the 0.94x to 
> 0.95 upgrade and
> > not having the link built correctly  by ldconfig eventually 
> found they had
> > two copies of the lib one in /usr/lib and one in either 
> /usr/local/lib or
> > /lib and ldconfig built the link in the wrong place. Any 
> way you look at it
> > there is a problem as ldconfig should build the link 
> against the most recent
> > lib version. And I think (99.9% sure) the default location 
> for the lib is
> > /usr/local/lib. If you do an ls -lh /usr/local/lib/libclamunrar*
> > /usr/lib/libclamunrar do you find only one copy/version in 
> one place?
> >
> > Rick
> >
> >
> > --
> > This message has been scanned for viruses and
> > dangerous content by MailScanner, and is
> > believed to be clean.
> >
> >
> >   
> Rick,
> 
> # updatedb
> # locate libclamunrar
> /usr/lib/libclamunrar.so.6
> /usr/lib/libclamunrar.so.6.0.2
> /usr/lib/libclamunrar_iface.so
> /usr/lib/libclamunrar_iface.so.6
> /usr/lib/libclamunrar_iface.so.6.0.2
> 
> Nothing outside /usr/lib...
> 
> Denis
> 

It looks like a bug that may pertain to this was closed today
https://wwws.clamav.net/bugzilla/show_bug.cgi?id=1501

I am still kind of curious why it only affects some systems and not others
(such as any of mine), although I do not install clamav via rpm on any of my
systems. Just for fun I installed the 0.95-1 via rpm on a CENTOS 5.2 box
that I don't normaly have clamav on and it worked fine, the correct symlinks
were there and the unrar functions tested fine. Hmmmm.

Rick



--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the MailScanner mailing list