Good day Chuck,

On 05/12/14 5:13 PM, "Charles Swiger" <cswi...@mac.com> wrote:

> Hi, Gary--
> 
> On May 12, 2014, at 12:08 PM, Gary <o...@ibsltd.ca> wrote:
>> I have been using ClamAV for years and never had any issues!!
>> 
>> Oh well... - a good run indeed.
>> 
>> Mac OSX 10.5.8
>> clamav-0.98.3
>> 
>> It will configure - the make file exits with the following error:
>> 
>> crypto.c: In function 'cl_validate_certificate_chain':
>> crypto.c:834: error: 'X509_VERIFY_PARAM' undeclared (first use in this
>> function)
> 
> I believe MacOS X 10.5.8 had openssl-0.9.7l.
> 
> X509_VERIFY_PARAM seems to have been introduced with openssl-0.9.8; it looks
> like
> ClamAV is using the capability to look for SSL cert revocation.
> 
> [ ... ]
>> I have tested the build on OSX 10.6 - no problem. All systems that are still
>> using 10.5.8 fail with the above error (that I have tested).
>> 
>> Reinstalled clamav-0.98.1 - no issues.
>> 
>> Any suggestions? I can not upgrade these systems to a newer OS - they are
>> located in a colo facility.
> 
> Try building openssl-0.9.8y or openssl-1.0.1g to /usr/local (or /opt/local,
> whatever).
> 
> Invoke "./configure --with-openssl=/usr/local/ssl".
> (You might need to tweak CPPFLAGS and LDFLAGS to match.)


./configure --with-openssl=/usr/local/ssl

Well that got me a little bit further - still having issues...

I have already upgraded to the most recent version of SSL (openssl-1.0.1g).

Tried using your configure suggestion above - this is the make error:

ld warning: in ../libclamav/libclamav.map, file is not of required
architecture
Undefined symbols:
  "_EVP_MD_CTX_md", referenced from:
      _cl_hash_file_fd_ctx in libclamav_internal_utils_la-crypto.o
      _cl_hash_file_fd in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature_fd in libclamav_internal_utils_la-crypto.o
  "_EVP_MD_block_size", referenced from:
      _cl_hash_data in libclamav_internal_utils_la-crypto.o
      _cl_hash_data in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature in libclamav_internal_utils_la-crypto.o
  "_BIO_set_flags", referenced from:
      _cl_base64_decode in libclamav_internal_utils_la-conv.o
  "_X509_VERIFY_PARAM_new", referenced from:
      _cl_validate_certificate_chain in libclamav_internal_utils_la-crypto.o
  "_X509_STORE_set1  "_X509_STORE_set1  "_X509_STORE_set1  "_X509_STORE_set1
"_X509_STORE_set1  "_X509_STORE_set1  "_X509_STORE_set1  "_X509_STORE_set1
"_X509_STORE_set1_param", referenced from:
      _cl_validate_certificate_chain in libclamav_internal_utils_la-crypto.o
  "_EVP_MD_size", referenced from:
      _cl_sign_data in libclamav_internal_utils_la-crypto.o
      _cl_sign_data_keyfile in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature_hash in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature_hash_x509 in libclamav_internal_utils_la-crypto.o
      _cl_hash_file_fd_ctx in libclamav_internal_utils_la-crypto.o
      _cl_hash_file_fd in libclamav_internal_utils_la-crypto.o
      _cl_sign_file_fd in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature_fd in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature_fd in libclamav_internal_utils_la-crypto.o
      _cl_hash_data in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature in libclamav_internal_utils_la-crypto.o
      _cl_verify_signature_hash_x509_keyfile in
libclamav_internal_utils_la-crypto.o
      _cl_sign_file_fp in libclamav_internal_utils_la-crypto.o
  "_X509_VERIFY_PARAM_free", referenced from:
      _cl_validate_certificate_chain in libclamav_internal_utils_la-crypto.o
      _cl_validate_certificate_chain in libclamav_internal_utils_la-crypto.o
      _cl_validate_certificate_chain in libclamav_internal_utils_la-crypto.o
  "_X509_VERIFY_PARAM_set_flags", referenced from:
      _cl_validate_certificate_chain in libclamav_internal_utils_la-crypto.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [libclamav.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2


I have also tried:
export LDFLAGS="-L/opt/local/lib"
export CPPFLAGS="-I/usr/local"
./configure --with-openssl=/usr/local/ssl

Not sure where to go from here...

0.98.1 compiles without issue using only ./configure

--
Gary



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

Reply via email to