[Top][All Lists]

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

Re: gnulib compilation error

From: Bruno Haible
Subject: Re: gnulib compilation error
Date: Mon, 16 May 2011 22:23:23 +0200
User-agent: KMail/1.9.9

Sam Steingold wrote:
> I am getting this error:
> In file included from /home/sds/src/clisp/current/build-g/gllib/sys/stat.h:44,
>                  from clisp.c:31:
> /home/sds/src/clisp/current/build-g/gllib/time.h:469: error: expected ';', 
> ',' or ')' before '__timer'
> /home/sds/src/clisp/current/build-g/gllib/time.h:491: error: expected ';', 
> ',' or ')' before '__timer'
> time.h:469:_GL_FUNCDECL_SYS (localtime_r, struct tm *, (time_t const 
> *restrict __timer,
>                                              struct tm *restrict __result)
>                                             _GL_ARG_NONNULL ((1, 2)));
> it appears that time_t is not defined.

More likely, 'restrict' is not defined, or is defined to an unsupported value.
Cf. [1][2]

With gnulib, 'restrict' ought to be defined by config.h. Maybe you have several
config.h files, and one of them defines 'restrict' but not the others? Or maybe
the compilation unit that you are compiling does not start with
"#include <config.h>"?


[1] http://lists.gnu.org/archive/html/grub-devel/2010-12/msg00016.html
[2] http://lists.gnu.org/archive/html/bug-gnulib/2008-05/msg00222.html
In memoriam The victims of the Zaklopańća massacre 

reply via email to

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