bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bool on Caldera OpenLinux 3.1.1


From: Tim Rice
Subject: Re: bool on Caldera OpenLinux 3.1.1
Date: Tue, 30 Oct 2007 21:50:34 -0700 (PDT)

On Tue, 30 Oct 2007, Bruno Haible wrote:

> Tim Rice wrote:
> > > The build fails on Caldera OpenLinux 3.1.1
> > > Here is a snipet of the build log
> > > ....
> > > make  all-am
> > > make[2]: Entering directory `/usr/local/src/gnu/m4-1.3.10/lib'
> > > source='/opt/src/gnu/m4-1.4.10/lib/gl_array_list.c'
> > > object='gl_array_list.o' libtool=no \
> > > DEPDIR=.deps depmode=none /bin/ksh /opt/src/gnu/m4-1.4.10/depcomp \
> > > cc  -I. -I/opt/src/gnu/m4-1.4.10/lib     -g -c
> > > /opt/src/gnu/m4-1.4.10/lib/gl_array_list.c
> > > In file included from /opt/src/gnu/m4-1.4.10/lib/gl_array_list.h:22,
> > >                  from /opt/src/gnu/m4-1.4.10/lib/gl_array_list.c:22:
> > > /opt/src/gnu/m4-1.4.10/lib/gl_list.h:99: parse error before `*'
> > > /opt/src/gnu/m4-1.4.10/lib/gl_list.h:99: `_Bool' declared as function
> > > returning a function
> > > /opt/src/gnu/m4-1.4.10/lib/gl_list.h:133: parse error before
> > > `gl_listelement_equals_fn'
> 
> Can you please show
>   - the contents of lib/stdbool.h ?
Attached.

>   - "grep -i bool config.status" ?
$ grep -i bool config.status
s,@STDBOOL_H@,|#_!!_#|stdbool.h,g
s,@HAVE__BOOL@,|#_!!_#|1,g
s,^\([   #]*\)[^         ]*\([   ]*HAVE__BOOL\)[         (].*,\1define\2 1 ,

>   - the brand and version of cc ?
$ gcc --version
2.95.2

>   - the result of compiling
>       ====================== snippet1.c ========================
>       #include <stdbool.h>
>       typedef bool (*a) (const void *b);
>       ==========================================================
sh-2.05$ cat > x.c
#include <stdbool.h>
typedef bool (*a) (const void *b);
^D
sh-2.05$ gcc -c x.c

>   - the result of compiling
>       ====================== snippet2.c ========================
>       typedef _Bool (*a) (const void *b);
>       ==========================================================
sh-2.05$ cat > x.c
typedef _Bool (*a) (const void *b);
^D
sh-2.05$ gcc -c x.c
x.c:1: parse error before `*'
x.c:1: `_Bool' declared as function returning a function
sh-2.05$ 
 
> Bruno
> 
> 
> 

-- 
Tim Rice                                Multitalents    (707) 887-1469
address@hidden

Attachment: stdbool.h
Description: lib/stdbool.h


reply via email to

[Prev in Thread] Current Thread [Next in Thread]