This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stpcpy() redefined

On Fri, Oct 18, 2013 at 12:00 PM, LRN <> wrote:
> Recent mingw-w64 added a stpcpy() implementation for sources that
> request appropriate compatibility (_XOPEN_SOURCE or _GNU_C_SOURCE).
> This created problems with binutils (or, to be precise, with libintl):
> i686-w64-mingw32-gcc -c  -g -O2 -D__USE_MINGW_ACCESS -DHAVE_CONFIG_H
> - -I. -I../../binutils-
> ../../binutils-
> ../../binutils- error:
> redefinition of ‘stpcpy’
>  stpcpy (dest, src)
>  ^
> In file included from ../../binutils-
> /home/lrn/src/mingw-w64-mingw32-native/cross-toolchain/i686-w64-mingw32/include/string.h:56:21:
> note: previous definition of ‘stpcpy’ was here
>    __mingw_ovr char *stpcpy(char * __restrict__ _Dest,const char *
> __restrict__ _Source) { return __mingw_stpcpy(_Dest, _Source); }
>                      ^
> make[2]: *** [l10nflist.o] Error 1
> Before i try to come up with a patch for this, do you have any
> recommendations on dealing with it?

Or, what is HAVE_STPCPY in config/intl.h?  Sounds like it is not
defined when it should be defined to 1.  Look in intl/config.log to
see why the intl/configure script thought that your system did not
have stpcpy, even though it apparently does.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]