Re: gnulib compilation error

2011-05-16 Thread Sam Steingold
> * Bruno Haible  [2011-05-16 22:23:23 +0200]:
>
> 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 "?

yes, thanks, fixed.

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://mideasttruth.com http://www.memritv.org http://thereligionofpeace.com
http://openvotingconsortium.org http://truepeace.org http://honestreporting.com
Lisp: Serious empowerment.



Re: gnulib compilation error

2011-05-16 Thread Bruno Haible
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 "?

Bruno

[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 




Re: gnulib compilation error

2011-05-16 Thread Sam Steingold
> * Eric Blake  [2011-05-16 13:55:31 -0600]:
>
> On 05/16/2011 01:51 PM, Sam Steingold wrote:
>> I am getting this error:
>
> On which platform?

CentOS release 5.6 (Final)
Linux 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 
GNU/Linux

sorry about not including the obviously required information right away


-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://iris.org.il http://camera.org http://palestinefacts.org
http://jihadwatch.org http://mideasttruth.com http://ffii.org
Bill Gates is not god and Microsoft is not heaven.



Re: gnulib compilation error

2011-05-16 Thread Eric Blake
On 05/16/2011 01:51 PM, Sam Steingold wrote:
> I am getting this error:

On which platform?

> 
> 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.

Most likely a broken header, and we can work around it if we know which
platform needs the replacement  to include some prerequisite
headers.

-- 
Eric Blake   ebl...@redhat.com+1-801-349-2682
Libvirt virtualization library http://libvirt.org



signature.asc
Description: OpenPGP digital signature


gnulib compilation error

2011-05-16 Thread Sam Steingold
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.

I am including these modules:

no-c++ stdint stdbool havelib gettext localcharset
uniwidth/width streq uniname/uniname unitypes link-follow
host-cpu-c-abi socklen sockets fd-hook setenv unsetenv errno
arpa_inet netinet_in inet_ntop inet_pton lstat stat canonicalize-lgpl
nocrash libsigsegv gnu-make gettimeofday getpagesize sys_time sys_wait
 mktime strftime strptime strverscmp uname strerror fnmatch-gnu
 regex

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://mideasttruth.com http://pmw.org.il
http://ffii.org http://memri.org http://thereligionofpeace.com
Independence: nobody pays for you.  Liberty: nobody thinks for you.