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

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=DmEcAH
NpgNnl4DLmDEEqwMm0Ajid6xMCkbBAs98PUbZ5/nDOLASh01pbURXZxx3lmIE5sU
inWFciQiGipu3OFtrN6nWG82gVYGYvHjtel64NCIwvFVyASEEzQdX1TN4GWUnUKT
h1Ul/Fo3c9pdICE7bzBuBAQK2jlFkhpV82BWs=
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=azZXov4dr/2+
daRjS4bNtVj81xk=; b=SIwfKXmtThJc2BnTmQL4LDmZe1L8Hj0F2kktjLWbUQeK
br3epBGbjAXuKHCPHowwB/ZLbVD52hr2sov8uJ8kWmexOo+tbOhO/u2mO0t0N/BK
nKw3WPNxTtbx29vzzVkdAYX7ZUWJfBd4Pw32HigRSiYN9Uod4c9J9STzZjzpLWU=
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=1.3 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2
X-HELO: mail-wg0-f41.google.com
X-Received: by 10.194.190.111 with SMTP id gp15mr34763801wjc.132.1423950954355; Sat, 14 Feb 2015 13:55:54 -0800 (PST)
Message-ID: <54DFC467.60200@gmail.com>
Date: Sat, 14 Feb 2015 22:55:51 +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>
In-Reply-To: <54DF053D.70805@gmail.com>
X-IsSubscribed: yes

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

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:
>=20
> /pub/devel/proftpd/proftpd-1.3.5-1.x86_64/build/lib/pr_fnmatch_loop.c:114=
2:
> undefined reference to `__mempcpy'
>=20
> I see this difference in exported symbols for the the two archs
>=20
> 32bit
> $ nm /usr/lib/libcygwin.a |grep " T " |sort | grep mempcpy
> 00000000 T ___mempcpy
> 00000000 T _mempcpy
>=20
> 64bit
> $ nm /usr/lib/libcygwin.a |grep " T " |sort | grep mempcpy
> 0000000000000000 T mempcpy
>=20
>=20
> 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



--V4j8EGJ3IJ3mbleXepQb1PT6Qf8rTC2dX
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

iF4EAREKAAYFAlTfxGcACgkQonnuNA9W3VKTYQD/fNVB23ujuwhnen9utGYq55zb
neoPmuR1tHpP1kpFRcAA/1RMryzO+YJ+dAn5H9Xzgyg6EurShNztur+btZz/EQJt
=Zd1y
-----END PGP SIGNATURE-----

--V4j8EGJ3IJ3mbleXepQb1PT6Qf8rTC2dX--

- Raw text -


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