delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/15/16:05:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <00e601c2d532$eabd97d0$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Roger Sayle" <roger AT www DOT eyesopen DOT com>, <cygwin AT cygwin DOT com>
References: <Pine DOT LNX DOT 4 DOT 44 DOT 0302151239510 DOT 10882-100000 AT www DOT eyesopen DOT com>
Subject: Re: [Problem] mempcpy is missing?
Date: Sat, 15 Feb 2003 20:43:37 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Roger Sayle wrote:
>> As you have discovered, mempcpy is not provided.  If a configure
>> script detects it, the configure script is broken.
>
> Thanks for the fast response.  Unfortunately in your haste you may
> have missed the point of the e-mail.
>
> Cygwin's /usr/include/string.h prototypes mempcpy.  If cygwin doesn't
> provide mempcpy then both the <string.h> header is broken, and the
> /usr/man/man3/mempcpy.3.gz man page should be removed.
>
> By inappropriately declaring the function prototype incompatibly this
> has broken libintl, and any other GNU package that depends upon it
> including gcc.

Roger:

Background on why this happens:
Cygwin uses newlib as it's C library. The newlib functions are incorporated
into cygwin1.dll. But they are only exported if specifically listed in the
.def file - so when newlib adds a function, the headers propagate to Cygwin
automatically, but the function doesn't.

cgf:

I've just looked at newlib's mempcpy.c - It says "<<mempcpy>> requires no
supporting OS subroutines.", and it is correct in saying this. Therefore,
unlike getsubopt, this *is* just a cygwin.din/version.h fix. (I've just
tested it) Will you make the required change? I don't know what the criteria
are for deciding whether to add a leading-underscore alias in cygwin.din.


Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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