Failed to find EVP_MD_CTX_copy function in openssl crypto lib.
RolandK
devzero at web.de
Wed Feb 25 19:28:58 UTC 2026
ok - i managed to fix my configure issue with
./configure CFLAGS="-static" LIBS="-lssl -lcrypto -lzstd -lz"
the error from configure failure with EVP_MD_CTX was misleading, i
should have looked into config.log
sorry for the noise
roland
Am 25.02.26 um 20:01 schrieb RolandK via rsync:
>
> hello,
>
> does anybody have clue why rsync compile of latest rsync bails out
> with this error ?
>
> i'm trying to do a static build on debian 13
>
> ./configure CFLAGS="-static"
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> <snip>
> checking for library containing EVP_MD_CTX_copy... no
> checking whether to enable MD5 ASM optimizations... no
> checking whether to enable rolling-checksum ASM optimizations... no
> checking whether to enable xxhash checksum support... yes
> checking for library containing XXH64_createState... -lxxhash
> checking whether to enable zstd compression... yes
> checking for library containing ZSTD_minCLevel... -lzstd
> checking whether to enable LZ4 compression... yes
> checking for library containing LZ4_compress_default... -llz4
>
> Configure found the following issues:
>
> - Failed to find EVP_MD_CTX_copy function in openssl crypto lib.
>
> See the INSTALL file for hints on how to install the missing libraries
> and/or
> how to generate (or fetch) manpages:
> https://github.com/RsyncProject/rsync/blob/master/INSTALL.md
>
> To disable one or more features, the relevant configure options are:
> --disable-openssl
>
> configure.sh: error: Aborting configure run
>
> when removing static option it builds fine
>
> i grepped through 3.4.1 sources but it seems EVP_MD_CTX_copy isn't
> being used there at all, there is only check for it in configure.sh
>
> libcrypt/libcrypto.a for static linking ( from package libssl-dev
> 3.5.4-1~deb13u2 ) does seem to be there and it also contains that function
>
> root at vm1:/tmp/rsync-3.4.1# ./configure |grep EVP
> checking for library containing EVP_MD_CTX_copy... -lcrypto
>
> # find /usr/ -name "*.a" |grep crypto
> /usr/lib/x86_64-linux-gnu/libcrypto.a
> /usr/lib/x86_64-linux-gnu/libcrypto++.a
> /usr/lib/x86_64-linux-gnu/libcryptopp.a
>
> # nm -g --defined-only /usr/lib/x86_64-linux-gnu/libcrypto.a 2>&1
> |grep EVP_MD_CTX_copy
> 0000000000001ba0 T EVP_MD_CTX_copy
> 00000000000016f0 T EVP_MD_CTX_copy_ex
>
> so what's going on here ?
>
> regards
>
> ps:
> https://github.com/RsyncProject/rsync/issues/823
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20260225/0ef37177/attachment.htm>
More information about the rsync
mailing list