__mempcpy

Václav Zeman vhaisman@gmail.com
Sun Feb 15 02:08:00 GMT 2015


On 14.2.2015 09:20, Marco Atzeri wrote:
> I am trying to upgrade proftpd and also build the 64bit version.
> However when building the 64bit one, I catch:
> 
> /pub/devel/proftpd/proftpd-1.3.5-1.x86_64/build/lib/pr_fnmatch_loop.c:1142:
> undefined reference to `__mempcpy'
> 
> I see this difference in exported symbols for the the two archs
> 
> 32bit
> $ nm /usr/lib/libcygwin.a |grep " T " |sort | grep mempcpy
> 00000000 T ___mempcpy
> 00000000 T _mempcpy
> 
> 64bit
> $ nm /usr/lib/libcygwin.a |grep " T " |sort | grep mempcpy
> 0000000000000000 T mempcpy
> 
> 
> any idea ?

`__memcpy()` is their invention:

~~~~
#ifndef HAVE_MEMPCPY
/* Copy N bytes of SRC to DEST, return pointer to bytes after the
   last written byte.  */
static void *
__mempcpy (void *dest, const void *src, size_t n)
{
  return (char *) memcpy (dest, src, n) + n;
}
#endif
~~~~

Since Cygwin has memcpy(), it should be defined. I guess you need to
find out why its tests are failing and `HAVE_MEMCPY` is not defined.

-- VZ


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150215/cbd6b955/attachment.sig>


More information about the Cygwin mailing list