Re: Compile squid1.2beta15 with async-io

From: Geoff Buckingham <geoffb@dont-contact.us>
Date: Fri, 6 Mar 1998 13:05:22 +0000 (GMT)

 It is about a week since a looked at this but when I did I found
that squid expected

pthread_attr_setscope pthread_attr_setschedparam and pthread_setschedparam

 These are not currently implimented in FreeBSD-current's libc_r as
it is not possible to set a scheduling policy.[1]

 In addition the code also currently depends on a number of things defined
in or included from Solaris pthread.h which may not be in the same place
or defined at all elsewhere:

Particularly:

The sched_priority member of the structure sched_param.

struct sched_param{
        int sched_priority;
        }

May suffice, I defined the whole structue. See /usr/include/sched.h on a
Solaris box.

Also

#define SCHED_OTHER 0

is also required, allthough there is an obvios workaround to this :-).

The above allowed me to compile under IRIX 6.2 although I have yet to test
the binary.

Removing the scheduling stuff (Yes I Know, Duh!) Allowed me to compile under
FreeBSD current, however I got a segmentation fault after about 30 seconds
of moderate load. Hardly unexpected really.

[1] THis is what I am tols see the following URL for details:

http://www.freebsd.org/cgi/getmsg.cgi?fetch=661886+664073+/usr/local/www/db/text/1998/freebsd-current/19980222.freebsd-current

 
>
> I m facing problems on DEC OSF/3.2C and Linux in compiling with
> ./configure --enable-async-io
> in both operating system i m getting the same errors aiops.c and the
> reason was there may be no support of threads.
> Is there any clue!!!
>
> regards
> arshad
>
> On Sat, 21 Feb 1998, Mario Sergio Fujikawa Ferreira wrote:
>
> > Dear Ed,
> >
> > > What do I need to compile squid1.2beta15 --enable-async-io
> > > under FreeBSD Current.
> > >
> > > I haven't been able to compile it. It dies en aiops.c.
> >
> > The source file aiops.c requires pthreads functions.
> > I am not sure about current, yet under stable and release:
> > You need to compile FreeBSD libc_r that supports the MIT pthreads
> > standard. Make sure you have the libraries sources installed.
> > cd /usr/src/lib/libc_r && make depend && make && make install
> >
> > There you have it. Try configuring again.
> >
> > Regards,
> > Mario Ferreira
> >
> > --
> > Mario S. F. Ferreira System Administrator/Consulting @ GNS
> > Email(no _s): _L_ioux(at)g_ns.com.br | PGP key & contact info: finger Email
> > Global Network Solutions Tec | http://www.GNS.com.br/ | # +55 061 3272626
> > FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info
> > Support the Anti-Spam amendment. See http://www.CAuce.ORG/ for info
> > Address(es) and URL(s) (c) 1998 Mario Ferreira - All Rights Reserved
> >
>
Received on Fri Mar 06 1998 - 05:11:40 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:10 MST