Re: sendfile hosing apache?

看板DFBSD_bugs作者時間21年前 (2005/04/14 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串10/11 (看更多)
--pd495SECmvzXpBRb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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@apollo.backplane.com) wrot= e: > > > It looks like a bug in apache... it's doing 0-byte writev()'s. Ma= ybe > > > 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). > >=20 > > Apache uses apr nowadays, there's a whole slew of detection code in the= re. > >=20 > > If Peter is compiling the port with gcc 2.95.x it might be picking up t= he > > old style supporting code. > > Recent apr supports DragonFly natively. > >=20 >=20 > I am using gcc 2.95.x. >=20 > Peter So, I tried making the port with CCVER?=3Dgcc34, 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 --silen= t --mode=3Dcompile cc -O -pipe -mtune=3Dpentiumpro -DHAVE_CONFIG_H -D_REE= NTRANT -D_THREAD_SAFE -I../../include -I../../include/arch/unix -I../../i= nclude/arch/unix -c sendrecv.c && touch sendrecv.lo sendrecv.c:965:2: #error APR has detected sendfile on your system, but nobo= dy has written a sendrecv.c:966:2: #error version of it for APR yet. To get past this, eithe= r 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 s= endfile problem I reported earlier... Thanks, Peter --pd495SECmvzXpBRb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCXjF8Kjaxugguz8URAreSAJ9RkaRAKRHE5zHjBaMFzpchyi1bNwCdElNP dliw4T+Ygj4BHmyvIcbyu04= =BgaV -----END PGP SIGNATURE----- --pd495SECmvzXpBRb--
文章代碼(AID): #12NZYS00 (DFBSD_bugs)
討論串 (同標題文章)
文章代碼(AID): #12NZYS00 (DFBSD_bugs)