[Top][All Lists]

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

Re: Compiling coreutils-5.0 on a Mac Powerbook under OS X

From: John Lowe
Subject: Re: Compiling coreutils-5.0 on a Mac Powerbook under OS X
Date: Mon, 8 Nov 2004 17:20:19 +0000
User-agent: Turnpike/6.04-M (<jVVoyPwPKbobeulB8vsz9lkEkR>)

In message <address@hidden>, Jim Meyering <address@hidden> writes
John Lowe <address@hidden> 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


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

reply via email to

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