GNU bug report logs - #22373
Preloading symbols on Solaris 11.3

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: Martyn Plummer <plummerm@HIDDEN>; dated Thu, 14 Jan 2016 16:04:01 UTC; Maintainer for libtool is bug-libtool@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 14 Jan 2016 16:03:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 14 11:03:06 2016
Received: from localhost ([127.0.0.1]:49323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aJkMb-0007Vf-MB
	for submit <at> debbugs.gnu.org; Thu, 14 Jan 2016 11:03:06 -0500
Received: from eggs.gnu.org ([208.118.235.92]:38290)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <plummerm@HIDDEN>) id 1aJf8q-0006Og-If
 for submit <at> debbugs.gnu.org; Thu, 14 Jan 2016 05:28:33 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <plummerm@HIDDEN>) id 1aJf8k-0001Bg-Iu
 for submit <at> debbugs.gnu.org; Thu, 14 Jan 2016 05:28:27 -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.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID
 autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:44830)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <plummerm@HIDDEN>) id 1aJf8k-0001Bc-GS
 for submit <at> debbugs.gnu.org; Thu, 14 Jan 2016 05:28:26 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:57485)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <plummerm@HIDDEN>) id 1aJf8j-0004KD-DB
 for bug-libtool@HIDDEN; Thu, 14 Jan 2016 05:28:26 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <plummerm@HIDDEN>) id 1aJf8c-0001A2-BJ
 for bug-libtool@HIDDEN; Thu, 14 Jan 2016 05:28:25 -0500
Received: from sarge.iarc.fr ([193.51.164.149]:48031 helo=smtp1.iarc.fr)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <plummerm@HIDDEN>) id 1aJf8b-00019Q-UJ
 for bug-libtool@HIDDEN; Thu, 14 Jan 2016 05:28:18 -0500
Received: by smtp1.iarc.fr (Postfix, from userid 104)
 id D73D92180C4; Thu, 14 Jan 2016 11:28:14 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=iarc.fr; s=2010;
 t=1452767294; bh=u2s5UY8PUsgKZkM2ynqZdULUI+w6Nj+6Q/LSwR1GwMg=;
 h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=a+oO
 8K8XspVOF3mJQ/+htu/RAPr01MJ+PcHGzGzyeM+6/hzlCEB6ExgLTVF6L8dl7ZgvWEX
 HuF9nKtn4c7pZbCS8gOAPhmU0035PyOkTlKZLAFGDibHFutxFz4YX6UDl242x0OH/17
 uRWxQuvTctVRcfCcesSUzKbw/oVRE6j9s=
Received: from LEX.iarc.lan (unknown [10.20.1.8])
 by smtp1.iarc.fr (Postfix) with ESMTP id C781E217E1A
 for <bug-libtool@HIDDEN>; Thu, 14 Jan 2016 11:28:14 +0100 (CET)
Received: from TEX.iarc.lan (10.20.1.7) by LEX.iarc.lan (10.20.1.8) with
 Microsoft SMTP Server (TLS) id 15.0.1104.5; Thu, 14 Jan 2016 11:29:18 +0100
Received: from TEX.iarc.lan ([fe80::5c1d:2c9f:6b51:297]) by TEX.iarc.lan
 ([fe80::5c1d:2c9f:6b51:297%15]) with mapi id 15.00.1104.000; Thu, 14 Jan 2016
 11:29:17 +0100
From: Martyn Plummer <plummerm@HIDDEN>
To: "bug-libtool@HIDDEN" <bug-libtool@HIDDEN>
Subject: Preloading symbols on Solaris 11.3
Thread-Topic: Preloading symbols on Solaris 11.3
Thread-Index: AQHRTrZrlgUaBW+tOk63Si0AIWcmwA==
Date: Thu, 14 Jan 2016 10:29:17 +0000
Message-ID: <1452767293.30832.28.camel@HIDDEN>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator: 
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.10.13.92]
Content-Type: multipart/mixed; boundary="_002_14527672933083228cameliarcfr_"
MIME-Version: 1.0
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Thu, 14 Jan 2016 11:03:04 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

--_002_14527672933083228cameliarcfr_
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <012F18DC13099040B042A80B6F4A24A6@HIDDEN>
Content-Transfer-Encoding: quoted-printable

Solaris 11.3 (released October 2015) introduced a change in the "nm"
utility which breaks the ability of autoconf to detect that ltdl can use
preloaded symbols. The attached one-line patch fixes the problem.

My software [1] uses autoconf and incorporates the macro file libtool.m4
into the configure script. On Solaris 11.3 I get the following in
config.log:

libltdl_cv_preloaded_symbols=3Dno

This is a change from Solaris 11.2 when the result was "yes".

The bug strikes when the variable "lt_cv_sys_global_symbol_pipe" is set.
The built-in test for the global symbol pipe fails and it is reset to
null.

The  program conftest.c created for the test of the global symbol pipe
is:

#ifdef __cplusplus
extern "C" {
#endif
char nm_test_var;
void nm_test_func(void);
void nm_test_func(void){}
#ifdef __cplusplus
}
#endif
int main(){nm_test_var=3D'a';nm_test_func();return(0);}

Under Solaris 11.2, the result of "/usr/bin/nm -p" on the object file
for this test program is

0000000032 T main
0000000016 T nm_test_func
0000000001 D nm_test_var

(additional lines of output omitted for clarity). Under 11.3 this is now

0000000032 T main
0000000016 T nm_test_func
0000000001 C nm_test_var

So nm_test_var is now listed as common ("C") instead of initialized data
("D"). This brings the behaviour of Oracle's nm in line with the GNU
version.=20

Currently "C" is not recognized as a possible symbol code on Solaris.
Therefore nm_test_var is not extracted by the global symbol pipe and the
test fails. This bug is fixed in the attached patch for libtool.m4,
which adds "C" to the regular expression symcode for Solaris.

best regards
Martyn Plummer

PS The nm utility on Solaris is provided by the base-developer-utilities
package, and the change occurred between versions
0.5.11-0.175.2.0.0.42.2 and 0.5.11-0.175.3.0.0.30.0.

[1]
http://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Source/JAGS-4.0.1.=
tar.gz

-----------------------------------------------------------------------
This message and its attachments are strictly confidential. If you are
not the intended recipient of this message, please immediately notify 
the sender and delete it. Since its integrity cannot be guaranteed, 
its content cannot involve the sender's responsibility. Any misuse, 
any disclosure or publication of its content, either whole or partial, 
is prohibited, exception made of formally approved use
-----------------------------------------------------------------------

--_002_14527672933083228cameliarcfr_
Content-Type: text/x-patch; name="solaris-libtool.patch"
Content-Description: solaris-libtool.patch
Content-Disposition: attachment; filename="solaris-libtool.patch"; size=303;
	creation-date="Thu, 14 Jan 2016 10:29:16 GMT";
	modification-date="Thu, 14 Jan 2016 10:29:16 GMT"
Content-ID: <18048644550DEE4C8D76E0CBB60BE60C@HIDDEN>
Content-Transfer-Encoding: base64

ZGlmZiAtdU5yIG00LW9sZC9saWJ0b29sLm00IG00L2xpYnRvb2wubTQKLS0tIG00LW9sZC9saWJ0
b29sLm00CTIwMTYtMDEtMTQgMTA6MzI6MDguMjg1ODM3OTU5ICswMTAwCisrKyBtNC9saWJ0b29s
Lm00CTIwMTYtMDEtMTQgMTA6MzI6MjkuODUzNzIzMjg5ICswMTAwCkBAIC0zNjYxLDcgKzM2NjEs
NyBAQAogICBzeW1jb2RlPSdbW0JDREVHUVJTVF1dJwogICA7Owogc29sYXJpcyopCi0gIHN5bWNv
ZGU9J1tbQkRSVF1dJworICBzeW1jb2RlPSdbW0JDRFJUXV0nCiAgIDs7CiBzY28zLjJ2NSopCiAg
IHN5bWNvZGU9J1tbRFRdXScK

--_002_14527672933083228cameliarcfr_--




Acknowledgement sent to Martyn Plummer <plummerm@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-libtool@HIDDEN. Full text available.
Report forwarded to bug-libtool@HIDDEN:
bug#22373; 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.