From unknown Fri Aug 15 12:52:44 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#30169 <30169@debbugs.gnu.org> To: bug#30169 <30169@debbugs.gnu.org> Subject: Status: Libtool doesn't build correctly with multiple check library dependencies Reply-To: bug#30169 <30169@debbugs.gnu.org> Date: Fri, 15 Aug 2025 19:52:44 +0000 retitle 30169 Libtool doesn't build correctly with multiple check library d= ependencies reassign 30169 libtool submitter 30169 Michael Cress severity 30169 normal tag 30169 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 19 02:55:58 2018 Received: (at submit) by debbugs.gnu.org; 19 Jan 2018 07:55:58 +0000 Received: from localhost ([127.0.0.1]:34000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecRWo-00051I-JJ for submit@debbugs.gnu.org; Fri, 19 Jan 2018 02:55:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:47580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecR4c-0004Iu-Bu for submit@debbugs.gnu.org; Fri, 19 Jan 2018 02:26:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecR4W-0004Fq-9J for submit@debbugs.gnu.org; Fri, 19 Jan 2018 02:26:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34256) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ecR4W-0004Fi-65 for submit@debbugs.gnu.org; Fri, 19 Jan 2018 02:26:44 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecR4V-0002Gb-0A for bug-libtool@gnu.org; Fri, 19 Jan 2018 02:26:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecR4S-0004Df-69 for bug-libtool@gnu.org; Fri, 19 Jan 2018 02:26:42 -0500 Received: from mail-io0-x22b.google.com ([2607:f8b0:4001:c06::22b]:39158) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ecR4S-0004DA-1p for bug-libtool@gnu.org; Fri, 19 Jan 2018 02:26:40 -0500 Received: by mail-io0-x22b.google.com with SMTP id b198so1194595iof.6 for ; Thu, 18 Jan 2018 23:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=+YoY1boO/9KTJX71qv0K3P0aepJXFMlk5LBghoKYfgk=; b=IMn0FCG/evY/sthlIBvFbQEeNcVzDNdjliBURtbLaImlVlFNpIYsA0LJnxNypR7YOB uNT17t43VSvC/bsXSuc/EYxecVn4usRx3YqJxIEyGyITToXvRJ2K44iahFSNPzPJZMoe MamO8ATSsJ2GlAAjjS8QIS2ZI5pnGVkLgAL+EBaEzkFH5OOH0wqjcwzO0w1536Iq1D8f hmgy1WqG7Cg9pNkdvjBCSbTom7gi2kTcQN1mbGJUrfXEB7CCMLbaXFViTpCvVgSc6dLE gomO7jbuxTPQcKK5lHcukIDV/JajIR086+QXros0Nf28dqGc6CGFAsVXJpWAOaM/PA6n a5ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=+YoY1boO/9KTJX71qv0K3P0aepJXFMlk5LBghoKYfgk=; b=BRIXGKy8nXa6Qq0YM4Xt7tmuJxr4uc7OytOn04gVxNcwKmWtBP2jmaflxRR9V2esL+ lNbJk+bfhw/gh7xLyh3tfOKIE8WSK1WtpJpXHWiE0XA9vtiULV+wV/zCPfH0kXkCeogM OhNb40jeksQLFrEJgoC2sd7YzzcVIpbEeHQvmtnQkUou2lK4rOqIXJ1pkmAOKYEQWWUs UtNwBArxSRR6gyOKn5QM9gAXqv9VUUoQKuiavvm4HSHiEV8ft75MGw9SECo5QY3mhtlc Xz8fHBR6wR5T9PC5IEEzik01idMeuI0j7o45+N6yUjpZK+NMrVD0f4rhIbDDqU/YyBnR FFjw== X-Gm-Message-State: AKwxytcR8Lo9vcXcYPB+Nt8QZF2k6q3bKSorPO8PcpQpPesF8wXu8tIT Ta5edHCfN5ZwcND0gARbDRw6Smu/ X-Google-Smtp-Source: ACJfBoth+UaFBnPCihuxjhPVhtOQi/goJ3w1qWclODmdvhoUlULAD8w6OzRdp/WjT5hSMBKNAw2XkA== X-Received: by 10.107.79.25 with SMTP id d25mr15119560iob.270.1516346798557; Thu, 18 Jan 2018 23:26:38 -0800 (PST) Received: from michaels-imac.rolla.cress.us (rolla.cress.us. [64.15.83.113]) by smtp.gmail.com with ESMTPSA id m4sm424552itg.22.2018.01.18.23.26.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 23:26:38 -0800 (PST) From: Michael Cress Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Libtool doesn't build correctly with multiple check library dependencies Message-Id: <42C99E90-D8B2-45C6-9A83-EB5D932A8038@gmail.com> Date: Fri, 19 Jan 2018 01:26:36 -0600 To: bug-libtool@gnu.org X-Mailer: Apple Mail (2.3445.5.20) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 19 Jan 2018 02:55:57 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Greetings, I am getting a =E2=80=9Cmake check=E2=80=9D linking error ( e.g. = ./.libs/library.so: undefined reference to =E2=80=98function 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=E2=80=99m guessing this is a bug somewhere. Thanks, Michael Cress= From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 19 05:53:51 2018 Received: (at 30169) by debbugs.gnu.org; 19 Jan 2018 10:53:51 +0000 Received: from localhost ([127.0.0.1]:34072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecUIx-0002bI-G4 for submit@debbugs.gnu.org; Fri, 19 Jan 2018 05:53:51 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ecUIw-0002b2-Da for 30169@debbugs.gnu.org; Fri, 19 Jan 2018 05:53:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecUIq-0004iD-Fd for 30169@debbugs.gnu.org; Fri, 19 Jan 2018 05:53:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecUIq-0004i9-Bc; Fri, 19 Jan 2018 05:53:44 -0500 Received: from [2a01:e35:2ec2:e580:7d5f:f616:fc6f:3970] (port=37416 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ecUIp-00047m-Qs; Fri, 19 Jan 2018 05:53:44 -0500 From: Mathieu Lirzin To: Michael Cress Subject: Re: bug#30169: Libtool doesn't build correctly with multiple check library dependencies References: <42C99E90-D8B2-45C6-9A83-EB5D932A8038@gmail.com> Date: Fri, 19 Jan 2018 11:53:41 +0100 In-Reply-To: <42C99E90-D8B2-45C6-9A83-EB5D932A8038@gmail.com> (Michael Cress's message of "Fri, 19 Jan 2018 01:26:36 -0600") Message-ID: <87wp0eazm2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 30169 Cc: 30169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hello, Michael Cress writes: > I am getting a =E2=80=9Cmake check=E2=80=9D linking error ( e.g. ./.libs/= library.so: > undefined reference to =E2=80=98function implemented in another library w= ithin > 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=E2=80=99m 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 =E2=80=9C${prefix}/share/doc/automake/amhello-1.0.tar.gz= =E2=80=9D example as a basis and add what doesn't work for you. Thanks. --=20 Mathieu Lirzin GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 19 16:48:00 2018 Received: (at control) by debbugs.gnu.org; 19 Jan 2018 21:48:00 +0000 Received: from localhost ([127.0.0.1]:35320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eceW0-0007AJ-Au for submit@debbugs.gnu.org; Fri, 19 Jan 2018 16:48:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:40506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eceVy-0007A7-H0 for control@debbugs.gnu.org; Fri, 19 Jan 2018 16:47:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eceVp-0007lD-Ix for control@debbugs.gnu.org; Fri, 19 Jan 2018 16:47:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eceVp-0007l9-FF; Fri, 19 Jan 2018 16:47:49 -0500 Received: from [2a01:e35:2ec2:e580:7d5f:f616:fc6f:3970] (port=39120 helo=godel) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1eceVo-00071k-Sy; Fri, 19 Jan 2018 16:47:49 -0500 From: Mathieu Lirzin To: Michael Cress Subject: Re: bug#30169: Libtool doesn't build correctly with multiple check library dependencies References: <42C99E90-D8B2-45C6-9A83-EB5D932A8038@gmail.com> <87wp0eazm2.fsf@gnu.org> Date: Fri, 19 Jan 2018 22:47:46 +0100 Message-ID: <874lnha5bx.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control Cc: control@debbugs.gnu.org, 30169@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) tags 30169 notabug close 30169 thanks Michael Cress 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 From unknown Fri Aug 15 12:52:44 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 17 Feb 2018 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator