[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #4830] configure problem with stdbool.h
From: |
James Youngman |
Subject: |
[bugs #4830] configure problem with stdbool.h |
Date: |
Sun, 21 Nov 2004 19:18:24 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Debian/1.7.3-5 |
This mail is an automated notification from the bugs tracker
of the project: findutils.
/**************************************************************************/
[bugs #4830] Latest Modifications:
Changes by:
James Youngman <address@hidden>
'Date:
Mon 11/22/04 at 00:00 (GMT)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
Fixed Release | None | 4.2.7
------------------ Additional Follow-up Comments ----------------------------
I have a subsequent report of findutils compiling OK on UNICOS on a Cray Y-MP.
Hence I will assume that this problem has now been solved.
/**************************************************************************/
[bugs #4830] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=4830>
Project: findutils
Submitted by: wendy palm
On: Mon 08/18/03 at 21:10
Category: None
Severity: 5 - Average
Item Group: None
Resolution: Fixed
Privacy: Public
Assigned to: jay
Originator Name:
Originator Email:
Status: Closed
Release: None
Fixed Release: 4.2.7
Summary: configure problem with stdbool.h
Original Submission: i'm in the process of checking out a snapshot provided to
me by james youngman of a snapshot of the CVS tree of findutils, from 8 august.
i've had findutils-4.1 running on all the cray architectures for several years.
i'm having trouble getting the compile to complete for this snapshot. the
problem seems to be that there is no stdbool.h.
...
cc -DHAVE_CONFIG_H -I. -I. -I.. -g -c `test -f 'human.c' || echo
'./'`human.c
CC-5 cc: ERROR File = human.h, Line = 30
The source file "stdbool.h" is unavailable.
# include <stdbool.h>
^
make[5]: *** [human.o] Error 1
make[5]: Leaving directory `/ptmp/wendyp/finddir/findutils-4.2.0/gnulib/lib'
well, that's true, there is no stdbool.h on a non-X1 cray machine.
so, i checked out my redhat linux box, and it also does not have a stdbool.h
file) but it completes compiling with no problem.
i don't understand this at all. but i was able to overcome the confusion and
find something that works.
"typedef char bool" works for gnulib/lib/human.h.
it looks like someone ran into a similar problem in find/defs.h, but the #ifdef
structure there makes no sense to me.
for the "bool" type to work on a UNICOS machine, the following patches are
needed:
$ diff -c gnulib/lib/human.h.orig gnulib/lib/human.h
*** gnulib/lib/human.h.orig Mon Aug 18 15:41:32 2003
--- gnulib/lib/human.h Mon Aug 18 16:04:38 2003
***************
*** 27,34 ****
# endif
# include <limits.h>
# include <stdbool.h>
!
# if HAVE_INTTYPES_H
# include <inttypes.h>
# else
--- 27,37 ----
# endif
# include <limits.h>
+ # ifndef _UNICOS
# include <stdbool.h>
! # else
! typedef char bool;
! # endif /* _UNICOS */
# if HAVE_INTTYPES_H
# include <inttypes.h>
# else
$ diff -c find/defs.h.orig find/defs.h
*** find/defs.h.orig Mon Aug 18 15:53:18 2003
--- find/defs.h Mon Aug 18 16:09:00 2003
***************
*** 128,134 ****
#define MODE_ALL (S_ISUID | S_ISGID | S_ISVTX | MODE_RWX)
#if 1
! #include <stdbool.h>
typedef bool boolean;
#else
/* Not char because of type promotion; NeXT gcc can't handle it. */
--- 128,140 ----
#define MODE_ALL (S_ISUID | S_ISGID | S_ISVTX | MODE_RWX)
#if 1
! # ifndef _UNICOS
! # include <stdbool.h>
! # else
! typedef char bool;
! #define true 1
! #define false 0
! # endif /* _UNICOS */
typedef bool boolean;
#else
/* Not char because of type promotion; NeXT gcc can't handle it. */
Follow-up Comments
------------------
-------------------------------------------------------
Date: Mon 11/22/04 at 00:00 By: James Youngman <jay>
I have a subsequent report of findutils compiling OK on UNICOS on a Cray Y-MP.
Hence I will assume that this problem has now been solved.
-------------------------------------------------------
Date: Sat 10/30/04 at 09:23 By: James Youngman <jay>
Looking in the "configure" file that we have in the CVS code, it will generate
a copy of stdbool.h if it thinks one is required. I think this is also present
in findutils-4.2.2 which you can download from
ftp://alpha.gnu.org/gnu/findutils. Could yo give that a try and let me know
what you find out?
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=4830>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bugs #4830] configure problem with stdbool.h,
James Youngman <=