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 #8 received at 30169 <at> debbugs.gnu.org (full text, mbox):
Hello,
Michael Cress <mikecress <at> gmail.com> writes:
> 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.
In order to help you, It works better if you show us code. :-)
Ideally you would provide a minimal example to let others reproduce the
bug. You can use “${prefix}/share/doc/automake/amhello-1.0.tar.gz”
example as a basis and add what doesn't work for you.
Thanks.
--
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
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.