GNU bug report logs - #10484
glibtool is trying to include multiple copies of the same object file

Previous Next

Package: libtool;

Reported by: Peter O'Gorman <peter <at> pogma.com>

Date: Thu, 12 Jan 2012 00:15:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Peter O'Gorman <peter <at> pogma.com>
To: Jeremy Huddleston <jeremyhu <at> apple.com>
Cc: 10484 <at> debbugs.gnu.org, jamey <at> minilop.net
Subject: bug#10484: glibtool is trying to include multiple copies of the same object file
Date: Wed, 11 Jan 2012 18:14:11 -0600
On 01/11/2012 05:51 PM, Peter O'Gorman wrote:

> libmi.la is listed twice here (in the Makefile.am it's listed explicitly
> and it's in @XORG_LIBS@), which causes libtool to do its 'copying
> selected object files to avoid basename conflicts' bit.
>
> I have reproduced with a small test case, will try to investigate a
> little more this evening.

The code is attempting to allow something like:

./libtool --mode=link --tag=CC cc -o libfoo.la ./a/libbar.la ./b/libbar.a

where you have two different convenience libraries with the same 
basename. Because they're convenience libraries libtool should ensure 
that all objects in the archives end up in the output, so it renames one 
and adds all objects from both convenience libs.

In your case the same convenience archive ended up on the link line 
twice by accident, libtool doesn't check for that, I'm copying 
bug-libtool to create a bug report for this, thanks.

Peter





This bug report was last modified 13 years and 222 days ago.

Previous Next


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