Hi everybody.  I was having the same problem, and was able to compile and
install a new version of OpenSSL (0.9.8y) to /usr/local/ssl just like the
original poster of this thread, but I am still having trouble compiling
clamav-0.98.4-rc1.

If I run ./configure --prefix=/usr --with-openssl=/usr/local/ssl, I get
the following when trying to link clamdtop:

--------

make[2]: Entering directory `/usr/src/software/clamav-0.98.4-rc1/clamdtop'
  CC     optparser.o
  CC     getopt.o
  CC     misc.o
  CC     clamdtop.o
  CCLD   clamdtop
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x99): In function `cl_hash_data':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:144: undefined
reference to `EVP_MD_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0xe8):/usr/src/software/clamav-0.98.4-rc
1/libclamav/crypto.c:171: undefined reference to `EVP_MD_block_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x1d8):/usr/src/software/clamav-0.98.4-r
c1/libclamav/crypto.c:174: undefined reference to `EVP_MD_block_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x2cd): In function
`cl_hash_file_fd_ctx':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:246: undefined
reference to `EVP_MD_CTX_md'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x2d5):/usr/src/software/clamav-0.98.4-r
c1/libclamav/crypto.c:246: undefined reference to `EVP_MD_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x4c1): In function
`cl_verify_signature_hash':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:326: undefined
reference to `EVP_MD_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x585): In function
`cl_verify_signature_fd':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:364: undefined
reference to `EVP_MD_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x6b9): In function
`cl_verify_signature':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:431: undefined
reference to `EVP_MD_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0xba2): In function `cl_sign_data':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:656: undefined
reference to `EVP_MD_size'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x1096): In function
`cl_validate_certificate_chain':
/usr/src/software/clamav-0.98.4-rc1/libclamav/crypto.c:860: undefined
reference to `X509_VERIFY_PARAM_new'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x10af):/usr/src/software/clamav-0.98.4-
rc1/libclamav/crypto.c:862: undefined reference to
`X509_VERIFY_PARAM_set_flags'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x10be):/usr/src/software/clamav-0.98.4-
rc1/libclamav/crypto.c:863: undefined reference to `X509_STORE_set1_param'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x11a7):/usr/src/software/clamav-0.98.4-
rc1/libclamav/crypto.c:937: undefined reference to `X509_VERIFY_PARAM_free'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x1215):/usr/src/software/clamav-0.98.4-
rc1/libclamav/crypto.c:923: undefined reference to `X509_VERIFY_PARAM_free'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-crypto.o)(.text+0x1267):/usr/src/software/clamav-0.98.4-
rc1/libclamav/crypto.c:912: undefined reference to `X509_VERIFY_PARAM_free'
../libclamav/.libs/libclamav_internal_utils_nothreads.a(libclamav_internal_
utils_nothreads_la-conv.o)(.text+0xa8): In function `cl_base64_decode':
/usr/src/software/clamav-0.98.4-rc1/libclamav/conv.c:96: undefined
reference to `BIO_set_flags'
collect2: ld returned 1 exit status
make[2]: *** [clamdtop] Error 1
make[2]: Leaving directory `/usr/src/software/clamav-0.98.4-rc1/clamdtop'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/software/clamav-0.98.4-rc1'
make: *** [all] Error 2

--------

However, if I omit the --prefix=/usr configure option, the compile works
fine.

Any ideas?



Todd A. Aiken
Systems Analyst & Administrator
ITS Department
BISHOP'S UNIVERSITY
2600 College Street
Sherbrooke, Quebec
CANADA   J1M 1Z7




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

Reply via email to