delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/13/11:43:07

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:mime-version
:content-type; q=dns; s=default; b=xHGVcGekysmAv5EIhXox/oLS32FvG
xcDLaXWLeryBGLFbqNX75ugv+fiG9umxgPMqqA15PY0hoP8yR02qIzKSowwKGuZ1
zyDOAyofA7stUW18Of2l8gMRlCE0eS8KPfcL2e1kOajiRxXsiAT1PGTBsH6AR/IA
ZbjDnx7Zjma8r0=
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:mime-version
:content-type; s=default; bh=nULiU7gHGIzkE4+dm4MEAcAMbwY=; b=vIo
TOP5hq9Kf6KP8bhD9hqGTD/soQkKhV2VfTR3+zN65y8Uk09qaF/EJWul8mRybnsc
MlfOGFuPlxgcUk5U6O4QQA5WiNzKf0CvttY9NB2ZlW374EhFbNQHTpnzDw2ozPWI
P8ra8QZ/FDenivL+AWJJ4VpuzKXIBVbPHGtH7fYg=
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.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2
X-HELO: mailout.scc.kit.edu
Date: Thu, 13 Feb 2014 17:42:44 +0100
From: Urs =?iso-8859-1?Q?Jan=DFen?= <tin AT akk DOT org>
To: cygwin AT cygwin DOT com
Subject: patch for (clang) problem on Cygwin 1.7.28(0.271/5/3) i686
Message-ID: <20140213164244.GA5629@akk.org>
MIME-Version: 1.0
User-Agent: Mutt/1.5.21 (2010-09-15)

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Here's a log-entry from a configure (autoconf) script (when looking for
ncursesw):

configure:9503: clang -c -g -I/usr/lib/gcc/i686-pc-cygwin/4.8.2/include -O0
-std=c99 -pedantic -W -Wall -Wextra -Wcast-align   -D_XOPEN_SOURCE=600
--I/usr/include/ncursesw conftest.c 1>&5
In file included from configure:9497:
In file included from /usr/include/ncursesw/curses.h:147:
In file included from /usr/include/stdio.h:35:
In file included from /usr/include/sys/cdefs.h:43:
/usr/include/machine/_default_types.h:28:9: error: unknown type name /'__UINT8_TYPE__'
typedef __UINT8_TYPE__ __uint8_t;
        ^
/usr/include/machine/_default_types.h:38:9: error: unknown type name '__UINT16_TYPE__'
typedef __UINT16_TYPE__ __uint16_t;
        ^
/usr/include/machine/_default_types.h:56:9: error: unknown type name '__UINT32_TYPE__'
typedef __UINT32_TYPE__ __uint32_t;
        ^
/usr/include/machine/_default_types.h:78:9: error: unknown type name '__UINT64_TYPE__'
typedef __UINT64_TYPE__ __uint64_t;
        ^
configure:9499:12: warning: implicit declaration of function 'tgoto' is
invalid in C99 [-Wimplicit-function-declaration]
initscr(); tgoto("?", 0,0)
           ^
1 warning and 4 errors generated.
configure: failed program was:
#line 9496 "configure"
#include "confdefs.h"
#include <curses.h>
int main() {
initscr(); tgoto("?", 0,0)
; return 0; }


After applying the attched patch, configure runs as expected. I'm not sure
if it's the right approach to fix the issue. IIRC the issue was not present
in cygwin 1.7.27.

HTH,
urs
-- 
"Only whimps use tape backup: _real_ men just upload their important stuff
 on ftp, and let the rest of the world mirror it ;)" - Linus

--tThc/1wpZn/ma/RB
Content-Type: text/x-diff; charset=us-ascii
Content-Disposition: attachment; filename="_default_types.h.diff"

--- /usr/include/machine/_default_types.h	2014-02-13 17:30:46.134973100 +0100
+++ /usr/include/machine/_default_types.h	2014-02-13 17:29:34.354182500 +0100
@@ -23,7 +23,7 @@
 extern "C" {
 #endif
 
-#ifdef __INT8_TYPE__
+#if defined(__INT8_TYPE__) && defined(__UINT8_TYPE__)
 typedef __INT8_TYPE__ __int8_t;
 typedef __UINT8_TYPE__ __uint8_t;
 #define ___int8_t_defined 1
@@ -33,7 +33,7 @@
 #define ___int8_t_defined 1
 #endif
 
-#ifdef __INT16_TYPE__)
+#if defined(__INT16_TYPE__) && defined(__UINT16_TYPE__)
 typedef __INT16_TYPE__ __int16_t;
 typedef __UINT16_TYPE__ __uint16_t;
 #define ___int16_t_defined 1
@@ -51,7 +51,7 @@
 #define ___int16_t_defined 1
 #endif
 
-#ifdef __INT32_TYPE__
+#if defined(__INT32_TYPE__) && defined(__UINT32_TYPE__)
 typedef __INT32_TYPE__ __int32_t;
 typedef __UINT32_TYPE__ __uint32_t;
 #define ___int32_t_defined 1
@@ -73,7 +73,7 @@
 #define ___int32_t_defined 1
 #endif
 
-#ifdef __INT64_TYPE__
+#if defined(__INT64_TYPE__) && defined(__UINT64_TYPE__)
 typedef __INT64_TYPE__ __int64_t;
 typedef __UINT64_TYPE__ __uint64_t;
 #define ___int64_t_defined 1


--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii

--
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
--tThc/1wpZn/ma/RB--

- Raw text -


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