bug-gnulib
[Top][All Lists]
Advanced

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

Re: compilation of findutils-4.4.0 with gcc-4.4.0-20090225 -- error with


From: Bruno Haible
Subject: Re: compilation of findutils-4.4.0 with gcc-4.4.0-20090225 -- error with wctype.h in gnulib code
Date: Fri, 27 Feb 2009 21:25:48 +0100
User-agent: KMail/1.9.9

Hello,

Frank Erens wrote:
> I'm trying to compile findutils-4.4.0,

Please, on what system? You mentioned the compiler you are using, but the
platform (`uname -srm`) is also mandatory information.

> but get the following errors from make: 
> ...
> depbase=`echo mbchar.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
>       gcc4.3 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl   -g -O2
> -MT mbchar.o -MD -MP -MF $depbase.Tpo -c -o mbchar.o mbchar.c &&\
>       mv -f $depbase.Tpo $depbase.Po
> In file included from mbchar.h:157,
>                  from mbchar.c:21:
> /tools/include/wctype.h:112: error: expected ')' before '__wc'

The main source file is indeed from gnulib, but the syntax error is occurring
in a file from your /tools/include directory. So, as this point it's not
clear where the problem comes from. It requires more investigation:

> /tools/include/wctype.h:118: error: expected ')' before '__wc'

When a compiler reports a syntax error, one needs to look at
  1. the source code around the mentioned location (/tools/include/wctype.h
     up to line 118),
  2. the preprocessed input, i.e. here, the result of
     gcc4.3 -std=gnu99 -DHAVE_CONFIG_H -I. -I../..  -I../../intl   -g -O2 -E 
mbchar.c
Can you take a look at these two, or show us the relevant parts of it,
please?

Bruno




reply via email to

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