[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building m4 on BSDI 4.0.1
From: |
Eric Blake |
Subject: |
Re: Building m4 on BSDI 4.0.1 |
Date: |
Mon, 08 Jan 2007 20:58:08 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.9) Gecko/20061207 Thunderbird/1.5.0.9 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Chris McGuire on 1/8/2007 12:59 PM:
>> The second one is for you - can you locate a system header that
>> defines wchar_t on your platform? Something like the following will be a
>> good start,
>>
>> $ grep -E '(typedef|define).*wchar_t' /usr/include/*.h /usr/include/sys/*.h
>
> Here's the output from the above command:
> /usr/include/rune.h:typedef _BSD_WCHAR_T_ wchar_t;
> /usr/include/stddef.h:typedef _BSD_WCHAR_T_ wchar_t;
> /usr/include/stdlib.h:typedef _BSD_WCHAR_T_ wchar_t;
It looks like the following gnulib patch is needed. Chris, can you
confirm one last thing? Check that the following compiles for you (gcc -c
file.c), but that when you comment out the line with <stddef.h>, that the
compile fails:
/* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>.
Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.
BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
<wchar.h>.
BSDI 4.0.1 has a bug: <stddef.h> must be included before <wchar.h>.
*/
# include <stddef.h>
# include <stdio.h>
# include <time.h>
# include <wchar.h>
wchar_t w;
2007-01-08 Eric Blake <address@hidden>
* lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
<wchar.h>, to work around BSDI 4.0.1 bug.
Reported by Chris McGuire.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFoxLQ84KuGfSFAYARAmzbAJ9oLh1LPst6pHcUGkcVplPKbVrI/wCgv+sk
vmpZ+JsRKT4AfGF9Gpx0Ubo=
=XbwZ
-----END PGP SIGNATURE-----
Index: lib/wctype_.h
===================================================================
RCS file: /sources/gnulib/gnulib/lib/wctype_.h,v
retrieving revision 1.5
diff -u -p -r1.5 wctype_.h
--- lib/wctype_.h 6 Jan 2007 00:27:48 -0000 1.5
+++ lib/wctype_.h 9 Jan 2007 03:56:00 -0000
@@ -1,6 +1,6 @@
/* A substitute for ISO C99 <wctype.h>, for platforms that lack it.
- Copyright (C) 2006 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,7 +34,9 @@
Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
<wchar.h>.
BSD/OS 4.1 has a bug: <stdio.h> and <time.h> must be included before
- <wchar.h>. */
+ <wchar.h>.
+ BSDI 4.0.1 has a bug: <stddef.h> must be included before <wchar.h>. */
+# include <stddef.h>
# include <stdio.h>
# include <time.h>
# include <wchar.h>
Re: Building m4 on BSDI 4.0.1,
Eric Blake <=