Hello ClamAV Users,

I have a Solaris 10 system.
Openssl 1.0.1g is installed at /usr/local/ssl configured like so:
./config  --prefix=/usr/local/ssl  --openssldir=/usr/local/ssl

old Openssl 0.9.7d is installed at /usr/sfw from the appropriate solaris 
packages.

Im building clamav 0.98.4 and configuring it like so:
./configure  --prefix=/opt/clamav  --disable-clamav  
--with-openssl=/usr/local/ssl
Note: the target Sol10 system will have clamav installed at /opt/clamav
Note2: the build Sol10 system does not have a clamav user, but the target Sol10 
system does.

Configure and build are successful.

List the dynamic dependencies of the compiled clamdscan executable.
$ ldd clamdscan
libssl.so.1.0.0 => (file not found)
libcrypto.so.1.0.0 => (file not found)
...

It cant find:
/usr/local/ssl/lib/libssl.so
/usr/local/ssl/lib/libssl.so.1.0.0
/usr/local/ssl/lib/libcrypto.so
/usr/local/ssl/lib/libcrypto.so.1.0.0

I copy libssl.so.1.0.0 and libcrypto.so.1.0.0 to /usr/sfw/lib.
I list the dependencies of clamdscan again.
$ ldd clamdscan
libssl.so.1.0.0 => /usr/sfw/lib/libssl.so.1.0.0
libcrypto.so.1.0.0 => /usr/sfw/lib/libcrypto.so.1.0.0
...

Shouldn't clamdscan be looking to /usr/local/ssl/lib for the openssl libs?
I believe there may be something wrong in the generated Makefile.
One of the compile commands probably needs to include "-R/usr/local/ssl/lib"
Thus the clamdscan executable will automatically look in /usr/local/ssl/lib for 
the libs.
I attempted to modify the Makefile manually. I changed:
SSL_LDFLAGS = -L/usr/local/ssl/lib
To
SSL_LDFLAGS = -L/usr/local/ssl/lib -R/usr/local/ssl/lib
But the issue remained after build.

I have built many versions of clamav such as 0.98.1 for my target system before.
But this newest version now requires openssl.

Any ideas?

Thank you
Brandon Henderson
_______________________________________________
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/support/ml

Reply via email to