[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sys/cdrom.h fails to compile cleanly with -ansi (Was: present but ca
From: |
Akim Demaille |
Subject: |
Re: sys/cdrom.h fails to compile cleanly with -ansi (Was: present but cannot be compiled) |
Date: |
Thu, 06 Nov 2003 08:17:01 +0100 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
No private messages for public matters please.
> On Wednesday 05 November 2003 10:40 am, you wrote:
>> For instance, if the error message is:
>>
>> sys/socket.h: present but cannot be compiled
>> sys/socket.h: check for missing prerequisite headers?
>> sys/socket.h: proceeding with the preprocessor's result
>>
>> then try to compile the program sample.c:
>>
>> #include <sys/socket.h>
>>
>> with `cc -c sample.c'. It will fail.
> Nope. It succeeds. As I said in my previous email, the reason for
> the failure of the autoconf check (and subsequent failure of the
> build) is that -ansi is present in the CFLAGS. This isn't a
> prerequisite headers issue, unless there's some header that can
> turn back on gcc's groking of __u32 &c.
> For reference, the header in question is <linux/cdrom.h>, on a
> Linux 2.4.20 system.
Arg, thanks.
But then, I think the expected result is indeed to reject this header,
since it is not compilable. In the near future the compiler's choice
will dominate that of the preprocessor.