Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-26 Thread Vigil, Joe
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 system125990 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
./configure --disable-clamav --enable-static --disable-shared
after the configure:
cd clamd
edit the Makefile and take out the -D_ALL_SOURCE directive
cd ..
run gmake

Any ideas?
Thanks!

- Joe Vigil
P.S. I didn't have this problem on v0.94.2; I built it the same way.

-Original Message-
From: clamav-users-boun...@lists.clamav.net 
[mailto:clamav-users-boun...@lists.clamav.net] On Behalf Of George R. Kasica
Sent: Tuesday, March 17, 2009 11:03 AM
To: ClamAV users ML
Subject: Re: [Clamav-users] Problems builing in solaris related to unrar 
libraries

I'm not sure how to use crle to do this, so I just added to the
LD_LIBRARY_PATH setting. 

All seems well at this point, and you were correct, I wasn't looking
to disable the feature.

Why does this not occur in Red Hap ES4 but on Solaris? Also, I haven't
needed to modify the env variables on any prior versions...what's
changed??

George


On 2009-03-17 18:43, George R. Kasica wrote:
 I've compiled the 0.95rc2 here on Solaris and when installed and I run
 the clamd I get the following error but its still running.


 # /usr/local/clamav/sbin/clamd
 LibClamAV Warning: Cannot dlopen: file not found - unrar support
 unavailable
   

It is only a warning, you won't be able to scan RAR archives, but
everything else should still work.

