Subject: Re: bug#50985: Merging gnulib for Emacs 28.1?

From: Ken Brown <[email-masked]>
Date: Tue, 5 Oct 2021 08:44:27 -0400

On 10/4/2021 7:44 PM, Andy Moreton wrote:
>    CCLD     temacs.exe
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: comp.o: in function `comp_hash_source_file':
> C:/emacs/git/emacs/emacs-28/src/comp.c:725: undefined reference to `md5_stream'
> collect2.exe: error: ld returned 1 exit status
> make[1]: *** [Makefile:647: temacs.exe] Error 1
> make[1]: Leaving directory '/c/emacs/git/emacs/emacs-28/build/mingw64-x86_64-O2-native/src'
> make: *** [Makefile:449: src] Error 2
> 
> That looks like relying on something that has moved to a different
> gnulib module, or the native compiler code will need some adjustment.

md5_stream has moved to a new file, md5-stream.c, which didn't get imported into 
emacs:

commit 439979c0004197d6e0dd67c7807f57edacdf8a0d
Author: Bruno Haible <[email-masked]>
Date:   Sun Sep 19 01:35:19 2021 +0200

     md5: Clarify module to source relation.

     * lib/md5-stream.c: New file, extracted from lib/md5.c.
     * lib/md5.c: Don't include stdlib.h, unlocked-io.h.
     (BLOCKSIZE, md5_stream): Moved to md5-stream.c.
     * lib/md5.h: Tweak.
     * modules/crypto/md5 (Files): Add lib/md5-stream.c.
     (configure.ac): Don't define GL_COMPILE_CRYPTO_STREAM.
     (Makefile.am): Arrange to compile md5-stream.c.
     (Link): Mention $(LIB_CRYPTO).

Ken