pcdenhelder
New member
- Joined
- Aug 12, 2020
- Messages
- 4
FYI!
Whenever i try to build clamav with custombuild i get:
I have updated openssl because the default on centos is very old.. Installed the latest version but removed that because i thought it was the problem at first.
So i installed 1.1.1d to be sure..
when i build from source:
it seems to work but when i use custombuild i get:
The build works when i add
Maybe someone knows the right way to get the linking of the libs right.. anyways, this worked for me.
Whenever i try to build clamav with custombuild i get:
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_new'
../libclamav/.libs/libclamav.so: undefined reference to `X509_CRL_get0_nextUpdate'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_free'
I have updated openssl because the default on centos is very old.. Installed the latest version but removed that because i thought it was the problem at first.
So i installed 1.1.1d to be sure..
which openssl
/usr/local/ssl/bin/openssl
openssl version
OpenSSL 1.1.1d 10 Sep 2019
ldd /usr/local/ssl/bin/openssl
linux-vdso.so.1 => (0x00007546d7ebd000)
libssl.so.1.1 => /usr/local/ssl/lib/libssl.so.1.1 (0x00007546d7c1f000)
libcrypto.so.1.1 => /usr/local/ssl/lib/libcrypto.so.1.1 (0x00007546d775b000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x00007546d7545000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007546d7341000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007546d7124000)
libc.so.6 => /lib64/libc.so.6 (0x00007546d6d8f000)
/lib64/ld-linux-x86-64.so.2 (0x00007546d7ebe000)
when i build from source:
./configure --prefix=/usr/local --sysconfdir=/etc --with-xml=/usr/local --with-zlib=/usr --with-libcurl=/usr/local --with-openssl=/usr/local/ssl/
it seems to work but when i use custombuild i get:
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_new'
../libclamav/.libs/libclamav.so: undefined reference to `X509_CRL_get0_nextUpdate'
../libclamav/.libs/libclamav.so: undefined reference to `EVP_MD_CTX_free'
collect2: ld returned 1 exit status
make[2]: *** [clamscan] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.102.3/clamscan'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.102.3'
make: *** [all] Error 2
The build works when i add
--with-openssl=/usr/local/ssl
to the /usr/local/directadmin/custombuild/configure/clamav/configure.clamav
Maybe someone knows the right way to get the linking of the libs right.. anyways, this worked for me.