From owner-freebsd-isp Tue Oct 13 10:57:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA23298 for freebsd-isp-outgoing; Tue, 13 Oct 1998 10:57:29 -0700 (PDT) (envelope-from owner-freebsd-isp@FreeBSD.ORG) Received: from server.noc.demon.net (server.noc.demon.net [193.195.224.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA23293 for ; Tue, 13 Oct 1998 10:57:27 -0700 (PDT) (envelope-from fanf@demon.net) Received: by server.noc.demon.net; id SAA09798; Tue, 13 Oct 1998 18:57:12 +0100 (BST) Received: from fanf.noc.demon.net(195.11.55.83) by inside.noc.demon.net via smap (3.2) id xma009785; Tue, 13 Oct 98 18:57:00 +0100 Received: from fanf by fanf.noc.demon.net with local (Exim 1.73 #2) id 0zT8pf-0004kV-00; Tue, 13 Oct 1998 19:06:03 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Tony Finch To: freebsd-isp@FreeBSD.ORG Subject: Squid 2.0 and asynchronous IO X-Mailer: VM 6.34 under Emacs 19.34.1 Message-Id: Date: Tue, 13 Oct 1998 19:06:03 +0100 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to get Squid 2.0 (what was Squid 1.2.beta) to work with asynchronous IO on FreeBSD at the moment, but I'm having some problems with the its attempts to control the thread scheduling parameters, because the functions it uses don't appear to be implemented :-( In order to compile it correctly, I have fiddled the appropriate Makefile.in files to ensure that the linking is done with -pthread and that _THREADSAFE is defined. I have also added #include to aiops.c because it needs struct sched_param. When it comes to the link stage, I get aiops.o: In function `aio_init': /usr/local/src/squid-2.0/src/aiops.c(.text+0x28): undefined reference to `pthread_attr_setscope' /usr/local/src/squid-2.0/src/aiops.c(.text+0x49): undefined reference to `pthread_setschedparam' /usr/local/src/squid-2.0/src/aiops.c(.text+0x62): undefined reference to `pthread_attr_setschedparam' which all seem to be phantoms. The only places they are called are in aio_init, which is only called once. The code is pthread_attr_init(&globattr); pthread_attr_setscope(&globattr, PTHREAD_SCOPE_SYSTEM); globsched.sched_priority = 1; main_thread = pthread_self(); pthread_setschedparam(main_thread, SCHED_OTHER, &globsched); globsched.sched_priority = 2; pthread_attr_setschedparam(&globattr, &globsched); and then a whole lot of thread creation. I have tried commenting this stuff out which allows it to compile and link successfully, but when it is started it gets stuck and fails to start the dnsserver processes. Has anyone here managed to get it to work? If not, is there anyone here who knows how to make it work? Any help gratefully received. Tony. -- i7yci7yci**f.a.n.finch fanf@demon.net dot@dotat.at To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message