delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/24/14:37:14

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=fpqFSpFD7CpLzxHWYtndOE1Zj9CFqNeW7sxaaKUzg535UfaKkn9dP
dh+MxbdvYfsw0zEPAJhJcfKaiOPy9+yQkDqUY74SdcV3cdbem8cM71beNFwFlII8
hEEBwMmBnbY5r1a3NL2L6cnFRrUXka3SlCD+yIK/mw+Frv4oISO7Hc=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=C68HWL4ANna/YozVN3eH5uk7a4M=; b=O4w4Ij+JjRJTFgL/ioGmXIxj9+Xj
SUr/enG0dEZeoL2P5eWpAgVLZogvAtB9I1leBF4nb508lr/YOq1nioQyRjnVC8Cl
tPjYBEh+zgWrbahkYg3cfBmfUwRhDBdmJnxa9R2w1QXG6j5I+eI3hwLJp/2zJS6v
eIkZXNyljPkJ0rA=
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
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Wed, 24 Apr 2013 20:36:54 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: w32api lower version / mess in Cygwin 1.7.18 ?
Message-ID: <20130424183654.GD26397@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <5F8AAC04F9616747BC4CC0E803D5907D0AF6E7B8 AT MLBXv04 DOT nih DOT gov>
MIME-Version: 1.0
In-Reply-To: <5F8AAC04F9616747BC4CC0E803D5907D0AF6E7B8@MLBXv04.nih.gov>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Apr 24 18:22, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote:
> Hello,
> 
> I've installed official Cygwin 1.7.18, and an application that
> uses w32api does no longer compile.
> 
> Last time I used it with Cygwin 1.7.15 (where everything worked),
> and /usr/include/w32api/w32api.h had:
> 
> #define __W32API_VERSION 3.17
> #define __W32API_MAJOR_VERSION 3
> #define __W32API_MINOR_VERSION 17
> 
> Now in Cygwin 1.7.18, that very file contains the following:
> 
> #define __W32API_VERSION 3.14
> #define __W32API_MAJOR_VERSION 3
> #define __W32API_MINOR_VERSION 14
> 
> Even though the newer file is more advanced than the one before
> (lists more Windows and IE versions).
> 
> The DDK that comes along does not look like anything working at all:
> there are tons of redifinitions (of PAGE_SIZE, to say the least), as well as the
> order of header inclusions now seems to be significant (and not self-consistent
> anymore):  parts of the API are aware of the NT_INCLUDED guard
> (to the extent that I've figured out), parts not.
> 
> Here's just to illustrate:
> In file included from /usr/include/w32api/ddk/ntddk.h:38:0,
>                  from /usr/include/w32api/ddk/ntifs.h:34,
> /usr/include/w32api/ddk/wdm.h:7679:0: warning: "PAGE_SIZE" redefined
> /usr/include/limits.h:211:0: note: this is the location of the previous definition
> In file included from /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../include/w32api/windows.h:70:0,
> 
> So my question is basically, whoever included this into release,
> did they run any checks at all prior to releasing the package(s)?
> 
> Any suggestions how to fix all this mess would be highly appreciated.

Apparently you didn't notice that we switched from Mingw.org headers
to Mingw-w64 headers to support the 64 bit Cygwin effort.

With Mingw-w64 headers, don't use the DDK headers in conjunction with
user space applications.  These headers are not appropriate for that and
the fact that we could use the Mingw.org equivalents was just a nice
effect, but nothing you ever should have relied upon (just as in Cygwin,
we originally did the same, but we changed it).

The (unfortunately incomplete) replacement for the user space is the
deprecated ntdef.h, or the more adequate winternl.h.  Patches to extend
winternl.h are welcome on the mingw-w64-public ML.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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