[vim/vim] Can't compile vim with GTK 4 (Issue #20404)

2 views
Skip to first unread message

simozz

unread,
4:35 AM (11 hours ago) 4:35 AM
to vim/vim, Subscribed
gveezz created an issue (vim/vim#20404)

Steps to reproduce

I am trying to compile vim with GTK4 (4.18.6+ds-2 on Debian 13) with the following configuration:

export CFLAGS="-Ofast"; \
./configure \
--prefix=/usr/local/ \
--with-features=huge \
--enable-gtk4-check \
--enable-gui=gtk4 \
--enable-multibyte \
--enable-wayland \
--enable-fork \
--enable-terminal=no \
--enable-xim \
--with-tlib=ncurses \
--with-x \
--enable-fontset \
--enable-autoservername \
--disable-rightleft \
--disable-arabic \
--disable-farsi \
--enable-gpm=yes \
--enable-cscope \
--enable-year2038 \
--with-gnome-includes=/usr/include/gtk-4.0

But the compile step fails with highlight.c:

highlight.c: In function ‘highlight_set_font’:
highlight.c:1045:13: error: implicit declaration of function ‘gui_mch_free_fontset’; did you mean ‘gui_mch_free_font’? [-Wimplicit-function-declaration]
1045 | gui_mch_free_fontset(temp_sg_fontset);
| ^~~~~~~~~~~~~~~~~~~~
| gui_mch_free_font
highlight.c: In function ‘fontset_name2handle’:
highlight.c:2410:12: error: implicit declaration of function ‘gui_mch_get_fontset’; did you mean ‘gui_mch_get_font’? [-Wimplicit-function-declaration]
2410 | return gui_mch_get_fontset(name, TRUE, fixed_width);
| ^~~~~~~~~~~~~~~~~~~
| gui_mch_get_font
highlight.c:2410:12: error: returning ‘int’ from a function with return type ‘GuiFontset’ {aka ‘struct _PangoFontDescription *’} makes pointer from integer without a cast [-Wint-conversion]
2410 | return gui_mch_get_fontset(name, TRUE, fixed_width);

Compiling for GTK 3 has no problem.

Expected behaviour

Compile vim gtk without errors

Version of Vim

v9.2.0580

Environment

Linux Debian 13
BSH

Logs and stack traces

highlight.c: In function ‘highlight_set_font’:
highlight.c:1045:13: error: implicit declaration of function ‘gui_mch_free_fontset’; did you mean ‘gui_mch_free_font’? [-Wimplicit-function-declaration]
 1045 |             gui_mch_free_fontset(temp_sg_fontset);
      |             ^~~~~~~~~~~~~~~~~~~~
      |             gui_mch_free_font
highlight.c: In function ‘fontset_name2handle’:
highlight.c:2410:12: error: implicit declaration of function ‘gui_mch_get_fontset’; did you mean ‘gui_mch_get_font’? [-Wimplicit-function-declaration]
 2410 |     return gui_mch_get_fontset(name, TRUE, fixed_width);
      |            ^~~~~~~~~~~~~~~~~~~
      |            gui_mch_get_font
highlight.c:2410:12: error: returning ‘int’ from a function with return type ‘GuiFontset’ {aka ‘struct _PangoFontDescription *’} makes pointer from integer without a cast [-Wint-conversion]
 2410 |     return gui_mch_get_fontset(name, TRUE, fixed_width);
``


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20404@github.com>

Reply all
Reply to author
Forward
0 new messages