GNU bug report logs - #8605
a libtool + Mac OS X problem

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: libtool; Reported by: Peter Breitenlohner <peb@HIDDEN>; dated Mon, 2 May 2011 15:42:02 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 2 May 2011 15:41:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 02 11:41:36 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QGvFg-0003Vq-DJ
	for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:36 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <peb@HIDDEN>) id 1QGvFe-0003Vf-Up
	for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:35 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <peb@HIDDEN>) id 1QGvFZ-0005hG-4A
	for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:56192)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peb@HIDDEN>) id 1QGvFZ-0005hB-2U
	for submit <at> debbugs.gnu.org; Mon, 02 May 2011 11:41:29 -0400
Received: from eggs.gnu.org ([140.186.70.92]:47094)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peb@HIDDEN>) id 1QGvFY-00040i-7M
	for bug-libtool@HIDDEN; Mon, 02 May 2011 11:41:29 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <peb@HIDDEN>) id 1QGvFW-0005gi-QF
	for bug-libtool@HIDDEN; Mon, 02 May 2011 11:41:27 -0400
Received: from smtp.mppmu.mpg.de ([134.107.24.58]:55863)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <peb@HIDDEN>) id 1QGvFW-0005gR-DH
	for bug-libtool@HIDDEN; Mon, 02 May 2011 11:41:26 -0400
Received: by smtp.mppmu.mpg.de (Postfix, from userid 998)
	id CA2F1282840E; Mon,  2 May 2011 17:41:23 +0200 (CEST)
Received: from mail.mppmu.mpg.de (mail-6.mppmu.mpg.de [134.107.6.12])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.mppmu.mpg.de (Postfix) with ESMTP id DC0C328283CB;
	Mon,  2 May 2011 17:41:15 +0200 (CEST)
Received: from pcl321.mppmu.mpg.de (pcl321.mppmu.mpg.de [134.107.3.54])
	by mail.mppmu.mpg.de (Postfix) with ESMTP id BC2751E9825A;
	Mon,  2 May 2011 17:41:15 +0200 (CEST)
Received: from pcl321.mppmu.mpg.de (localhost [127.0.0.1])
	by pcl321.mppmu.mpg.de (8.14.2/8.14.1) with ESMTP id p42FfFmS030718;
	Mon, 2 May 2011 17:41:15 +0200
Received: from localhost (peb@localhost)
	by pcl321.mppmu.mpg.de (8.14.2/8.14.2/Submit) with ESMTP id
	p42FfF6X030713; Mon, 2 May 2011 17:41:15 +0200
X-Authentication-Warning: pcl321.mppmu.mpg.de: peb owned process doing -bs
Date: Mon, 2 May 2011 17:41:15 +0200 (CEST)
From: Peter Breitenlohner <peb@HIDDEN>
To: bug-libtool@HIDDEN
Subject: a libtool + Mac OS X problem
Message-ID: <alpine.LNX.2.00.1105021726380.17484@HIDDEN>
User-Agent: Alpine 2.00 (LNX 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.6 (-----)
X-Debbugs-Envelope-To: submit
Cc: Karl Berry <karl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.8 (-----)

Hi,

For a (static and/or shared) library libtool knows if and how that library
can be stripped, e.g.,

   for linux (ELF in general?)
     old_striplib="strip --strip-debug"
     striplib="strip --strip-unneeded"

   for mingw32 (cross)
     old_striplib="i386-pc-mingw32-strip --strip-debug"
     striplib="i386-pc-mingw32-strip --strip-unneeded"

   for darwin
     old_striplib="strip -S"
     striplib="strip -x"

====================

When linking a program that wants to dlopen() an extension module, I use
"libtool --mode=link gcc ... --export dynamic", e.g.,

   for linux
     export_dynamic_flag_spec="\${wl}--export-dynamic"

   for mingw32
     export_dynamic_flag_spec="\${wl}--export-all-symbols"

   for darwin
     export_dynamic_flag_spec=""

with no effect on Mac OS X

====================

When I finally use "make install-strip" to install that program, that works
fine on linux, because the ELF binary knows the global symbols even when the
the binary has been stripped.

However, this fails on Mac OS X, there the binary should be stripped with
'strip -S -x' or some such to keep the global symbols and not with plain
'strip' as done via (Automake) "make install-strip".

And there may, of course, be other non-ELF systems with the same problem.

IMHO, in such cases libtool should create a wrapper script even when not
linking against uninstalled shared libraries, and that warpper script should
cause "libtool --mode=install install -s ..." to use the required options
for strip.

Regards
Peter Breitenlohner <peb@HIDDEN>




Acknowledgement sent to Peter Breitenlohner <peb@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-libtool@HIDDEN:
bug#8605; Package libtool. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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