Subject: bug#45303: 28.0.50; [feature/native-comp] comp.c compilation error on Windows 10

From: Andrea Corallo <[email-masked]>
Date: Thu, 17 Dec 2020 21:41:44 +0000

"Liāu, Kiong-Gē 廖宮毅" <[email-masked]> writes:

> commit 87f6e93799  lead to successful compilation of comp.c, but lead
> to linker errors while generating temacs.exe:
>
>
>  CCLD     temacs.exe
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> comp.o: in function `md5_gz_stream':
> C:\msys64\home\VWinUser0\Downloads\emacs\native-comp\build\src/../../src/src/comp.c:713:
> undefined reference to `inflateInit2_'
> C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe:
> C:\msys64\home\VWinUser0\Downloads\emacs\native-comp\build\src/../../src/src/comp.c:730:
> undefined reference to `inflate'

That's curious, looks you've not zlib but from the config.log you do...

Closing the day and will think about that tomorrow, perhaps someone will
suggest what I'm missing in the meanwhile.

  Andrea