patch 9.1.1497: Link error with shm_open() Commit: https://github.com/vim/vim/commit/e92989b07a9ff8ae67400fa1d550a6ceed92f2e0 Author: Christian Brabandt <c...@256bit.org> Date: Sun Jun 29 22:39:14 2025 +0200
patch 9.1.1497: Link error with shm_open() Problem: Link error with shm_open() (gcanat, after v9.1.1485) Solution: use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE fixes: #17634 Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/src/auto/configure b/src/auto/configure index df3d84b8a..b72d4edca 100755 --- a/src/auto/configure +++ b/src/auto/configure @@ -9080,7 +9080,7 @@ shm_open("/test", O_CREAT, 0600); return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO" +if ac_fn_c_try_link "$LINENO" then : { printf "%s " "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s " "yes" >&6; }; printf "%s " "#define HAVE_SHM_OPEN 1" >>confdefs.h @@ -9090,7 +9090,8 @@ else case e in #( printf "%s " "no" >&6; } ;; esac fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext CPPFLAGS=$cppflags_save { printf "%s " "$as_me:${as_lineno-$LINENO}: checking --with-wayland argument" >&5 diff --git a/src/configure.ac b/src/configure.ac index 7738433e8..62f6bbb70 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -2392,7 +2392,7 @@ dnl defining FEAT_XFONTSET is delayed, so that it can be disabled for no GUI AC_MSG_CHECKING(if shm_open is available) cppflags_save=$CPPFLAGS CPPFLAGS="$CPPFLAGS $X_CFLAGS" -AC_COMPILE_IFELSE([AC_LANG_PROGRAM( +AC_LINK_IFELSE([AC_LANG_PROGRAM( [#include <sys/mman.h> #include <sys/stat.h> #include <fcntl.h>], [shm_open("/test", O_CREAT, 0600);])], diff --git a/src/version.c b/src/version.c index 2cf34ea33..7b13da4da 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1497, /**/ 1496, /**/ -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1uVyta-00B5Ns-SS%40256bit.org.