On 8/17/21 11:06 AM, Evan Miller wrote:
Using grep 3.7 (as well as master), I'm seeing undefined symbol errors after pointing the build to use a local installation of libsigsegv (version 2.13).
Thanks for reporting that. It's a bug in Gnulib's c-stack module, which I fixed in Gnulib by installing the attached. The problem should be fixed in the next Grep release. In the meantime you should be able work around the Grep problem by not using --with-libsigsegv.
>From 592555eb0ed347452cf3834e1638ab474e948532 Mon Sep 17 00:00:00 2001 From: Paul Eggert <egg...@cs.ucla.edu> Date: Tue, 17 Aug 2021 12:06:42 -0700 Subject: [PATCH] c-stack: fix libsigsegv dependency Problem reported for GNU grep by Evan Miller (Bug#50098). * m4/c-stack.m4 (gl_C_STACK): Call gl_LIBSIGSEGV before testing gl_cv_lib_sigsegv. --- ChangeLog | 7 +++++++ m4/c-stack.m4 | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ddf2943b0..d42551ce1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-08-17 Paul Eggert <egg...@cs.ucla.edu> + + c-stack: fix libsigsegv dependency + Problem reported for GNU grep by Evan Miller (Bug#50098). + * m4/c-stack.m4 (gl_C_STACK): Call gl_LIBSIGSEGV before + testing gl_cv_lib_sigsegv. + 2021-08-14 Bruno Haible <br...@clisp.org> doc: Update for glibc 2.34. diff --git a/m4/c-stack.m4 b/m4/c-stack.m4 index 7cccb06c1..f3de54fad 100644 --- a/m4/c-stack.m4 +++ b/m4/c-stack.m4 @@ -7,12 +7,13 @@ # Written by Paul Eggert. -# serial 23 +# serial 24 AC_DEFUN([gl_C_STACK], [ dnl 'c-stack' needs -lsigsegv if and only if the 'sigsegv' module needs it. if test "$with_libsigsegv" = yes; then + gl_LIBSIGSEGV if test "$gl_cv_lib_sigsegv" = yes; then AC_SUBST([LIBCSTACK], [$LIBSIGSEGV]) AC_SUBST([LTLIBCSTACK], [$LTLIBSIGSEGV]) -- 2.30.2