On Fri, Jun 16, 2006 at 11:16:04AM +0200, KELEMEN Peter wrote:
> * Kurt Roeckx ([EMAIL PROTECTED]) [20060615 23:35]:
> 
> > checking whether select() modifies the time value... no
> 
> > And you should probably look at why the configure script returns
> > that.
> 
> I can't reproduce it on any platform.  Care to attach config.log?

The relevant config.log part:
====
configure:1950: checking for getloadavg
configure:1978: gcc -o conftest -g -O0   -rdynamic conftest.c  -lncurses -ldl 
1>&5
configure:2004: checking whether select() modifies the time value
configure:2027: gcc -o conftest -g -O0   -rdynamic conftest.c  -lncurses -ldl 
1>&5
configure: In function 'main':
configure:2021: warning: incompatible implicit declaration of built-in function
'exit'
configure: failed program was:
#line 2009 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
#include <unistd.h>

int main()
{
int retval;
fd_set rfds;
struct timeval tv = {1, 0};
FD_ZERO(&rfds); FD_SET(0,&rfds);
select(1,&rfds,0,0,&tv);
if(tv.tv_sec == 0) exit(0);
else exit(1);
}

configure:2044: checking whether sysctl() can be used
====

I think what the problem is that it's trying to use stdin
and get a read failure when trying to build on the buildd.
I think it actually points to /dev/null or something.
When trying the test program, and redirecting stdin to
/dev/null I atleast get the same behaviour.

(The warning is because you don't #include <stdlib.h>.)


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to