On Tue, Dec 20, 2005 at 08:56:32AM +0100, Leen Besselink wrote:
> On Mon, Dec 19, 2005 at 05:40:14PM -0700, Sean Gabriel Heacock wrote:
> > On Sat, 2005-12-17 at 17:03 +0100, Leen Besselink wrote:
> > > And yes, it doesn't compile.
> >
>
> Morning,
>
> > This sounds like what was changed in 2.0.53 - try this patch... or I
> > will, when I finally get a chance.
> >
> > http://home.xnull.de/work/gentoo/apache/dist/2.0/patches/10_all_peruser-0.1.6-brigadefix.patch
> >
> > I'm hoping to get this stuff done over Christmas, since my clients and
> > customers should be leaving me alone for a few days :)
>
> As I e-mailed before apr_recv is an undefined function in 2.2, actually in
> APR.
>
> I just had a look and found the srclib/apr/CHANGES-file, part of it is shown
> at the bottom of this e-mail. Why didn't I think of that sooner ? So I
> changed apr_recv to apr_socket_recv and now it compiles:
>
It would compile, install and serve a static file.
I did however had to do it a bit different then last time if I memory serves me
right.
This is what I did now I think:
cd srclib/apr
./configure --prefix=/fullpath
make clean # I did compile it before
make
make install
cd ../apr-util
./configure --prefix=/fullpath --with-apr=/fullpath/bin/apr-1-config
make clean # I did compile it before
make
make install
cd ../..
./configure --prefix=/fullpath --with-apr=/fullpath/bin/apr-1-config
--with-apr-util=/fullpath/bin/apu-1-config
make clean # I did compile it before
make
make install
> --- httpd-2.2.0~/server/mpm/experimental/peruser/peruser.c 2005-12-17
> 11:43:10.000000000 +0100
> +++ httpd-2.2.0/server/mpm/experimental/peruser/peruser.c 2005-12-20
> 08:49:08.000000000 +0100
> @@ -678,7 +678,7 @@
> if (die_now) return APR_SUCCESS;
>
> /* apr_thread_mutex_lock(pipe_of_death_mutex); */
> - ret = apr_recv(lr->sd, &pipe_read_char, &n);
> + ret = apr_socket_recv(lr->sd, &pipe_read_char, &n);
> if (APR_STATUS_IS_EAGAIN(ret))
> {
> /* It lost the lottery. It must continue to suffer
> @@ -886,10 +886,8 @@
> net = filter->ctx;
> net->in_ctx = apr_palloc(conn->pool, sizeof(*net->in_ctx));
> net->in_ctx->b = bb;
> -/*
> net->in_ctx->tmpbb = apr_brigade_create(net->in_ctx->b->p,
> net->in_ctx->b->bucket_alloc);
> -*/
> }
> }
> _DBG("leaving (DECLINED)", 0);
_____________________________________
New things are always on the horizon.
_______________________________________________
Peruser mailing list
[email protected]
http://www.telana.com/mailman/listinfo/peruser