Bug#349418: libapr0-dev: /usr/include/apr-0/apr.h #errors
Package: libapr0-dev
Version: 2.0.55-4.hurdfr.1
Severity: normal
Tags: patch
Hi,
/usr/include/apr-0/apr.h #errors when the system has no path length
limitation:
#error no decision has been made on APR_PATH_MAX for your platform
No limitation doesn't mean that the package can't be built, so the
following patch turns this to a warning only, and defines an arbitrary
value for APR_PATH_MAX, hence permitting compiling with libapr.
Regards
Samuel
--- build-tree/httpd-2.0.55-orig/srclib/apr/include/apr.h.in 2005-06-14 16:24:58.000000000 +0200
+++ build-tree/httpd-2.0.55/srclib/apr/include/apr.h.in 2006-01-21 18:01:10.000000000 +0100
@@ -397,7 +397,8 @@ typedef @socklen_t_value@ apr_soc
#elif defined(_POSIX_PATH_MAX)
#define APR_PATH_MAX _POSIX_PATH_MAX
#else
-#error no decision has been made on APR_PATH_MAX for your platform
+#warning no decision has been made on APR_PATH_MAX for your platform
+#define APR_PATH_MAX 4096
#endif
/** @} */
-- 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)
Versions of packages libapr0-dev depends on:
ii libapr0 2.0.55-4.hurdfr.1 the Apache Portable Runtime
ii libdb4.3-dev 4.3.28-3 Berkeley v4.3 Database Libraries [
ii libexpat1-dev 1.95.8-3 XML parsing C library - developmen
ii libldap2-dev 2.1.30-12 OpenLDAP development libraries
ii libpcre3-dev 6.4-1.1 Perl 5 Compatible Regular Expressi
ii libtool 1.5.22-2 Generic library support script
libapr0-dev recommends no packages.
-- no debconf information
--
Samuel Thibault <samuel.thibault@ens-lyon.org>
Reply to: