GNU bug report logs - #50098
Configuring --with-libsigsegv results in link error

Previous Next

Package: grep;

Reported by: Evan Miller <emmiller <at> gmail.com>

Date: Tue, 17 Aug 2021 18:18:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#50098: closed (Configuring --with-libsigsegv results in link
 error)
Date: Tue, 17 Aug 2021 19:13:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 17 Aug 2021 12:12:17 -0700
with message-id <6b061211-282c-5d79-2dac-51af8a790922 <at> cs.ucla.edu>
and subject line Re: bug#50098: Configuring --with-libsigsegv results in link error
has caused the debbugs.gnu.org bug report #50098,
regarding Configuring --with-libsigsegv results in link error
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
50098: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=50098
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Evan Miller <emmiller <at> gmail.com>
To: bug-grep <at> gnu.org
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

[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Evan Miller <emmiller <at> gmail.com>
Cc: Gnulib bugs <bug-gnulib <at> gnu.org>, 50098-done <at> debbugs.gnu.org
Subject: Re: bug#50098: Configuring --with-libsigsegv results in link error
Date: Tue, 17 Aug 2021 12:12:17 -0700
[Message part 4 (text/plain, inline)]
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 (text/x-patch, attachment)]

This bug report was last modified 3 years and 268 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.