From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 43729 invoked by alias); 20 Mar 2016 20:55:11 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 43718 invoked by uid 89); 20 Mar 2016 20:55:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=Hx-languages-length:1649, H*R:D*cygwin.com, H*MI:sk:2016032, stick X-HELO: calimero.vinschen.de Received: from ipbcc0d020.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.208.32) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 20 Mar 2016 20:55:09 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7B5A3A805C6; Sun, 20 Mar 2016 21:55:07 +0100 (CET) Date: Sun, 20 Mar 2016 21:30:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: [ANNOUNCEMENT] TEST RELEASE: Cygwin 2.5.0-0.8 Message-ID: <20160320205507.GE3422@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <56EC6BDA.7050505@cornell.edu> <20160318214509.GD11113@calimero.vinschen.de> <8760whmn3a.fsf@Rainer.invalid> <20160320152540.GG11113@calimero.vinschen.de> <871t75m2qb.fsf@Rainer.invalid> <20160320204544.GB3422@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="X3gaHHMYHkYqP6yf" Content-Disposition: inline In-Reply-To: <20160320204544.GB3422@calimero.vinschen.de> User-Agent: Mutt/1.5.24 (2015-08-30) X-SW-Source: 2016-03/txt/msg00121.txt.bz2 --X3gaHHMYHkYqP6yf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1684 On Mar 20 21:45, Corinna Vinschen wrote: > On Mar 20 19:19, Achim Gratz wrote: > > What's going wrong is that the symbols are also defined in libc.a on > > 32bit and only in libm.a on 64bit. The configury for Cygwin removes > > both -lc and -lm from the list of libraries that should explicitly be > > linked with, a comment is present that both libc and libm symlink to > > libcygwin and are implied by gcc anyway. However that doesn't seem to > > be the case anymore on both architectures (these files are not symlinked > > and not hardlinked either), but the symbol construction is just > > different enough for this not to work on 64bit it would seem. >=20 > No, that's not quite it. The problem is that on 32 bit the > *underscored* functions are exported by libc.a. This is an accident, > and probably one which is many years old. Here's what's exported by > libm.a: >=20 > nm libm.a | grep copysign > U __imp__copysign > 00000000 T _copysign > U __imp__copysignf > 00000000 T _copysignf >=20 > And here's what's exported on 32 bit by libc.a. Note the extra leading > underscore: >=20 > $ nm libc.a | grep copysign > 00000000 T __copysign > U __imp___copysign > 00000000 T __copysignf > U __imp___copysignf >=20 > These underscored versions were always exported additionally by the 32 > bit version but they have never been exported on 64 bit since exporting > them was wrong from the start. I'd like to get rid of them but the 32 bit versions has to stick to them for backward compat. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --X3gaHHMYHkYqP6yf Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJW7w4rAAoJEPU2Bp2uRE+gnA0QAIexQ0fu5ZlCdWBsTaa8t86l CO5oW1u7h0GcDqp8OaQeG5Ei64rOmfKwNtWNQJhvdF02Sz54yS5a1h36Tm3uHSaE H739AtcL0424K+vrYId//8bQC75XrVNhD6KkclZcoqmdTN2wH/31Nl9dGZabJgyz Sg9eYv6aFi4gFYuo0PTD9ob494nTMRHlwz/a9iI6odR5ZQz7ysUs+sf23E24G4uY CZYOx6LcP6NIapZ7WXWAaGmtuZgLpFOdhwBIDBuN+WOMxy2djaAuaDGrSC339un+ Jm1S+1GzAY2wfvDNno9PA5JUHjuxBkfAnZVTtuNQw2LZvGgmct8yzT6FdwtGlIVl 40BiIXPf9afBULFvxdeJShnbjRVKwCeOZIx63xcCCA5b/wGzZeWs0NhQDvO1m+yW otTD2ZZmOxePRIAxwOJ7u7HN5U7Q4hSwr0RjNk1hInuyFr+wa6jD+dFxRmam6czO RPFEUZvAgFPDMAgigwYrtkFZkV2vZTxSBs9yV3eHsaz7iLlR0o4V77+TxZf/zEFW +lMIWeEQmPadYyAu/2uDEJDsI1rZwJAjHTQkQc4Rucz4/lKzGBuNBJUt5lgmv5w9 O2nJnYNirlLDvJvtSPEVVx/p+AF2i1MOtcbbgiacj5U0334cV3mWZXR7du3NWL4u u4hOxLXLOUN0btRAqC/s =FrcU -----END PGP SIGNATURE----- --X3gaHHMYHkYqP6yf--