apache2 build with gcc 3.4 fails

YONETANI Tomokazu qhwt+dfly at les.ath.cx
Fri Dec 10 00:05:59 PST 2004


On Thu, Nov 11, 2004 at 11:05:39AM +0100, Jeroen Ruigrok/asmodai wrote:
> -On [20041111 07:22], Jeroen Ruigrok/asmodai (asmodai at xxxxxx) wrote:
> >It is even more funny since I have already resolved this issue with the
> >Apache guys.  At least, I hope they finally adjusted the code by now.  Need
> >to check.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29858
> 
> Looks like they didn't.

This is fixed on trunk at version 106850(hey, they've migrated to subversion!)
However, it seems that the fix hasn't been backported to branches yet, and
the following small change is still needed to compile it with gcc34.

--- sendrecv.c.orig	2004-12-10 16:52:29.000000000 +0900
+++ sendrecv.c	2004-12-10 16:52:46.000000000 +0900
@@ -387,7 +387,7 @@
     return rv < 0 ? errno : APR_SUCCESS;
 }
 
-#elif defined(__FreeBSD__)
+#elif defined(__DragonFly__) || defined(__FreeBSD__)
 
 /* Release 3.1 or greater */
 apr_status_t apr_socket_sendfile(apr_socket_t * sock, apr_file_t * file,





More information about the Bugs mailing list