The ./configure configuration of GCC looks for the existance of the function mempcpy, and if found sets HAVE_MEMPCPY. However the function which is actually used in gcc/fixinc/gnu-regex.c (I don't think it occurs anywhere else) is __mempcpy. This works on most systems, which have both __mempcpy and mempcpy. The latest cygwin only has mempcpy, and shows up the bug. gcc needs a little patching to make it build.
Look for either __mempcpy or mempcpy. Set and use separate variables,depending on the outcome. That seems the bullet proof approach.
From: Dara Hazeghi <firstname.lastname@example.org>
To: email@example.com, firstname.lastname@example.org, email@example.com
Subject: Re: bootstrap/10636: configuration mismatch with mempcpy
Date: Fri, 16 May 2003 17:58:47 -0700
looking at gnu-regex.c on gcc 3.3 and mainline, I don't see any
reference to __mempcpy, only mempcpy. Does this mean that the problem
is solved? Would it be possible for you to check if this problem is
still exhibited with gcc 3.3? Thanks,
State-Changed-Why: See Dara's question.
Giovanni, you bootstrap cygwin, correct? If so, do you know what the status of this is? Thanks,
Yes, it's a known problem which was fixed by Kaveh before 3.3 but after 3.2.3.
It used to be tracked by PR10140.
*** This bug has been marked as a duplicate of 10140 ***