X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=OSf+ERzejnRJFeHEkSi86XKOzcWF2uR8cg7gx++/3XGcuqVIZDcdF
	+3I8Q8BlRgOgQGbfBBICMHbA2hHuN1X9ssEF0DqEQDwWVkNI+oi9B2yU71DtjFLe
	vksiA6NhXGK8vpusvbkz93CU8PtLnMqZrNwBRxa03aiAhvMk7YCJ/k=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=yaOXAcu2HT6vmpvec1rPkg85mY8=; b=GM2r2f/l3C1yt+6u3HitF6U1DJqo
	toBOS7paRfwjM9UMjX74RG3dgIs1K8n7xyN75PQo2ZB9NqCkTCt17KQE6zceHQSn
	dnMEQ2yG+fsWmaDJTFzo51F36zJVgIGgn54qPmx47OlXIzoeEDtOxbQC2VoUBtZ4
	SzNUXe3OFdtD1Cs=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-96.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=mcc, At, H*i:sk:888012., H*f:sk:888012.
X-HELO: calimero.vinschen.de
Date: Tue, 12 Apr 2016 15:39:24 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: multiple definition of `atan2l' on the current Cygwin
Message-ID: <20160412133924.GO9870@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <888012.8502.qm@web101106.mail.kks.yahoo.co.jp>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="/2994txjAzEdQwm5"
Content-Disposition: inline
In-Reply-To: <888012.8502.qm@web101106.mail.kks.yahoo.co.jp>
User-Agent: Mutt/1.5.24 (2015-08-30)

--/2994txjAzEdQwm5
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr 12 17:11, Tatsuro MATSUOKA wrote:
> Hello
> I have updated Cygwin_x86 and Cygwin_x86-64 today.
> In building the gnuplot I have met the error of "multiple definition of `=
atan2l'".
> /usr/lib/gcc/x86_64-pc-cygwin/5.3.0/libstdc++.dll.a(d005836.o):(.text+0x0=
): multiple definition of `atan2l'
> /usr/lib/../lib/libm.a(t-d000195.o):fake:(.text+0x0): first defined here
> collect2: error: ld returned 1 exit status
> Makefile:777: recipe for target 'gnuplot.exe' failed
> This did not occur yesterday.
> Perhaps the latest change gcc-5.3.0 give this results.
> At=C2=A0the moment=C2=A0a workaroud is :
> LDFLAGS=3D'-Wl,--allow-multiple-definition' \
> at configure.

I can't reproduce this with a simple testcase:

  $ cat > m.cc <<EOF
  #include <math.h>

  int main ()
  {
    atan2l (1.0, 2.0);
  }
  EOF
  $ g++ -g -o m m.cc -lm -lstdc++ -lm -lstdc++

This builds and links fine for me.

Is there a chance that gnuplot accidentally provides its own atan2l on
Cygwin, despite Cygwin 2.5.0 now providing it per C99?  Or did you, by
any chance, try to rebuild gnuplot without reconfiguring the build?

Can you please provide a simple, self-contained testcase?


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--/2994txjAzEdQwm5
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXDPqMAAoJEPU2Bp2uRE+gUdEP/1HWQWppVsm0mqGrEkJNJEYS
oMXZzb+CPWqGZqigXUY6Ncxvrs9P/bOeJGqzp7NmgybuYKlKdz8knsGCj5JJaDvI
hGFpSPzx9ajIuRAZ5ft3H+d/7aP+Qh2jGibWuEv80BKyW0cklHsFrX3cHbiUMHYU
3Z8EvHoVl74eK1d0WewwXFAQpdu5/9esISybdWkhcFHYQl9S8aFsPMAVEJ2NmO43
vniYvE3/sNxjNYlkT1uJ5MEqtkqIV3MLBH7WIbAm/L4P1dnnAb+MFhjQTZfJjxES
+n9xNGdp6LjOFyQLyu+8fvLKFcA248hSfoRHNxl0j5/5Xb+YG3YfHlnmTHbqKCCd
DEQ/3AXYly6YvL7SPbonb3qs2uS/8vRf4VON4+1ef/eTwXNmJ1VNeYFZGo7ep21m
TOp5huR7q181nOFAkbHb2hTnPilcWWo1kvOAhrm7+9ofoGHFaljucbzDxlULquT8
ZTUanUalyZle1+PFAJ81HRnv+duvwMnpr28ZyJFpBjw+PFFVhDJNTU4b3Xx2C1LJ
qRUgpCrAENK2benhNqgFA6FpYnMyCh8jOxULFOdDqW6XnXUQanjars7eOnccX8Z0
WKxc0d0klq3W49rP8iPRUvIbXPpvLPq2dt42OgmKWi8Kq7vCODhS4newuUtiEnJn
c+H8hkSCJuB9rmAimTKA
=avIj
-----END PGP SIGNATURE-----

--/2994txjAzEdQwm5--
