John Marriott wrote:

> > On 03-Apr-2022 20:23, Bram Moolenaar wrote:
> >> Patch 8.2.4670
> >> Problem:=C2=A0=C2=A0=C2=A0 Memory allocation failures for new tab page n=
> ot tested.
> >> Solution:=C2=A0=C2=A0 Add tests with failing memory allocation. (Yegappa=
> n=20
> >> Lakshmanan,
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
>  closes #10067)
> >> Files:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 src/alloc.h, src/blob.c, src/buffer=
> .c, src/window.c,
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
>  src/testdir/test_blob.vim, src/testdir/test_buffer.vim,
> >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
>  src/testdir/test_tabpage.vim,=20
> >> src/testdir/test_window_cmd.vim
> >>
> >>
> > After applying patches 8.2.4670 to 8.2.4677, mingw64 (gcc 11.2.0)=20
> > throws this linker error:
> > <snip>
> > gcc -I. -Iproto -DWIN32 -DWINVER=0x0603 -D_WIN32_WINNT=0x0603 

[...]

> > -lcomdlg32 -lcomctl32 -lnetapi32 -lversion -lole32 -luuid
> > d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-> 
> > mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
> > gobjnative/blob.o:blob.c:(.text+0x11): undefined reference to 
> > `alloc_clear_id'
> > d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-> 
> > mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
> > gobjnative/blob.o:blob.c:(.text+0x54): undefined reference to 
> > `alloc_clear_id'
> > d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-> 
> > mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
> > gobjnative/blob.o:blob.c:(.text+0xe1): undefined reference to 
> > `alloc_clear_id'
> > d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-> 
> > mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
> > gobjnative/blob.o:blob.c:(.text+0x4e7): undefined reference to 
> > `alloc_clear_id'
> > d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-> 
> > mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
> > gobjnative/blob.o:blob.c:(.text+0x70b): undefined reference to 
> > `alloc_clear_id'
> > d:/users/john/documents/software/mingw/mingw64/bin/../lib/gcc/x86_64-w64-> 
> > mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
> > gobjnative/blob.o:blob.c:(.text+0xa61): more undefined references to 
> > `alloc_clear_id' follow
> > collect2.exe: error: ld returned 1 exit status
> > make: *** [Make_cyg_ming.mak:1107: gvim.exe] Error 2
> > </snip>

Apparently this combination of features is not covered by CI.

> > Sorry I don't have a patch.

Terrible! :-)

> The attached patch seems to fix it.

Ah, there it is.  Thanks.

-- 
BEDEVERE: How do you know so much about swallows?
ARTHUR:   Well you have to know these things when you're a king, you know.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220403210047.7DFFD1C0561%40moolenaar.net.

Raspunde prin e-mail lui