GNU bug report logs - #30169
Libtool doesn't build correctly with multiple check library dependencies

Previous Next

Package: libtool;

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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30169 in the body.
You can then email your comments to 30169 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-libtool <at> gnu.org:
bug#30169; Package libtool. (Fri, 19 Jan 2018 07:56:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Michael Cress <mikecress <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Fri, 19 Jan 2018 07:56:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Michael Cress <mikecress <at> gmail.com>
To: bug-libtool <at> gnu.org
Subject: Libtool doesn't build correctly with multiple check library
 dependencies
Date: Fri, 19 Jan 2018 01:26:36 -0600
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



Information forwarded to bug-libtool <at> gnu.org:
bug#30169; Package libtool. (Fri, 19 Jan 2018 10:54:01 GMT) Full text and rfc822 format available.

Message #8 received at 30169 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Lirzin <mthl <at> gnu.org>
To: Michael Cress <mikecress <at> gmail.com>
Cc: 30169 <at> debbugs.gnu.org
Subject: Re: bug#30169: Libtool doesn't build correctly with multiple check
 library dependencies
Date: Fri, 19 Jan 2018 11:53:41 +0100
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




Added tag(s) notabug. Request was from Mathieu Lirzin <mthl <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 19 Jan 2018 21:48:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 30169 <at> debbugs.gnu.org and Michael Cress <mikecress <at> gmail.com> Request was from Mathieu Lirzin <mthl <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 19 Jan 2018 21:48:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-libtool <at> gnu.org:
bug#30169; Package libtool. (Fri, 19 Jan 2018 21:49:01 GMT) Full text and rfc822 format available.

Message #15 received at 30169 <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Lirzin <mthl <at> gnu.org>
To: Michael Cress <mikecress <at> gmail.com>
Cc: control <at> debbugs.gnu.org, 30169 <at> debbugs.gnu.org
Subject: Re: bug#30169: Libtool doesn't build correctly with multiple check
 library dependencies
Date: Fri, 19 Jan 2018 22:47:46 +0100
tags 30169 notabug
close 30169
thanks

Michael Cress <mikecress <at> gmail.com> writes:

> Thank you very much for your quick response. However, you can close
> this report as a user error. The binary compiling and linking was
> simply a lucky mistake that the unit test build failure
> uncovered. 

-- 
Mathieu Lirzin
GPG: F2A3 8D7E EB2B 6640 5761  070D 0ADE E100 9460 4D37




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 17 Feb 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 176 days ago.

Previous Next


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