Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Nov 2000 19:28:59 -0500
From:      "Donald J . Maddox" <dmaddox@sc.rr.com>
To:        current@FreeBSD.ORG, ports@FreeBSD.ORG
Subject:   Problems with stdbool.h...
Message-ID:  <20001115192859.A6948@cae88-102-101.sc.rr.com>

next in thread | raw e-mail | index | archive | help
As some of you may have noticed, apsfilter will no longer
compile on -current.  The reason is that the configure
script checks for <stdbool.h>, and uses it if it exists;
but this file, as I understand it, is intended only for
use with C99, and unfortunately, if it is included by the
standard compiler, the results are bad.  An example:

/* test.c */
#include <stdbool.h>
int main()
{
        return(0);
}

$ cc -o test test.c
In file included from test.c:1:
/usr/include/stdbool.h:51: conflicting types for `_Bool'
/usr/include/stdbool.h:38: previous declaration of `_Bool'

Apparently, stdbool.h defines _Bool, then redefines it if
__STDC_VERSION__ < 199901L.

Fixing the port to compile anyway would be simple enough,
but I think the real problem is in stdbool.h, no?  It
shouldn't break the standard compiler like this, should
it?

Please forgive the cross-posting...  Although this affects
ports, I have no way of knowing if the maintainer of this
file reads the ports mailing list...



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001115192859.A6948>