Bug with cxx test

Василий Дзерженцев welcome.to.here at rambler.ru
Tue Jan 26 21:53:13 UTC 2016


Hello,

GMP version: 6.1.0

Compiler: mingw-w64 i686-5.2.0-win32-dwarf-rt_v4-rev0, building with msys 1.0

Configure command:

./configure --enable-cxx --prefix=/home/gmp --disable-static --enable-shared

make

Compilation have been ended correctly.

But when I type "make check" I got linker's error (test cxx):

multiple defintion of "localeconv"

in file test/cxx/clocale.c

It's because of a macro "HAVE_LOCALECONV" ; line 44 file test/cxx/clocale.c

A few code (lines 44-55):

#if HAVE_LOCALECONV
struct lconv *
localeconv (void)
#if defined __cplusplus && defined __GLIBC__
throw()
#endif
{
static struct lconv l;
l.decimal_point = point_string;
return &l;
}
#endif

Here if HAVE_LOCALECONV is 1 (like mine) than function struct lconv *localeconv
(void) is definig

but macro assumed that function have been defined already.

I think it's just type, when I replacing line 44 to

#if !HAVE_LOCALECONVit works correct.

I hope it can help.

PS. Please respond me when you get this letter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: home.zip
Type: application/octet-stream
Size: 7361 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20160127/1db7edae/attachment.obj>


More information about the gmp-bugs mailing list