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.
Compile vim gtk without errors
v9.2.0580
Linux Debian 13
BSH
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.![]()