Is /usr/local/clamav/lib on your runtime search path?
If not I think  you can use crle to add it, or set the LD_LIBRARY_PATH
environment variable, and unrar should be working again.

 I thought all I had to do was to have it commented out in clamd.conf

 # Due to license issues libclamav does not support RAR 3.0 archives
 (onlythe
 # old 2.0 format is supported). Because some users report stability
 problems
 # with unrarlib it's disabled by default and you must uncomment the
 directive
 # below to enable RAR 2.0 support.
 # Default: disabled
 #ScanRAR
   

This is an old configuration option that no longer exists.

 But that doesn't seem to stop it from trying to load rar support.

If you don't want RAR support, you can configure with --disable-unrar,
but I don't think that is what you want.

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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-26 Thread McDonald, Dan
On Thu, 2009-03-26 at 17:16 -0400, 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 system125990 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

it should be looking for libclamunrar_iface.so.6 (if it finds the .la
file) or libclamunrar_iface.so (if it can't)


-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com



signature.asc
Description: This is a digitally signed message part
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-26 Thread Dennis Peterson
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 system125990 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

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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-26 Thread Vigil, Joe
-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 system125990 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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-26 Thread Vigil, Joe
-Original Message-
From: clamav-users-boun...@lists.clamav.net 
[mailto:clamav-users-boun...@lists.clamav.net] On Behalf Of McDonald, Dan
Sent: Thursday, March 26, 2009 2:35 PM
To: clamav-users@lists.clamav.net
Subject: Re: [Clamav-users] Problems builing in solaris related to unrar 
libraries

On Thu, 2009-03-26 at 17:16 -0400, 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 system125990 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

it should be looking for libclamunrar_iface.so.6 (if it finds the .la
file) or libclamunrar_iface.so (if it can't)


-- 
Daniel J McDonald, CCIE #2495, CISSP #78281, CNX
Austin Energy
http://www.austinenergy.com

=
Daniel,
Just for kicks, I configured it using 
./configure --disable-clamav --disable-static --enable-shared so that it 
would create the .so.6 libs. With other programs, using shared libraries 
usually resulted in a core dump; but not this time.
When I installed it, it didn't copy the shared libs; I had to manually copy 
them. But it worked.
Thanks!

- Joe Vigil

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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-26 Thread Charles Seeger
+-- Dennis Peterson wrote (Thu, 26-Mar-2009, 14:41 -0700):
| 
| 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 system125990 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

Caveat:  That was written a long, long time ago, circa 2000.
I should have included the context, i.e. AIX 4.3.3 (as best as I recall).
I'll try to do better next time...

It hasn't been updated for newer releases.  I haven't worked with AIX since
that time.  Also, it was written in a simpler, libtool-free world.  8-/

The proftpd-1.3.2 distribution contains a README.AIX that has some updates,
including a warning to use gcc-4.1.0 rather than gcc-3.3.2, and to use
-D_NO_PROTO rather than -U__STR__ with newer proftpd versions.
You can view this file online from the CVS repository:

http://proftp.cvs.sourceforge.net/viewvc/proftp/proftpd/README.AIX?revision=1.7

Since the OP is still running AIX 4.3.3(!), I'll be pleased if this
still provides any benefit to him or anyone else.

This kind of feels like a time warp...

Best Regards,
Chuck

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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-18 Thread Steve Ladewig
Dennis Peterson said the following, On 03/17/2009 03:29 PM:
 George R. Kasica wrote:
 If you run the crle command with no options it will report the current global 
 library search path. It will also present a command line example of how to 
 recreate this path. Use can use that example and add any additional paths 
 needed.

I find it easiest to deal with this at compile time. If you set LDFLAGS 
and include the -R and -L (--library-path -rpath for linux) arguments 
before you run configure the runtime linker will know where to find the 
needed libraries.

You then won't need to drag around LD_LIBRARY_PATH or LD_RUN_PATH 
anymore to make that binary function. You can also minimize the paths 
searched by crle (ld.so.conf linux) which are global for all binaries.

CC=gcc CFLAGS=-O2 -pipe LDFLAGS=-L/usr/local/lib -R/usr/local/lib  \
./configure

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


[Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread George R . Kasica
I've compiled the 0.95rc2 here on Solaris and when installed and I run
the clamd I get the following error but its still running.


# /usr/local/clamav/sbin/clamd
LibClamAV Warning: Cannot dlopen: file not found - unrar support
unavailable

I thought all I had to do was to have it commented out in clamd.conf

# Due to license issues libclamav does not support RAR 3.0 archives
(onlythe
# old 2.0 format is supported). Because some users report stability
problems
# with unrarlib it's disabled by default and you must uncomment the
directive
# below to enable RAR 2.0 support.
# Default: disabled
#ScanRAR


Tue Mar 17 11:25:12 2009 - +++ Started at Tue Mar 17 11:25:12 2009
Tue Mar 17 11:25:12 2009 - clamd daemon 0.95rc2 (OS: solaris2.9,
ARCH:
sparc, CPU: sparc)
Tue Mar 17 11:25:12 2009 - Running as user root (UID 0, GID 0)
Tue Mar 17 11:25:12 2009 - Log file size limit disabled.
Tue Mar 17 11:25:12 2009 - Reading databases from /var/lib/clamav
Tue Mar 17 11:25:12 2009 - Not loading PUA signatures.
Tue Mar 17 11:25:17 2009 - Loaded 521958 signatures.
Tue Mar 17 11:25:17 2009 - LOCAL: Unix socket
file /var/lib/clamav/clamd.sock
Tue Mar 17 11:25:17 2009 - LOCAL: Setting connection queue length to
30
Tue Mar 17 11:25:17 2009 - Limits: Global size limit set to 104857600
bytes.
Tue Mar 17 11:25:17 2009 - Limits: File size limit set to 26214400
bytes.
Tue Mar 17 11:25:17 2009 - Limits: Recursion level limit set to 16.
Tue Mar 17 11:25:17 2009 - Limits: Files limit set to 1.
Tue Mar 17 11:25:17 2009 - Archive support enabled.
Tue Mar 17 11:25:17 2009 - Archive: Blocking encrypted archives.
Tue Mar 17 11:25:17 2009 - Algorithmic detection enabled.
Tue Mar 17 11:25:17 2009 - Portable Executable support enabled.
Tue Mar 17 11:25:17 2009 - ELF support enabled.
Tue Mar 17 11:25:17 2009 - Detection of broken executables enabled.
Tue Mar 17 11:25:17 2009 - Mail files support enabled.
Tue Mar 17 11:25:17 2009 - OLE2 support enabled.
Tue Mar 17 11:25:17 2009 - PDF support enabled.
Tue Mar 17 11:25:17 2009 - HTML support enabled.
Tue Mar 17 11:25:17 2009 - Self checking every 600 seconds.


But that doesn't seem to stop it from trying to load rar support. How
do I fix the problem on this sun box? I'm NOT seeing the same issue on
Red Hat Linux ES4 and looking at the /usr/local/clamav/lib directory
there seems to be libclamunrar files:

# pwd
/usr/local/clamav
bash-2.05# ls -la lib
total 11140
drwxr-xr-x   3 root root 512 Mar 17 10:57 .
drwx--   8 root root 512 Mar 17 10:57 ..
-rw-r--r--   1 root root 2800532 Mar 17 10:56 libclamav.a
-rwxr-xr-x   1 root root1056 Mar 17 10:56 libclamav.la
lrwxrwxrwx   1 root root  18 Mar 17 10:56 libclamav.so -
libclamav.so.6.0.1
lrwxrwxrwx   1 root root  18 Mar 17 10:56 libclamav.so.6
-
libclamav.so.6.0.1
-rwxr-xr-x   1 root root 2411864 Mar 17 10:56
libclamav.so.6.0.1
-rw-r--r--   1 root root  193688 Mar 17 10:56 libclamunrar.a
-rwxr-xr-x   1 root root1009 Mar 17 10:56 libclamunrar.la
lrwxrwxrwx   1 root root  21 Mar 17 10:56 libclamunrar.so
-
libclamunrar.so.6.0.1
lrwxrwxrwx   1 root root  21 Mar 17 10:56
libclamunrar.so.6 -
libclamunrar.so.6.0.1
-rwxr-xr-x   1 root root  173728 Mar 17 10:56
libclamunrar.so.6.0.1
-rw-r--r--   1 root root   28728 Mar 17 10:56
libclamunrar_iface.a
-rwxr-xr-x   1 root root1098 Mar 17 10:56
libclamunrar_iface.la
lrwxrwxrwx   1 root root  27 Mar 17 10:56
libclamunrar_iface.so
- libclamunrar_iface.so.6.0.1
lrwxrwxrwx   1 root root  27 Mar 17 10:56
libclamunrar_iface.so.6 - libclamunrar_iface.so.6.0.1
-rwxr-xr-x   1 root root   31140 Mar 17 10:56
libclamunrar_iface.so.6.0.1
drwxr-xr-x   2 root root 512 Mar 17 10:57 pkgconfig


Solaris

# version
Machine hardware:   sun4u
OS version: 5.9
Processor type: sparc
Hardware:   SUNW,Sun-Fire-V240

The following components are installed on your system:


Sun Studio 12
Sun Studio 12 C Compiler
Sun Studio 12 C++ Compiler
Sun Studio 12 Tools.h++ 7.1
Sun Studio 12 C++ Standard 64-bit Class Library
Sun Studio 12 Garbage Collector
Sun Studio 12 Fortran 95
Sun Studio 12 IDE
Sun Studio 12 Debugger GUI
Sun Studio 12 Performance Analyzer (including collect, ...)
Sun Studio 12 Performance Library
Sun Studio 12 LockLint
Sun Studio 12 Building Software (including dmake)
Sun Studio 12 Documentation Set
Sun Studio 12 /usr symbolic links and GNOME menu item

version of /opt/SUNWspro/bin/../prod/bin/../../bin/cc: Sun C 5.9
SunOS_sparc 2007/05/03
version of /opt/SUNWspro/bin/../prod/bin/../../bin/CC: Sun C++ 5.9
SunOS_sparc 2007/05/03
version of /opt/SUNWspro/bin/../prod/bin/../../bin/f90: Sun Fortran
95
8.3 SunOS_sparc 2007/05/03
version of /opt/SUNWspro/bin/../prod/bin/../../bin/analyzer: Sun
Analyzer
7.6 SunOS_sparc 

Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread Török Edwin
On 2009-03-17 18:43, George R. Kasica wrote:
 I've compiled the 0.95rc2 here on Solaris and when installed and I run
 the clamd I get the following error but its still running.


 # /usr/local/clamav/sbin/clamd
 LibClamAV Warning: Cannot dlopen: file not found - unrar support
 unavailable
   

It is only a warning, you won't be able to scan RAR archives, but
everything else should still work.

Is /usr/local/clamav/lib on your runtime search path?
If not I think  you can use crle to add it, or set the LD_LIBRARY_PATH
environment variable, and unrar should be working again.

 I thought all I had to do was to have it commented out in clamd.conf

 # Due to license issues libclamav does not support RAR 3.0 archives
 (onlythe
 # old 2.0 format is supported). Because some users report stability
 problems
 # with unrarlib it's disabled by default and you must uncomment the
 directive
 # below to enable RAR 2.0 support.
 # Default: disabled
 #ScanRAR
   

This is an old configuration option that no longer exists.

 But that doesn't seem to stop it from trying to load rar support.

If you don't want RAR support, you can configure with --disable-unrar,
but I don't think that is what you want.

Best regards,
--Edwin
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread George R . Kasica
I'm not sure how to use crle to do this, so I just added to the
LD_LIBRARY_PATH setting. 

All seems well at this point, and you were correct, I wasn't looking
to disable the feature.

Why does this not occur in Red Hap ES4 but on Solaris? Also, I haven't
needed to modify the env variables on any prior versions...what's
changed??

George


On 2009-03-17 18:43, George R. Kasica wrote:
 I've compiled the 0.95rc2 here on Solaris and when installed and I run
 the clamd I get the following error but its still running.


 # /usr/local/clamav/sbin/clamd
 LibClamAV Warning: Cannot dlopen: file not found - unrar support
 unavailable
   

It is only a warning, you won't be able to scan RAR archives, but
everything else should still work.

Is /usr/local/clamav/lib on your runtime search path?
If not I think  you can use crle to add it, or set the LD_LIBRARY_PATH
environment variable, and unrar should be working again.

 I thought all I had to do was to have it commented out in clamd.conf

 # Due to license issues libclamav does not support RAR 3.0 archives
 (onlythe
 # old 2.0 format is supported). Because some users report stability
 problems
 # with unrarlib it's disabled by default and you must uncomment the
 directive
 # below to enable RAR 2.0 support.
 # Default: disabled
 #ScanRAR
   

This is an old configuration option that no longer exists.

 But that doesn't seem to stop it from trying to load rar support.

If you don't want RAR support, you can configure with --disable-unrar,
but I don't think that is what you want.

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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread Török Edwin
On 2009-03-17 20:02, George R. Kasica wrote:
 I'm not sure how to use crle to do this, so I just added to the
 LD_LIBRARY_PATH setting. 

 All seems well at this point, and you were correct, I wasn't looking
 to disable the feature.

 Why does this not occur in Red Hap ES4 but on Solaris? 

Because on Red Hat you probably installed to /usr/local/lib or /usr/lib,
which is already in the runtime linker's
search path?


 Also, I haven't
 needed to modify the env variables on any prior versions...what's
 changed??
   

libclamunrar_iface is now loaded at runtime, see this page which
explains why:
https://wiki.clamav.net/Main/UpgradeNotes095#Packaging_and_Dependencies

Best regards,
--Edwin
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread George R . Kasica
On Tue, 17 Mar 2009 20:07:19 +0200, you wrote:

On 2009-03-17 20:02, George R. Kasica wrote:
 I'm not sure how to use crle to do this, so I just added to the
 LD_LIBRARY_PATH setting. 

 All seems well at this point, and you were correct, I wasn't looking
 to disable the feature.

 Why does this not occur in Red Hap ES4 but on Solaris? 

Because on Red Hat you probably installed to /usr/local/lib or /usr/lib,
which is already in the runtime linker's
search path?
No, both are installed to /usr/local/clamav same for both OS types
here, it makes maintaining this easier on 52 servers when only 2 are
Solaris and the rest are Red Hat EL4.

 Also, I haven't
 needed to modify the env variables on any prior versions...what's
 changed??
libclamunrar_iface is now loaded at runtime, see this page which
explains why:
https://wiki.clamav.net/52 Main/UpgradeNotes095#Packaging_and_Dependencies
OK, though that still doesn't answer why it behaved differently under
Solaris than Red Hat.I'm glad I only have 2 Solaris boxes that
need the changes not 50.that would be a bit more workany way
to avoid this in the future possibly as I'm now concerned if there
would at some point be a change on the Linux side that affects this.

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


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread Török Edwin
On 2009-03-17 20:19, George R. Kasica wrote:
 On Tue, 17 Mar 2009 20:07:19 +0200, you wrote:
 

   
 On 2009-03-17 20:02, George R. Kasica wrote:
 
 I'm not sure how to use crle to do this, so I just added to the
 LD_LIBRARY_PATH setting. 

 All seems well at this point, and you were correct, I wasn't looking
 to disable the feature.

 Why does this not occur in Red Hap ES4 but on Solaris? 
   
 Because on Red Hat you probably installed to /usr/local/lib or /usr/lib,
 which is already in the runtime linker's
 search path?
 
 No, both are installed to /usr/local/clamav same for both OS types
 here, it makes maintaining this easier on 52 servers when only 2 are
 Solaris and the rest are Red Hat EL4.
   

That sounds like a bug (in configure, or libtool maybe?).
Please open a bugreport on bugs.clamav.net, and provide the following
information:
* uname -a
* the full configure line
* attach config.log
* attach clamav-config.h
* attach the output of the following, both when LD_LIBRARY_PATH is set
and not set: truss clamscan test/clam-v*.rar
* attach the output of the following from your RHEL4 box: strace
clamscan test/clam-v*.rar

If it is a libtool problem I'll forward it upstream.

Best regards,
--Edwin
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread George R . Kasica
Bug #1476 created with the requested info.


On 2009-03-17 20:19, George R. Kasica wrote:
 On Tue, 17 Mar 2009 20:07:19 +0200, you wrote:
 

   
 On 2009-03-17 20:02, George R. Kasica wrote:
 
 I'm not sure how to use crle to do this, so I just added to the
 LD_LIBRARY_PATH setting. 

 All seems well at this point, and you were correct, I wasn't looking
 to disable the feature.

 Why does this not occur in Red Hap ES4 but on Solaris? 
   
 Because on Red Hat you probably installed to /usr/local/lib or /usr/lib,
 which is already in the runtime linker's
 search path?
 
 No, both are installed to /usr/local/clamav same for both OS types
 here, it makes maintaining this easier on 52 servers when only 2 are
 Solaris and the rest are Red Hat EL4.
   

That sounds like a bug (in configure, or libtool maybe?).
Please open a bugreport on bugs.clamav.net, and provide the following
information:
* uname -a
* the full configure line
* attach config.log
* attach clamav-config.h
* attach the output of the following, both when LD_LIBRARY_PATH is set
and not set: truss clamscan test/clam-v*.rar
* attach the output of the following from your RHEL4 box: strace
clamscan test/clam-v*.rar

If it is a libtool problem I'll forward it upstream.

Best regards,
--Edwin
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml
___
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml


Re: [Clamav-users] Problems builing in solaris related to unrar libraries

2009-03-17 Thread Dennis Peterson
George R. Kasica wrote:
 I'm not sure how to use crle to do this, so I just added to the
 LD_LIBRARY_PATH setting. 
 
 All seems well at this point, and you were correct, I wasn't looking
 to disable the feature.
 
 Why does this not occur in Red Hap ES4 but on Solaris? Also, I haven't
 needed to modify the env variables on any prior versions...what's
 changed??
 
 George
 

If you run the crle command with no options it will report the current global 
library search path. It will also present a command line example of how to 
recreate this path. Use can use that example and add any additional paths 
needed.

For a complete picture of your installation it might be helpful to run the ldd 
command against clamd on both Solaris and RedHat. Unset LD_LIBRARY_PATH and run:

ldd /usr/local/sbin/clamd (for example)

This will tell you where it is looking for libraries. It may surprise you.

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