Re: [squid-users] squid-3 and epoll

From: Muthukumar <[email protected]>
Date: Wed, 21 Jan 2004 17:03:32 +0530

> when i trying to install epoll-lib-0.11.tar.gz
>
> i get following error :
>
> Makefile:76: .depend: No such file or directory
> mkdep -f .depend -g -I- -I./include
>>>>>>>>>>

To compile the squid-3.0-pre3 on kernel-2.6.1,no need for the epoll-lib.Follow the steps,it may work ,

1. edit configure file as
    EPOLL_LIBS="-lepoll" to EPOLL_LIBS=

2.edit the src/comm_epoll.cc as
after #include <sys/epoll.h> line 62,insert as ,

                         #define SYS_epoll_create 1230
                         #define SYS_epoll_ctl 1231
                         #define SYS_epoll_wait 1232

                        #define epoll_create(arg1) syscall(SYS_epoll_create, arg1)
                        #define epoll_ctl(arg1, arg2, arg3, arg4) syscall(SYS_epoll_ctl, arg1,arg2, arg3, arg4)
                        #define epoll_wait(arg1, arg2, arg3, arg4) syscall(SYS_epoll_wait,arg1, arg2, arg3, arg4)

<check the port 1230,1231,1232>
My compilation options:
configure options: '--prefix=/usr/local/squidgdb' '--enable-epoll' '--enable-debug' '--disable-poll' '--disable-select' '--disable-kqueue' '--enable-storeio=null,ufs,aufs' '--enable-async-io=16' '--with-file-descriptors=16384' '--with-pthreads'

Regards,
Muthukumar
Received on Wed Jan 21 2004 - 04:33:45 MST

This archive was generated by hypermail pre-2.1.9 : Sun Feb 01 2004 - 12:00:07 MST