public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* patch for (clang) problem on Cygwin 1.7.28(0.271/5/3) i686
@ 2014-02-13 17:50 Urs Janßen
  2014-02-28  9:38 ` KIMURA Masaru
  0 siblings, 1 reply; 2+ messages in thread
From: Urs Janßen @ 2014-02-13 17:50 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]

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

[-- Attachment #2: _default_types.h.diff --]
[-- Type: text/x-diff, Size: 1093 bytes --]

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


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: patch for (clang) problem on Cygwin 1.7.28(0.271/5/3) i686
  2014-02-13 17:50 patch for (clang) problem on Cygwin 1.7.28(0.271/5/3) i686 Urs Janßen
@ 2014-02-28  9:38 ` KIMURA Masaru
  0 siblings, 0 replies; 2+ messages in thread
From: KIMURA Masaru @ 2014-02-28  9:38 UTC (permalink / raw)
  To: cygwin

Hi,

2014-02-14 1:42 GMT+09:00 Urs Janßen :
> 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.

SAME HERE(TM)

# im also waiting llvm/clang bump, 3.1 looks too old...
# at least current 3.1-3 packages should be fixed w/ following patch...
# http://sourceforge.net/p/cygwin-ports/mailman/message/31716912/

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-28  8:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-13 17:50 patch for (clang) problem on Cygwin 1.7.28(0.271/5/3) i686 Urs Janßen
2014-02-28  9:38 ` KIMURA Masaru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).