GNU bug report logs -
#30169
Libtool doesn't build correctly with multiple check library dependencies
Previous Next
Reported by: Michael Cress <mikecress <at> gmail.com>
Date: Fri, 19 Jan 2018 07:56:01 UTC
Severity: normal
Tags: notabug
Done: Mathieu Lirzin <mthl <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Greetings,
I am getting a “make check” linking error ( e.g. ./.libs/library.so: undefined reference to ‘function implemented in another library within the same makefile). Libtool builds everything just fine using bin_, but when copying and pasting the _CFLAGS, _LDADD, etc., renaming to check_ and rebuilding via make check, I get the error.
Note: the referenced libraries are all Libtool .la libraries generated within a large project Makefile. Again, all libraries are building and executing just fine. The only issue is when I attempt to use make check.
Finally, if I comment out the unit test code (leaving essentially a bare bones empty unit test) and remove the LDADD references to the Libtool intermediate libraries and make check works fine (it builds, runs, and shows the Pass/Fail report).
I have done everything I can think of to make this work but I have gotten nowhere. So, I’m guessing this is a bug somewhere.
Thanks,
Michael Cress
This bug report was last modified 7 years and 180 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.