[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bool on Caldera OpenLinux 3.1.1
From: |
Bruno Haible |
Subject: |
Re: bool on Caldera OpenLinux 3.1.1 |
Date: |
Thu, 1 Nov 2007 01:07:01 +0100 |
User-agent: |
KMail/1.5.4 |
Tim Rice wrote:
> > - the brand and version of cc ?
> $ gcc --version
> 2.95.2
Thanks.
> > - "grep -i bool config.status" ?
> $ grep -i bool config.status
> s,@STDBOOL_H@,|#_!!_#|stdbool.h,g
> s,@HAVE__BOOL@,|#_!!_#|1,g
That's the problem: The autoconf test has determined that _Bool exists,
but the tests later clearly show that _Bool is treated like an undefined
symbol, not like a type.
Can you please try two more snippets?
====================== snippet3.c ========================
typedef _Bool ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
return 0;
if (sizeof (ac__type_new_))
return 0;
return 0;
}
===========================================================
and (remove those #includes that refer to nonexistent files):
====================== snippet4.c ========================
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <strings.h>
#include <inttypes.h>
#include <stdint.h>
#include <unistd.h>
typedef _Bool ac__type_new_;
int
main ()
{
if ((ac__type_new_ *) 0)
return 0;
if (sizeof (ac__type_new_))
return 0;
return 0;
}
===========================================================
$ gcc -c snippet4.c
yields what?
Bruno