Linux 2.0.xx doesn't support poll(). poll() is emulated by using
select().
You will get better performance using select() than poll().
It even says so in the manual entry.
D
Benarson Behajaina wrote:
>
> Hi,
>
> I tried to compile Squid 1.1.22 (using USE_POLL option in src/Makefile),
> but my Linux 2.0.34 (Slackware) returns :
>
> gcc -g -O2 -Wall -I. -I../include -I./../include -DCACHEMGR_HOSTNAME="getfullhostname()" -DUSE_PROXY_AUTH=1 -DLOG_FULL_HEADERS=1 -DUSE_ICMP=1 -DDELAY_HACK=1 -DUSE_USERAGENT_LOG=1 -DKILL_PARENT_OPT -DUSE_POLL -DUSE_BIN_TREE -DRELOAD_INTO_IMS -DALLOW_HOSTNAME_UNDERSCORES -DRETRY_PATCH -DNO_CACHE_ACL=1 -c comm.c -o comm.o
> comm.c: In function `comm_select_incoming':
> comm.c:855: storage size of `pfds' isn't known
> comm.c:872: `POLLRDNORM' undeclared (first use this function)
> comm.c:872: (Each undeclared identifier is reported only once
> comm.c:872: for each function it appears in.)
> comm.c:874: `POLLWRNORM' undeclared (first use this function)
> comm.c:884: warning: implicit declaration of function `poll'
> comm.c:893: `POLLIN' undeclared (first use this function)
> comm.c:893: `POLLHUP' undeclared (first use this function)
> comm.c:893: `POLLERR' undeclared (first use this function)
> comm.c:898: `POLLOUT' undeclared (first use this function)
> comm.c:858: warning: unused variable `dopoll'
> comm.c:855: warning: unused variable `pfds'
> comm.c: In function `comm_select':
> comm.c:972: storage size of `pfds' isn't known
> comm.c:1013: `POLLRDNORM' undeclared (first use this function)
> comm.c:1015: `POLLWRNORM' undeclared (first use this function)
> comm.c:1092: `POLLIN' undeclared (first use this function)
> comm.c:1092: `POLLHUP' undeclared (first use this function)
> comm.c:1092: `POLLERR' undeclared (first use this function)
> comm.c:1101: `POLLOUT' undeclared (first use this function)
> comm.c:1110: `POLLNVAL' undeclared (first use this function)
> comm.c:972: warning: unused variable `pfds'
> make[1]: *** [comm.o] Error 1
> make[1]: Leaving directory `/home/benarson/squid-1.1.22/src'
> make: *** [all] Error 1
>
> Has someone compiled squid 1.1.22 with USE_POLL_OPT under linux 2.0.34 ?
> Any help would be appreciated.
>
> Benarson.
> --
> +---------------------------------+
> + Benarson Rodriguez Behajaina +
> + Unix System Administrator +
> + email : benarson@swh.sk +
> + phone : +421 7 538 4921 +
> + fax : +421 7 538 5403 +
> +---------------------------------+
-- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E- W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ ------END GEEK CODE BLOCK------Received on Mon Jul 27 1998 - 20:36:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:41:16 MST