-----Original Message-----
From: clamav-users-boun...@lists.clamav.net 
[mailto:clamav-users-boun...@lists.clamav.net] On Behalf Of Dennis Peterson
Sent: Thursday, March 26, 2009 2:41 PM
To: ClamAV users ML
Subject: Re: [Clamav-users] Problems builing in solaris related to unrar 
libraries

Vigil, Joe wrote:
> My environment:
>     AIX 4.3.3 (yeah, I know it's old)
>     GCC 2.95.2
>     Clamav v0.95
>  
> I'm getting the same error " LibClamAV Warning: Cannot dlopen: file not found 
> - unrar support unavailable".
> I've tried setting the LIBPATH variable to "/usr/local/lib" (LIBPATH is the 
> AIX equivalent to LD_LIBRARY_PATH).
> Here's the contents of /usr/local/lib:
> /usr/local/lib joe: ls -l libclam*
> -rw-r--r--   1 root     system   1799258 Mar 25 15:16 libclamav.a
> -rwxr-xr-x   1 root     system       978 Mar 25 15:16 libclamav.la
> -rw-r--r--   1 root     system    125990 Mar 25 15:16 libclamunrar.a
> -rwxr-xr-x   1 root     system       918 Mar 25 15:16 libclamunrar.la
> -rw-r--r--   1 root     system     17008 Mar 25 15:16 libclamunrar_iface.a
> -rwxr-xr-x   1 root     system       969 Mar 25 15:16 libclamunrar_iface.la
> 
> Here's how I built it:
> export CC="/usr/local/bin/gcc"
> export CFLAGS="-D_XOPEN_SOURCE=500 -D_ALL_SOURCE"
> export LDFLAGS="-lpthreads -liconv"


This may be helpful to sort out linking issues in AIX:

http://castaglia.org/proftpd/doc/README.AIX.html
------------------------------------------------------

That dump command was helpful. It showed me that it is indeed looking in 
/usr/local/lib. Stay tuned, I'm going to try compiling using shared libraries...

- Joe Vigil

_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to