In message <[EMAIL PROTECTED]>, Jim Meyering <[EMAIL PROTECTED]> writes
John Lowe <[EMAIL PROTECTED]> wrote:
...
$ make
make  all-recursive
Making all in lib
...
gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -I. -I. -I..  -I.. -I.
-g -O2 -c strftime.c strftime.c:63: header file 'wchar.h' not found
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode make[3]: *** [strftime.o] Error 1

If you really don't have any wchar.h on that system, then run `man mbrlen' and see if it tells of some other .h file that must be included to get a definition of the mbstate_t type.

While `man mbrlen' has `#include <wchar.h>' in it's synopsis, the file does not seem to exist in the Apple Dec2002DevToolsCD.dmg which I used to install the `developer system'. I tried reinstalling the software to make sure I hadn't managed to delete wchar.h by mistake. I would think that this would be a notifiable omission - if I could figure out where at Apple to notify it!


Then you can try replacing the #include "wchar.h" in
lib/strftime.c with your new include(s) and run make again.

If all else fails, change this line of strftime.c

#define DO_MULTIBYTE (HAVE_MBLEN && ! MULTIBYTE_IS_FORMAT_SAFE)

to this:

#define DO_MULTIBYTE 0

All else failed so I did this & the whole thing compiled. However there seemed to be a lot of syntax errors (complaining about && on many lines from line 5730 and other things later) in regex.c. It seems to have retried in basic mode & succeeded... Limited testing shows that the package has given me working programs.


Thank you very much for your help. Is there anything else you need me to do?
--
John Lowe
[EMAIL PROTECTED]



_______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to