GNU bug report logs -
#50098
Configuring --with-libsigsegv results in link error
Previous Next
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
Message #31 received at 50098 <at> debbugs.gnu.org (full text, mbox):
> On Aug 21, 2021, at 19:46, Bruno Haible <bruno <at> clisp.org> wrote:
>
> Run these commands:
>
> ./gnulib-tool --create-testdir --dir=testdir1 --single-configure c-stack
> cd testdir1
> ./configure
> make
> make check
>
> If they fail, then you do need the libsigsegv library.
FWIW the first step fails produces a warning:
executing aclocal -I glm4
executing autoconf
executing autoheader
executing touch config.h.in
executing automake --add-missing --copy
configure.ac:8: installing 'build-aux/compile'
configure.ac:4: installing 'build-aux/install-sh'
configure.ac:4: installing 'build-aux/missing'
gllib/Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
patching file build-aux/test-driver
Hunk #1 FAILED at 109.
1 out of 1 hunk FAILED -- saving rejects to file build-aux/test-driver.rej
patching file build-aux/test-driver
Powering through, "make" emits an undeclared function warning:
gcc-mp-7 -DHAVE_CONFIG_H -I. -I.. -DGNULIB_STRICT_CHECKING=1 -g -O2 -MT c-stack.o -MD -MP -MF .deps/c-stack.Tpo -c -o c-stack.o c-stack.c
c-stack.c: In function 'die':
c-stack.c:106:17: warning: implicit declaration of function 'mempcpy' [-Wimplicit-function-declaration]
char *p = mempcpy (buf, progname, prognamelen);
^~~~~~~
c-stack.c:106:17: warning: incompatible implicit declaration of built-in function 'mempcpy'
Then ends with an unresolved symbol error:
gcc-mp-7 -Wno-error -g -O2 -o test-c-stack test-c-stack.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a
Undefined symbols:
"_mempcpy", referenced from:
_die in libgnu.a(c-stack.o)
_die in libgnu.a(c-stack.o)
ld: symbol(s) not found
I will note that "sigaltstack" is available on 10.4 so perhaps there is hope once the undeclared function is sorted out.
Evan
This bug report was last modified 3 years and 327 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.