bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#74312: 31.0.50; Cygw32 build break


From: Eli Zaretskii
Subject: bug#74312: 31.0.50; Cygw32 build break
Date: Tue, 12 Nov 2024 14:42:32 +0200

> Date: Mon, 11 Nov 2024 17:50:47 -0500
> Cc: kzhr@d1.dion.ne.jp, 74312@debbugs.gnu.org
> From: Ken Brown <kbrown@cornell.edu>
> 
> The build still fails:
> 
> In function ‘dump_mm_heap_cb_release’,
>      inlined from ‘dump_mmap_contiguous_heap’ at ../../src/pdumper.c:4919:3,
>      inlined from ‘dump_mmap_contiguous’ at ../../src/pdumper.c:5064:50,
>      inlined from ‘pdumper_load’ at ../../src/pdumper.c:5765:8:
> ../../src/pdumper.c:4857:11: warning: null pointer dereference 
> [-Wnull-dereference]
>   4857 |   if (--cb->refcount == 0)
>        |         ~~^~~~~~~~~~
> ../../src/pdumper.c:4857:6: warning: null pointer dereference 
> [-Wnull-dereference]
>   4857 |   if (--cb->refcount == 0)
>        |      ^
> In file included from ../../src/pdumper.c:26:
> In function ‘dump_mm_heap_cb_release’,
>      inlined from ‘dump_mm_heap_cb_release’ at ../../src/pdumper.c:4854:1,
>      inlined from ‘dump_mmap_contiguous_heap’ at ../../src/pdumper.c:4919:3,
>      inlined from ‘dump_mmap_contiguous’ at ../../src/pdumper.c:5064:50,
>      inlined from ‘pdumper_load’ at ../../src/pdumper.c:5765:8:
> ../../src/pdumper.c:4859:7: warning: null pointer dereference 
> [-Wnull-dereference]
>   4859 |       free (cb->mem);
>        |       ^
> 
> ../../src/w32menu.c: In function ‘w32_popup_dialog’:
> ../../src/w32menu.c:200:21: warning: implicit declaration of function 
> ‘pMultiByteToWideChar’; did you mean ‘MultiByteToWideChar’? 
> [-Wimplicit-function-declaration]
>    200 |                   * pMultiByteToWideChar (CP_UTF8, 0, title, 
> -1, NULL, 0));
>        |                     ^~~~~~~~~~~~~~~~~~~~
>        |                     MultiByteToWideChar
> ../../src/w32menu.c:200:21: warning: nested extern declaration of 
> ‘pMultiByteToWideChar’ [-Wnested-externs]
> 
> ../../src/w32dwrite.c:41: warning: macro "INITGUID" is not used 
> [-Wunused-macros]
>     41 | # define INITGUID
>        |
> ../../src/w32dwrite.c: In function ‘w32_dwrite_encode_char’:
> ../../src/w32dwrite.c:662:51: warning: pointer targets in passing 
> argument 2 of ‘dwrite_font_face->lpVtbl->GetGlyphIndicesA’ differ in 
> signedness [-Wpointer-sign]
>    662 |                                                   &c, 1, &index);
>        |                                                   ^~
>        |                                                   |
>        |                                                   int *
> ../../src/w32dwrite.c:662:51: note: expected ‘const UINT32 *’ {aka 
> ‘const unsigned int *’} but argument is of type ‘int *’
> 
> /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: 
> w32menu.o: in function `w32_popup_dialog':
> /home/kbrown/src/emacs/master/build-w32/src/../../src/w32menu.c:200:(.text+0xb6a):
>  
> undefined reference to `pMultiByteToWideChar'
> /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: 
> /home/kbrown/src/emacs/master/build-w32/src/../../src/w32menu.c:202:(.text+0xba5):
>  
> undefined reference to `pMultiByteToWideChar'
> /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: 
> /home/kbrown/src/emacs/master/build-w32/src/../../src/w32menu.c:252:(.text+0xc1e):
>  
> undefined reference to `pMultiByteToWideChar'
> /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: 
> /home/kbrown/src/emacs/master/build-w32/src/../../src/w32menu.c:256:(.text+0xc6a):
>  
> undefined reference to `pMultiByteToWideChar'
> /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: 
> /home/kbrown/src/emacs/master/build-w32/src/../../src/w32menu.c:230:(.text+0xdfe):
>  
> undefined reference to `pMultiByteToWideChar'
> /usr/lib/gcc/x86_64-pc-cygwin/12/../../../../x86_64-pc-cygwin/bin/ld: 
> w32menu.o:/home/kbrown/src/emacs/master/build-w32/src/../../src/w32menu.c:233:
>  
> more undefined references to `pMultiByteToWideChar' follow
> 
> I don't have time right now to look into the reasons for these errors 
> and warnings, but, again, I'll try to do that within a few days if no 
> one beats me to it.

Thanks, I tried to fix those.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]