dhcpcd-discuss

Building without epoll - configure fails

Shahid Mahmood

Wed Mar 23 20:53:54 2016

Hi,
I am trying to build dhcpcd without epoll. After running configure as:

./configure --with-poll=no --target=arm-linux-guneabi

I am getting this:

"No suitable polling function is available, not even pselect"

However, the system *does* have pselect. I can even compile the test
application in configure script:

#include <sys/select.h>
#include <stdlib.h>
int main(void) {
	pselect(0, NULL, NULL, NULL, NULL, NULL);
	return 0;
}

and it runs fine on the target.

I can also modify configure script to remove test for pselect and
forcing 'POLL=pselect'

Everything works fine this way (ie binary is built and runs correctly
on the target).

Is there any documentation on the proper way to build?

thanks

-shahid

Follow-Ups:
Re: Building without epoll - configure failsRoy Marples
Archive administrator: postmaster@marples.name