Re: [squid-users] epoll on squid 2.6.STABLE4-20061009 under linux

From: Marco Berizzi <pupilla@dont-contact.us>
Date: Thu, 19 Oct 2006 10:57:37 +0200

Henrik Nordstrom wrote:

>option then configure will complain and abort with some instructions on

Really? I am even able to build squid with epoll on slackware 10.1,
but then it fails to start:

comm_select_init: epoll_create(): (38) Function not implemented

See also:
http://www.squid-cache.org/mail-archive/squid-users/200608/0282.html
This is my squid build script:

CFLAGS="-O3" ./configure \
                --prefix=/usr \
                --sysconfdir=/etc/squid \
                --localstatedir=/var/spool/squid \
                --libexecdir=/usr/libexec/squid \
                --datadir=/usr/share/squid \
                --enable-removal-policies="heap" \
                --enable-delay-pools \
                --enable-useragent-log \
                --disable-wccp \
                --disable-wccpv2 \
                --enable-ssl \
                --enable-default-err-language=Italian \
                --enable-err-languages="English Italian" \
                --enable-epoll \
                --enable-http-violations \
                --disable-ident-lookups \
                --enable-auth="basic ntlm" \
                --enable-basic-auth-helpers="MSNT" \
                --enable-ntlm-auth-helpers="SMB" \
                i486-slackware-linux

CFLAGS="-O3" make all

and this is the output:

configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i486-slackware-linux-gcc... i486-slackware-linux-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i486-slackware-linux-gcc accepts -g... yes
checking for i486-slackware-linux-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i486-slackware-linux-gcc... gcc3
checking whether i486-slackware-linux-gcc and cc understand -c and -o
together... yes
checking build system type... i486-slackware-linux-gnu
checking host system type... i486-slackware-linux-gnu
checking for pkg-config... /usr/bin/pkg-config
Store modules built: ufs
Removal policies built: heap
Delay pools enabled
User-Agent logging enabled
Web Cache Coordination V1 Protocol disabled
Web Cache Coordination V2 Protocol disabled
SSL gatewaying using OpenSSL enabled
Using OpenSSL MD5 implementation
Forcing epoll() to be enabled
Disabling Ident Lookups
Auth scheme modules built: basic ntlm
Basic auth helpers built: MSNT
NTLM auth helpers built: SMB
unlinkd enabled
checking for egrep... grep -E
checking how to run the C preprocessor... i486-slackware-linux-gcc -E
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for i486-slackware-linux-ranlib... no
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for sh... /bin/sh
checking for false... /usr/bin/false
checking for true... /usr/bin/true
checking for rm... /usr/bin/rm
checking for mv... /usr/bin/mv
checking for mkdir... /usr/bin/mkdir
checking for ln... /usr/bin/ln
checking for perl... /usr/bin/perl
checking for ar... /usr/bin/ar
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for stddef.h... yes
checking for limits.h... yes
checking for sys/param.h... yes
checking for sys/socket.h... yes
checking for netinet/in.h... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for arpa/inet.h... yes
checking for arpa/nameser.h... yes
checking for assert.h... yes
checking for bstring.h... no
checking for crypt.h... yes
checking for ctype.h... yes
checking for errno.h... yes
checking for execinfo.h... yes
checking for fcntl.h... yes
checking for fnmatch.h... yes
checking for getopt.h... yes
checking for gnumalloc.h... no
checking for grp.h... yes
checking for libc.h... no
checking for linux/netfilter_ipv4.h... yes
checking for linux/netfilter_ipv4/ip_tproxy.h... no
checking for malloc.h... yes
checking for math.h... yes
checking for memory.h... yes
checking for mount.h... no
checking for net/if.h... yes
checking for net/pfvar.h... no
checking for netdb.h... yes
checking for netinet/if_ether.h... yes
checking for netinet/tcp.h... yes
checking for openssl/err.h... yes
checking for openssl/md5.h... yes
checking for openssl/ssl.h... yes
checking for openssl/engine.h... yes
checking for paths.h... yes
checking for poll.h... yes
checking for pwd.h... yes
checking for regex.h... yes
checking for resolv.h... yes
checking for sched.h... yes
checking for signal.h... yes
checking for stdarg.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for sys/bitypes.h... yes
checking for sys/file.h... yes
checking for sys/ioctl.h... yes
checking for sys/mount.h... yes
checking for sys/msg.h... yes
checking for sys/prctl.h... yes
checking for sys/resource.h... yes
checking for sys/poll.h... yes
checking for sys/select.h... yes
checking for sys/stat.h... yes
checking for sys/statvfs.h... yes
checking for syscall.h... yes
checking for sys/syscall.h... yes
checking for sys/time.h... yes
checking for sys/un.h... yes
checking for sys/vfs.h... yes
checking for sys/wait.h... yes
checking for sys/event.h... no
checking for syslog.h... yes
checking for time.h... yes
checking for unistd.h... yes
checking for utime.h... yes
checking for varargs.h... no
checking for byteswap.h... yes
checking for glib.h... no
checking for stdint.h... yes
checking for inttypes.h... yes
checking for grp.h... (cached) yes
checking for nss_common.h... no
checking for nss.h... yes
checking for db.h... yes
checking for db_185.h... no
checking for aio.h... yes
checking for ip_compat.h... no
checking for ip_fil_compat.h... no
checking for ip_fil.h... no
checking for ip_nat.h... no
checking for ipl.h... no
checking for netinet/ip_compat.h... no
checking for netinet/ip_fil_compat.h... no
checking for netinet/ip_fil.h... no
checking for netinet/ip_nat.h... no
checking for netinet/ipl.h... no
checking for an ANSI C-conforming const... yes
checking whether byte ordering is bigendian... no
checking for inline... inline
checking if ANSI prototypes work... yes
checking for tm->tm_gmtoff... yes
checking for struct mallinfo... yes
checking for extended mallinfo... no
checking for struct rusage... yes
checking for ip->ip_hl... yes
checking for void *... yes
checking size of void *... 4
checking for char... yes
checking size of char... 1
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking for long long... yes
checking size of long long... 8
checking size of int8_t... 1
checking size of uint8_t... 1
checking size of u_int8_t... 1
checking size of int16_t... 2
checking size of uint16_t... 2
checking size of u_int16_t... 2
checking size of int32_t... 4
checking size of uint32_t... 4
checking size of u_int32_t... 4
checking size of int64_t... 8
checking size of uint64_t... 8
checking size of u_int64_t... 8
checking size of __int64... 0
checking for int8_t... yes
checking for u_int8_t... yes
checking for uint8_t... yes
checking for int16_t... yes
checking for u_int16_t... yes
checking for uint16_t... yes
checking for int32_t... yes
checking for u_int32_t... yes
checking for uint32_t... yes
checking for int64_t... yes
checking for u_int64_t... yes
checking for uint64_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for off_t... yes
checking for mode_t... yes
checking for fd_mask... yes
checking size of off_t... 4
checking size of size_t... 4
checking for working alloca.h... yes
checking for alloca... yes
checking for socklen_t... yes
checking for mtyp_t... no
checking for main in -lnsl... yes
checking for main in -lsocket... no
checking for winsock... no
checking for unix domain sockets... yes
checking for main in -lgnumalloc... no
checking for main in -lmalloc... no
checking for main in -lbsd... no
checking for main in -lregex... no
checking for main in -lm... yes
checking for crypt in -lcrypt... yes
checking for epoll_ctl in -lepoll... no
checking for main in -llber... no
checking if dbopen needs -ldb... no
checking for bcopy... yes
checking for backtrace_symbols_fd... yes
checking for crypt... no
checking for fchmod... yes
checking for getdtablesize... yes
checking for getpagesize... yes
checking for getpass... yes
checking for getrusage... yes
checking for getspnam... yes
checking for kqueue... no
checking for lrand48... yes
checking for mallinfo... yes
checking for mallocblksize... no
checking for mallopt... yes
checking for memcpy... yes
checking for memmove... yes
checking for memset... yes
checking for mkstemp... yes
checking for mktime... yes
checking for mstats... no
checking for poll... yes
checking for prctl... yes
checking for pthread_attr_setscope... yes
checking for pthread_setschedparam... yes
checking for pthread_attr_setschedparam... yes
checking for pthread_sigmask... no
checking for putenv... yes
checking for random... yes
checking for regcomp... yes
checking for regexec... yes
checking for regfree... yes
checking for res_init... no
checking for rint... yes
checking for sbrk... yes
checking for select... yes
checking for seteuid... yes
checking for setgroups... yes
checking for setpgrp... yes
checking for setrlimit... yes
checking for getrlimit... yes
checking for setsid... yes
checking for sigaction... yes
checking for snprintf... yes
checking for socketpair... yes
checking for srand48... yes
checking for srandom... yes
checking for statfs... yes
checking for strsep... yes
checking for strtoll... yes
checking for sysconf... yes
checking for syslog... yes
checking for timegm... yes
checking for vsnprintf... yes
checking for bswap_16... no
checking for bswap_32... no
checking for epoll_ctl... no
checking for epoll_create in -lepoll... no
Using epoll for the IO loop.
checking if setresuid is implemented... yes
checking if va_copy is implemented... yes
checking if __va_copy is implemented... yes
checking if GNUregex needs to be compiled... no
checking for drand48... yes
checking for tempnam... yes
checking for strerror... yes
checking for initgroups... yes
checking Default FD_SETSIZE value... 1024
checking Maximum number of filedescriptors we can open... 1024
checking Default UDP send buffer size... 105472
checking Default UDP receive buffer size... 105472
checking Default TCP send buffer size... 16384
checking Default TCP receive buffer size... 87380
Limiting receive buffer size to 64K
checking if sys_errlist is already defined... no
checking if inet_ntoa() actually works... "yes"
checking for working statvfs() interface... yes
checking for _res.nsaddr_list... yes

my env:

Gnu C 3.3.5
Gnu make 3.80
binutils 2.15.92.0.2
util-linux 2.12p
mount 2.12p
module-init-tools 3.2.2
e2fsprogs 1.35
xfsprogs 2.6.13
Linux C Library 2.3.4
Dynamic linker (ldd) 2.3.4
Linux C++ Library 5.0.7
Procps 3.2.3
Net-tools 1.60
Kbd 1.12
Sh-utils 5.2.1

squid-2.6.STABLE4-20061019

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Received on Thu Oct 19 2006 - 02:57:51 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Nov 01 2006 - 12:00:04 MST