--- Begin Message ---
Subject: |
Configuring --with-libsigsegv results in link error |
Date: |
Tue, 17 Aug 2021 14:06:09 -0400 |
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).
Making all in src
CCLD grep
Undefined symbols:
"_stackoverflow_install_handler", referenced from:
_c_stack_action in libgreputils.a(c-stack.o)
"_sigsegv_install_handler", referenced from:
_c_stack_action in libgreputils.a(c-stack.o)
ld: symbol(s) not found
Configure appears to find the library (which is provided by MacPorts)
correctly. The config.log contains:
LIBSIGSEGV='-L/opt/local/lib -lsigsegv'
Compiler
powerpc-apple-darwin8-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot
3) (MacPorts apple-gcc42 5666.3_16)
System
8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007;
root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc
It's an older system but seems close to building the program. Let me know what
additional information would be useful for debugging.
Evan
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#50098: Configuring --with-libsigsegv results in link error |
Date: |
Tue, 17 Aug 2021 12:12:17 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
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.
0001-c-stack-fix-libsigsegv-dependency.patch
Description: Text Data
--- End Message ---