Re: Failed to find EVP_MD_CTX_copy function in openssl crypto lib.
RolandK via rsync <[email protected]> Wed, 25 Feb 2026 20:28:58 +0100
| Newsgroups | gmane.network.rsync.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============1833395745525840432==
Content-Type: multipart/alternative;
boundary="------------Kbrgf0V9VLqPUWXG106YL6Om"
This is a multi-part message in MIME format.
--------------Kbrgf0V9VLqPUWXG106YL6Om
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
ok - i managed to fix my configure issue with
./configure CFLAGS=3D"-static" LIBS=3D"-lssl -lcrypto -lzstd -lz"
the error from configure failure with EVP_MD_CTX was misleading, i=20
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=20
> with this error ?
>
> i'm trying to do a static build on debian 13
>
> ./configure CFLAGS=3D"-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=
=20
> 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:
> =C2=A0 =C2=A0 --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=20
> being used there at all, there is only check for it in configure.sh
>
> libcrypt/libcrypto.a for static linking ( from package libssl-dev=20
> 3.5.4-1~deb13u2 ) does seem to be there and it also contains that functi=
on
>
> root@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=20
> |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
>
>
--------------Kbrgf0V9VLqPUWXG106YL6Om
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-=
8">
</head>
<body>
<p>ok - i managed to fix my configure issue with=C2=A0<br>
<br>
./configure CFLAGS=3D"-static" LIBS=3D"-lssl -lcrypto -lzstd -lz"<br=
>
<br>
the error from configure failure with EVP_MD_CTX was misleading, i
should have looked into config.log<br>
<br>
sorry for the noise<br>
roland</p>
<div class=3D"moz-cite-prefix">Am 25.02.26 um 20:01 schrieb RolandK
via rsync:<br>
</div>
<blockquote type=3D"cite"
cite=3D"mid:[email protected]">
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUT=
F-8">
<p>hello,=C2=A0<br>
<br>
does anybody have clue why rsync compile of latest rsync bails
out with this error ?<br>
<br>
i'm trying to do a static build on debian 13<br>
<br>
./configure CFLAGS=3D"-static"<br>
checking for gcc... gcc<br>
checking whether the C compiler works... yes<br>
checking for C compiler default output file name... a.out<br>
checking for suffix of executables...<br>
<snip><br>
checking for library containing EVP_MD_CTX_copy... no<br>
checking whether to enable MD5 ASM optimizations... no<br>
checking whether to enable rolling-checksum ASM optimizations...
no<br>
checking whether to enable xxhash checksum support... yes<br>
checking for library containing XXH64_createState... -lxxhash<br>
checking whether to enable zstd compression... yes<br>
checking for library containing ZSTD_minCLevel... -lzstd<br>
checking whether to enable LZ4 compression... yes<br>
checking for library containing LZ4_compress_default... -llz4<br>
<br>
Configure found the following issues:<br>
<br>
- Failed to find EVP_MD_CTX_copy function in openssl crypto lib.<b=
r>
<br>
See the INSTALL file for hints on how to install the missing
libraries and/or<br>
how to generate (or fetch) manpages:<br>
=C2=A0 =C2=A0 <a class=3D"moz-txt-link-freetext"
href=3D"https://github.com/RsyncProject/rsync/blob/master/INSTALL.md"
moz-do-not-send=3D"true">https://github.com/RsyncProject/rsync/b=
lob/master/INSTALL.md</a><br>
<br>
To disable one or more features, the relevant configure options
are:<br>
=C2=A0 =C2=A0 --disable-openssl<br>
<br>
configure.sh: error: Aborting configure run<br>
<br>
when removing static option it builds fine<br>
<br>
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<br>
<br>
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<br>
<br>
<a class=3D"moz-txt-link-abbreviated moz-txt-link-freetext"
href=3D"mailto:root@vm1:/tmp/rsync-3.4.1#"
moz-do-not-send=3D"true">root@vm1:/tmp/rsync-3.4.1#</a>
./configure |grep EVP<br>
checking for library containing EVP_MD_CTX_copy... -lcrypto<br>
<br>
# find /usr/ -name "*.a" |grep crypto<br>
/usr/lib/x86_64-linux-gnu/libcrypto.a<br>
/usr/lib/x86_64-linux-gnu/libcrypto++.a<br>
/usr/lib/x86_64-linux-gnu/libcryptopp.a<br>
<br>
# nm -g --defined-only /usr/lib/x86_64-linux-gnu/libcrypto.a
2>&1 |grep EVP_MD_CTX_copy<br>
0000000000001ba0 T EVP_MD_CTX_copy<br>
00000000000016f0 T EVP_MD_CTX_copy_ex<span><br>
</span><br>
so what's going on here ?<br>
<br>
regards<br>
<br>
ps:<br>
<a class=3D"moz-txt-link-freetext"
href=3D"https://github.com/RsyncProject/rsync/issues/823"
moz-do-not-send=3D"true">https://github.com/RsyncProject/rsync/i=
ssues/823</a></p>
<br>
<fieldset class=3D"moz-mime-attachment-header"></fieldset>
</blockquote>
</body>
</html>
--------------Kbrgf0V9VLqPUWXG106YL6Om--
--===============1833395745525840432==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
--===============1833395745525840432==--