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:message-id:references:date:from:reply-to
	:subject:to:in-reply-to:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=fjgpgvebQex9+93L
	or0T6XCxtZHsI2YRKnW0WikehO8QX/4SOSYGfApydByhpqyv3LfIjItb4imO9FGm
	SRQjR9wrzzNTNABkaQWeBq+mpJvQPSXxgEuwT3Bkf0cwmc7o7U+P2w+OXke2X7lR
	MXhWWLUjYYk5fKwwl1dCG5OOQbw=
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:message-id:references:date:from:reply-to
	:subject:to:in-reply-to:mime-version:content-type
	:content-transfer-encoding; s=default; bh=0WA6dcO1VhpT3w0V3qB2m9
	oyFEo=; b=U958og6JS6Xw65OuG1XShw6324BgmG9As6on0+XUrjt1aUXlFiGR9M
	b6OaJFOls9ywAnXPSJAfbfgHw7GwqhInH3qhoaxTdJ2K0OTVm2Rte3j/IbUWHrWP
	dcYCxdr2r20jkqOwbEardXdAI1rby0dXv6YsUGYePlIiPvqx4yVxg=
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=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=UD:yahoo.co.jp, yahoo.co.jp, yahoocojp, H*UA:sk:YahooMa
X-HELO: nh502-vm3.bullet.mail.kks.yahoo.co.jp
Message-ID: <58477.93886.qm@web101112.mail.kks.yahoo.co.jp>
X-YMail-JAS: u8lZ45YVM1nkRgGvargfjxmz3n6yME9m24UUloqGRWHiO6LGbWKqoz.Y6mOjtXggwOQ4GL8hilneTc4SlKmMkuTGz6b6ETIRlDnAcufzTjrAZbwhlvlvngq2jmvU_ouhQuSE
References: <888012.8502.qm@web101106.mail.kks.yahoo.co.jp> <20160412133924.GO9870@calimero.vinschen.de>
Date: Wed, 13 Apr 2016 09:08:47 +0900 (JST)
From: Tatsuro MATSUOKA <tmacchant2@yahoo.co.jp>
Reply-To: Tatsuro MATSUOKA <matsuoka@nuce.nagoya-u.ac.jp>
Subject: Re: multiple definition of `atan2l' on the current Cygwin
To: cygwin@cygwin.com
In-Reply-To: <20160412133924.GO9870@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u3D09GEm007575

> From: Corinna Vinschen > To: cygwin@cygwin.com
> Cc: 
> Date: 2016/4/12, Tue 22:39
> Subject: Re: multiple definition of `atan2l' on the current Cygwin
> 
> 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'".
> 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?
Your testcase also works here.
I tried to make the test but I could not make a simple, self-contained testcase.
Instead I copy and paste full compile command and output at the link.
Tatsuro
*******************************************
c++  -g -O2 -I/usr/lib/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -DWXUSINGDLL -D__WXGTK__  -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16  -L/usr/local/lib -lcerf  -o gnuplot.exe alloc.o axis.o breaders.o
 boundary.o color.o command.o contour.o datablock.o datafile.o dynarray.o eval.o external.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o jitter.o libcerf.o matrix.o misc.o mouse.o multiplot.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stats.o stdfn.o tables.o tabulate.o term.o time.o unset.o util.o util3d.o variable.o version.o wxterminal/wxt_gui.o wxterminal/gp_cairo.o wxterminal/gp_cairo_helpers.o   -lz -lgd -lgd -ljpeg -lz -lpng16 -lm -lz -lfreetype -lbz2 -lz -lpng16 -lm -lz -lfontconfig -lexpat -lfreetype -lbz2 -lz -lpng16 -lm -lz -lexpat -lfreetype -lbz2 -lz -lpng16 -lm -lz -lfontconfig -lXpm -lX11 -lxcb -lXau -lXdmcp -lvpx -lm -lpthread -ltiff -llzma -ljbig -ljpeg -lz -liconv -llua -lcaca  -lwx_gtk2u_xrc-3.0 -lwx_gtk2u_webview-3.0 -lwx_gtk2u_html-3.0 -lwx_gtk2u_qa-3.0 -lwx_gtk2u_adv-3.0 -lwx_gtk2u_core-3.0 -lwx_baseu_xml-3.0
 -lwx_baseu_net-3.0 -lwx_baseu-3.0  -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lcairo -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lgio-2.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lfontconfig -lfreetype  -lcaca -lcerf  -lz -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lcairo -lglib-2.0 -lintl
/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

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


