--- Begin Message ---
Package: apache2
Severity: important
Tags: patch
Justification: fails to build from source
Hi,
apache2 fails to build from source:
#error APR has detected sendfile on your system, but nobody has written a
#error version of it for APR yet. To get past this, either write apr_sendfile
#error or change APR_HAS_SENDFILE in apr.h to 0.
The simple following patch corrects this:
--- build-tree.old/apache2/srclib/apr/network_io/unix/sendrecv.c 2005-03-28 22:21:19.000000000 +0200
+++ build-tree/apache2/srclib/apr/network_io/unix/sendrecv.c 2005-03-28 22:22:11.000000000 +0200
@@ -239,7 +239,7 @@
/* Define a structure to pass in when we have a NULL header value */
static apr_hdtr_t no_hdtr;
-#if defined(__linux__) && defined(HAVE_WRITEV)
+#if (defined(__linux__) || defined(__GNU__)) && defined(HAVE_WRITEV)
apr_status_t apr_socket_sendfile(apr_socket_t *sock, apr_file_t *file,
apr_hdtr_t *hdtr, apr_off_t *offset,
Regards,
Samuel
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)
Shell: /bin/sh linked to /bin/bash
Kernel: GNU 0.3
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
--
Samuel Thibault <samuel.thibault@ens-lyon.org>
--- End Message ---
--- Begin Message ---
Source: apr
Source-Version: 1.2.7-5
We believe that the bug you reported is fixed in the latest version of
apr, which is due to be installed in the Debian FTP archive:
apr_1.2.7-5.diff.gz
to pool/main/a/apr/apr_1.2.7-5.diff.gz
apr_1.2.7-5.dsc
to pool/main/a/apr/apr_1.2.7-5.dsc
libapr1-dbg_1.2.7-5_amd64.deb
to pool/main/a/apr/libapr1-dbg_1.2.7-5_amd64.deb
libapr1-dev_1.2.7-5_amd64.deb
to pool/main/a/apr/libapr1-dev_1.2.7-5_amd64.deb
libapr1_1.2.7-5_amd64.deb
to pool/main/a/apr/libapr1_1.2.7-5_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 349416@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Tollef Fog Heen <tfheen@debian.org> (supplier of updated apr package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 27 Sep 2006 19:32:10 +0200
Source: apr
Binary: libapr1 libapr1-dbg libapr1-dev
Architecture: source amd64
Version: 1.2.7-5
Distribution: unstable
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Tollef Fog Heen <tfheen@debian.org>
Description:
libapr1 - The Apache Portable Runtime Library
libapr1-dbg - The Apache Portable Runtime Library - Development Headers
libapr1-dev - The Apache Portable Runtime Library - Development Headers
Closes: 349416
Changes:
apr (1.2.7-5) unstable; urgency=low
.
* Add doxygen to build-deps.
* Add sendfile hurd patch. Closes: #349416
Files:
2612f3f7b5f22112f5557476875b5b94 856 libs optional apr_1.2.7-5.dsc
de521ae58d76f6b021ee011c6b3e1acc 23763 libs optional apr_1.2.7-5.diff.gz
608e8058a2bc7b792cdaebf9577617c5 111852 libs optional libapr1_1.2.7-5_amd64.deb
4a62686778ef7d806f5c77c687599bf2 349626 libdevel optional libapr1-dev_1.2.7-5_amd64.deb
d4f95f2212ceac73693d88312a8a2766 187386 libdevel optional libapr1-dbg_1.2.7-5_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFFGriJQSseMYF6mWoRAq0cAKCjh/j+HzbbvR5h2W/hMBHG2mYUQwCeL+od
Lxde0GcZbeP+ZvR/dVab3xg=
=qIkJ
-----END PGP SIGNATURE-----
--- End Message ---