Failed to find EVP_MD_CTX_copy function in openssl crypto lib.

RolandK via rsync <[email protected]> Wed, 25 Feb 2026 20:01:05 +0100
Newsgroups gmane.network.rsync.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============6370644230204481321==
Content-Type: multipart/alternative;
 boundary="------------UfmflJGjyyWT8T92EnU6lcbl"

This is a multi-part message in MIME format.
--------------UfmflJGjyyWT8T92EnU6lcbl
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

hello,

does anybody have clue why rsync compile of latest rsync bails out with=20
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 being=
=20
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 function

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 |grep=20
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

--------------UfmflJGjyyWT8T92EnU6lcbl
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>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>
      &lt;snip&gt;<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.<br>
      <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://git=
hub.com/RsyncProject/rsync/blob/master/INSTALL.md">https://github.com/Rsyn=
cProject/rsync/blob/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" href=3D"mailto:root@vm1:/tmp/r=
sync-3.4.1#">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&gt;&amp;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/RsyncP=
roject/rsync/issues/823">https://github.com/RsyncProject/rsync/issues/823<=
/a></p>
  </body>
</html>

--------------UfmflJGjyyWT8T92EnU6lcbl--


--===============6370644230204481321==
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

--===============6370644230204481321==--