[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix link error during "make check"
From: |
Bruno Haible |
Subject: |
Fix link error during "make check" |
Date: |
Tue, 23 Feb 2021 20:04:30 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-201-generic; KDE/5.18.0; x86_64; ; ) |
On CentOS 7.8, after installing the prerequisites
sudo yum install gc-devel readline-devel json-c-devel tcl-devel tk-devel
dejagnu
building poke works fine, however "make check" fails:
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu11 -g -O2
-L/home/bruno/inst-x86_64-64/lib -o values values-values.o ../../gl/libgnu.la
../../libpoke/libpoke.la
libtool: link: gcc -std=gnu11 -g -O2 -o .libs/values values-values.o
-L/home/bruno/inst-x86_64-64/lib ../../gl/.libs/libgnu.a -lreadline
../../libpoke/.libs/libpoke.so -L/home/bruno/poke-0.90/build-64/jitter/lib
-lncurses -ltermcap -lm -lgc -pthread -Wl,-rpath
-Wl,/home/bruno/inst-x86_64-64/lib
values-values.o: In function `test_simple_values':
/home/bruno/poke-0.90/build-64/testsuite/poke.libpoke/../../../testsuite/poke.libpoke/values.c:63:
undefined reference to `fail'
/home/bruno/poke-0.90/build-64/testsuite/poke.libpoke/../../../testsuite/poke.libpoke/values.c:66:
undefined reference to `pass'
/home/bruno/poke-0.90/build-64/testsuite/poke.libpoke/../../../testsuite/poke.libpoke/values.c:67:
undefined reference to `fail'
/home/bruno/poke-0.90/build-64/testsuite/poke.libpoke/../../../testsuite/poke.libpoke/values.c:68:
undefined reference to `fail'
/home/bruno/poke-0.90/build-64/testsuite/poke.libpoke/../../../testsuite/poke.libpoke/values.c:71:
undefined reference to `pass'
...
collect2: error: ld returned 1 exit status
make[3]: *** [values] Error 1
This proposed patch fixes it.
Since we currently only support GCC and compatible compilers (see
<https://lists.gnu.org/archive/html/poke-devel/2021-02/msg00130.html>),
we can add the '-fgnu89-inline' option unconditionally.
0001-Fix-link-error-during-make-check.patch
Description: Text Data
- Fix link error during "make check",
Bruno Haible <=