[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: findutils-4.2.26 build error on HP-UX 10.20
From: |
Peter Fales |
Subject: |
Re: findutils-4.2.26 build error on HP-UX 10.20 |
Date: |
Tue, 22 Nov 2005 13:29:49 -0600 |
User-agent: |
Mutt/1.4.2.1i |
The error message occurs while building gnulib/lib (as part of
findutils-4.2.26):
$ make
make all-am
make[1]: Entering directory
build/output/expmake/build/gnucoresrc/build/findutils/gnulib/lib'
/opt/exp/gnu/bin/gcc -DHAVE_CONFIG_H -I. -I. -I../.. -O -c mbchar.c
In file included from mbchar.c:24:
mbchar.h:160:20: wctype.h: No such file or directory
make[1]: *** [mbchar.o] Error 1
make[1]: Leaving directory
build/output/expmake/build/gnucoresrc/build/findutils/gnulib/lib'
make: *** [all] Error 2
$
Adding the patch from my previous mail (to simply not include the
missing wctype.h) allows findutils to build to completion.
--
Peter Fales Lucent Technologies, Room 1C-436
N9IYJ 2000 Lucent Ln, PO Box 3033
internet: address@hidden Naperville, IL 60566-7033
work: (630) 979-8031
On Tue, Nov 22, 2005 at 01:35:09AM +0000, James Youngman wrote:
> On Mon, Nov 21, 2005 at 10:07:29AM -0600, Peter Fales wrote:
> > findutils fails to build on an HP-UX 10.20 machine because it doesn't
> > have wctype.h.
>
> Yes, along with much of the rest of the GNU tool set, GNU findutils
> now assumes that it is being built on a system that complies with at
> least the oldest version of the ANSI C standard, ISO/IEC 9899:1990. I
> believe that ANSI C requires <wctype.h>.
>
> I'm copying this email to the gnulib project, in case they want to
> apply the patch anyway (the gnulib subdirectory of the findutils
> source code is just imported from the gnulib project).
>
> In any case, thanks for the diagnosis and patch.
>
> regards,
> James.
>
> > Patch is:
> >
> > diff -ur findutils-4.2.26/gnulib/lib/mbchar.h
> > findutils-4.2.26.new/gnulib/lib/mbchar.h
> > --- findutils-4.2.26/gnulib/lib/mbchar.h 2005-09-17 17:06:40.000000000
> > -0500
> > +++ findutils-4.2.26.new/gnulib/lib/mbchar.h 2005-11-21
> > 09:52:26.000000000 -0600
> > @@ -156,7 +156,9 @@
> > #include <time.h>
> > #include <wchar.h>
> >
> > +#ifdef HAVE_WCTYPE_H
> > #include <wctype.h>
> > +#endif
> >
> > #define MBCHAR_BUF_SIZE 24