bug-gnulib
[Top][All Lists]
Advanced

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

Re: OpenBSD: gettimeofday and sys/time.h errors


From: Mike Miller
Subject: Re: OpenBSD: gettimeofday and sys/time.h errors
Date: Fri, 9 Aug 2013 19:13:10 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

On Fri, Aug 09, 2013 at 01:46:27PM -0700, Paul Eggert wrote:
> Thanks, does the following patch fix things for you?
> If so, I'll install it into gnulib.

No, same exact set of errors. Your patch only touches sys/select.h. In
fact, I get pretty much the same errors if I don't include the select
gnulib module, and pull in only gettimeofday.

Here are the errors from the sys_time tests with only the gettimeofday
module used:

$ gmake -k test-sys_time test-sys_time-c++
  CC       test-sys_time.o
test-sys_time.c:27: error: size of array 'verify_tv_sec_type' is negative
gmake: *** [test-sys_time.o] Error 1
gmake: Target `test-sys_time' not remade because of errors.
  CXX      test-sys_time-c++.o
In file included from /usr/include/sys/select.h:37,
                 from /usr/include/sys/types.h:221,
                 from /usr/include/sys/time.h:38,
                 from ../libgnu/sys/time.h:38,
                 from test-sys_time-c++.cc:22:
../libgnu/sys/time.h:419: error: '::gettimeofday' has not been declared
test-sys_time-c++.cc:28: error: invalid conversion from 'int 
(*)(gnulib::timeval*, void*)' to 'int (*)(timeval*, void*)'
gmake: *** [test-sys_time-c++.o] Error 1
gmake: Target `test-sys_time-c++' not remade because of errors.

-- 
mike



reply via email to

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