delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/16/08:43:01

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Thu, 16 Sep 2004 14:42:08 +0200
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Reply-To: "Gerrit @ cygwin" <cygwin AT cygwin DOT com>
Organization: Esse keine toten Tiere
Message-ID: <1937224285.20040916144208@familiehaase.de>
To: cygwin AT cygwin DOT com
Subject: Re: checking for working mmap...no
In-Reply-To: <20040916084702.GA29191@cygbert.vinschen.de>
References: <uk6uvnxt9 DOT fsf AT gnu DOT org> <20040915210751 DOT GG23012 AT trixie DOT casa DOT cgf DOT cx> <ullfbtb6l DOT fsf AT gnu DOT org> <20040916084702 DOT GA29191 AT cygbert DOT vinschen DOT de>
MIME-Version: 1.0
X-IsSubscribed: yes

Hallo Corinna,

Am Donnerstag, 16. September 2004 um 10:47 schriebst du:

> On Sep 15 18:33, Sam Steingold wrote:
>> > * Christopher Faylor
>> <pts-ab-crefbany-ercyl-cyrnfr AT pltjva DOT pbz> [2004-09-15 17:07:51
>> -0400]:
>> >
>> > On Wed, Sep 15, 2004 at 03:20:50PM -0400, Sam Steingold wrote:
>> >>It appears that cygwin mmap() is lacking:
>> >>
>> >>configure:20536: checking for working mmap
>> >>configure:20617: gcc -o conftest.exe -g -O2 conftest.c  >&5
>> >>configure:20620: $? = 0
>> >>configure:20622: ./conftest.exe
>> >>configure:20625: $? = 1
>> >>configure: program exited with status 1
>> >>configure: failed program was:
>> >
>> > It would be enormously helpful if you apprised us of exactly *what*
>> > was wrong rather than expecting us to figure it out.
>> 
>> Let me assure you that you know these matters much better than I do.
>> 
>> The C program in my original e-mail is supposed to terminate with exit
>> code 0 if mmap() works correctly.  It does, e.g., on Linux and Solaris.
>> 
>> On cygwin, it terminates with exit code 1, which indicates that mmap()
>> does not work correctly as it is supposed to according to the spec.
>> 
>> Unfortunately, I am far from being an expert on these matters...

> The mmap test is crap.  How can an application expect to be able to
> access just about every address together with MAP_FIXED?

> Consequentially MapViewOfFileEx returns error 487 in these cases,
> "Attempt to access invalid address."

> That's just another example of a crappy autoconf mmap test.

This means that mmap is actually working?  Probably the best option
would be to fix the test in the upstream sources, so it will just work
automatically then?  Maybe fixing it in the -devel autoconf release
for now would be sufficient too?  Charles?


Gerrit
-- 
=^..^=



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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