This is the mail archive of the cygwin mailing list for the Cygwin 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: __mempcpy


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


Attachment: signature.asc
Description: OpenPGP digital signature


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