public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Csaba Raduly <rcsaba@gmail.com>
To: cygwin list <cygwin@cygwin.com>
Subject: Re: configure fails on checking ino_t
Date: Thu, 08 Jun 2017 08:27:00 -0000	[thread overview]
Message-ID: <CAEhDDbD_wXqPAJRzbJYSjSWkPqA8Rv6se7N6QnK_OcWuzUHRZQ@mail.gmail.com> (raw)
In-Reply-To: <6b85944b-bb04-0a6a-2a7d-1dcc7bc2fc1f@redhat.com>

On Thu, Jun 8, 2017 at 12:19 AM, Eric Blake  wrote:
> On 06/07/2017 05:11 PM, Lloyd Wood via cygwin wrote:
>> Aha! just slightly later in config.log:
>>
>> configure:17957: checking for ino_t
>> configure:17957: gcc -c -g -O2  conftest.c >&5
>> configure:17957: $? = 0
>> configure:17957: gcc -c -g -O2  conftest.c >&5
>> conftest.c: In function 'main':
>> conftest.c:94:20: error: expected expression before ')' token
>> if (sizeof ((ino_t)))
>> ^
>
> This _particular_ failure is expected (you aren't showing enough of the
> config.log output).  Remember, to determine if something is a type vs.
> an expression, autoconf performs TWO compilation tests, and relies on
> the fact that sizeof(expr) and sizeof((expr)) both compile, but
> sizeof(type) compiles while sizeof((type)) must fail.  The back-to-back
> compilation is necessary to ensure that something being probed for is a
> type name rather than an arbitray expression.
>
> So just because _some_ tests fail (as expected) does not mean that this
> particular failure is where configure is messing up.

Yes, I saw this in my successful config.log (and was a bit puzzled).

Lloyd, you need to look further down in config.log, because "checking
for sizeof(ino_t)" - the one that failed for you - is after "checking
for ino_t".

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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

  reply	other threads:[~2017-06-08  8:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <310357481.6222896.1496816466443.ref@mail.yahoo.com>
2017-06-07  6:21 ` Lloyd Wood via cygwin
2017-06-07  9:35   ` Corinna Vinschen
2017-06-07 19:10   ` Csaba Raduly
2017-06-07 20:37     ` Lloyd Wood via cygwin
2017-06-07 22:11       ` Lloyd Wood via cygwin
2017-06-07 22:19         ` Eric Blake
2017-06-08  8:27           ` Csaba Raduly [this message]
2017-06-08  2:44       ` Brian Inglis
2017-06-09 20:38   ` Ken Brown
2017-06-09 23:22     ` Lloyd Wood via cygwin
2017-06-10  1:53       ` Ken Brown
2017-06-11  0:22         ` Lloyd Wood via cygwin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEhDDbD_wXqPAJRzbJYSjSWkPqA8Rv6se7N6QnK_OcWuzUHRZQ@mail.gmail.com \
    --to=rcsaba@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).