multiple definition of `atan2l' on the current Cygwin

Corinna Vinschen corinna-cygwin@cygwin.com
Tue Apr 12 13:39:00 GMT 2016


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 the moment a workaroud is :
> LDFLAGS='-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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160412/2c6b71c6/attachment.sig>


More information about the Cygwin mailing list