On 14.2.2015 22:55, Václav Zeman wrote: > 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 > ~~~~
Here: https://github.com/proftpd/proftpd/blob/master/lib/pr_fnmatch_loop.c#L53 > > 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 > >
signature.asc
Description: OpenPGP digital signature