sendfile hosing apache?
Peter Avalos
pavalos at theshell.com
Thu Apr 14 02:02:56 PDT 2005
On Thu, Apr 07, 2005 at 12:05:10AM -0700, Peter Avalos wrote:
> On Wed, Apr 06, 2005 at 07:31:32AM +0200, Jeroen Ruigrok/asmodai wrote:
> > -On [20050406 01:42], Matthew Dillon (dillon at xxxxxxxxxxxxxxxxxxxx) wrote:
> > > It looks like a bug in apache... it's doing 0-byte writev()'s. Maybe
> > > the problem is that it is confused about whether the sendfile is
> > > bugged or not (early versions of freebsd's sendfile() had serious
> > > byte counting bugs).
> >
> > Apache uses apr nowadays, there's a whole slew of detection code in there.
> >
> > If Peter is compiling the port with gcc 2.95.x it might be picking up the
> > old style supporting code.
> > Recent apr supports DragonFly natively.
> >
>
> I am using gcc 2.95.x.
>
> Peter
So, I tried making the port with CCVER?=gcc34, and I get this error:
Making all in network_io/unix
/bin/sh /usr/ports/www/apache2/work/httpd-2.0.53/srclib/apr/libtool --silent --mode=compile cc -O -pipe -mtune=pentiumpro -DHAVE_CONFIG_H -D_REENTRANT -D_THREAD_SAFE -I../../include -I../../include/arch/unix -I../../include/arch/unix -c sendrecv.c && touch sendrecv.lo
sendrecv.c:965:2: #error APR has detected sendfile on your system, but nobody has written a
sendrecv.c:966:2: #error version of it for APR yet. To get past this, either write apr_sendfile
sendrecv.c:967:2: #error or change APR_HAS_SENDFILE in apr.h to 0.
*** Error code 1
Stop in /usr/ports/www/apache2/work/httpd-2.0.53/srclib/apr/network_io/unix.
*** Error code 1
So, I'm curious on how people are building this port, and not getting the sendfile
problem I reported earlier...
Thanks,
Peter
Attachment:
pgp00007.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00007.pgp
Type: application/octet-stream
Size: 187 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20050414/15637e5e/attachment-0022.obj>
More information about the Bugs
mailing list