delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/14/16:58:23

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=pSNZSb
LWHVwUNe232+m21VE9ZgGwe+mNNfWqrMTvSJZgjz6eFAO2qnU9zM9cOa623d207U
1uzrUkvhRjk1OkscRL7lw6WNjoTrd+Qf67dSC29GmE04luVtmeuyhY1SzWOSTfXC
KmZOumCKJbB7IwHd3TKdlFLNrjOE6ZKtxSPTg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=jYRBzQcDhxdr
Up8p5Y+ViJuTli4=; b=YpSxYki/jPGtZNQhcpIFwU50L1B1yZIURtOZW0jc4W+U
1TCJgsgRcEdXCrLCkBakIqbtUSdZsmXmhOZ4hhS+ujznrKroFPRynXh/NE2RcDWK
N8udSzFQ2xOGMHU0SNrVLboAVsPNhULefMO1G0/84lVG7kZIGTdQ8o0S/EReM+E=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-wi0-f173.google.com
X-Received: by 10.194.189.138 with SMTP id gi10mr34818320wjc.86.1423951083588; Sat, 14 Feb 2015 13:58:03 -0800 (PST)
Message-ID: <54DFC4E9.1010707@gmail.com>
Date: Sat, 14 Feb 2015 22:58:01 +0100
From: =?UTF-8?B?VsOhY2xhdiBaZW1hbg==?= <vhaisman AT gmail DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: __mempcpy
References: <54DF053D DOT 70805 AT gmail DOT com> <54DFC467 DOT 60200 AT gmail DOT com>
In-Reply-To: <54DFC467.60200@gmail.com>
X-IsSubscribed: yes

--5ljQDUnGvISsC8QAI5sAvvqu8EDhQklP6
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 14.2.2015 22:55, V=C3=A1clav 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:11=
42:
>> 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 ?
>=20
> `__memcpy()` is their invention:
>=20
> ~~~~
> #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

>=20
> 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.
>=20
> -- VZ
>=20
>=20



--5ljQDUnGvISsC8QAI5sAvvqu8EDhQklP6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF4EAREKAAYFAlTfxOkACgkQonnuNA9W3VLphgD/SlRRqOqwecJDyq4fFenril5w
J3KomnnZnCtRWc05gIsBAI/hYegzZowl7nDtaOQzgtZfYOu8rCx/D0yi36IAaYzn
=jxAV
-----END PGP SIGNATURE-----

--5ljQDUnGvISsC8QAI5sAvvqu8EDhQklP6--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019