on Tomcat v7.0.39 -- and for quite a few versions, iirc -- configuring
Tomcat-Native fails out of the box
cd tomcat7/build/bin
tar zxvf tomcat-native.tar.gz
cd tomcat-native-*-src/jni/native
./configure --with-apr=/usr/local/bin/apr-2-config
configure: loading site script
/usr/share/site/x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install...
/usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.1.27
checking for chosen layout... tcnative
checking for APR... yes
configure: error: You need APR version 1.2.1 or newer
installed.
even though the installed version of APR is new enough,
/usr/local/bin/apr-2-config --version
2.0.0
This patch effectively works around the problem
vi tc-native.patch
--- configure.ORIG 2013-02-08 02:31:31.000000000
-0800
+++ configure 2013-04-16 07:18:34.311819707 -0700
@@ -2521,7 +2521,7 @@
TEST_X="test -x"
fi
- acceptable_majors="1"
+ acceptable_majors="2"
apr_temp_acceptable_apr_config=""
for apr_temp_major in $acceptable_majors
@@ -2628,13 +2628,13 @@
fi
sapr_version="`echo $sapr_pversion|sed -e
's/\(a-z*\)$/.\1/'`"
tc_save_IFS=$IFS; IFS=.; set $sapr_version;
IFS=$tc_save_IFS
- if test "${1}" -lt "1"; then
- as_fn_error $? "You need APR version 1.2.1 or newer
installed." "$LINENO" 5
- else
- if test "${2}" -lt "2"; then
- as_fn_error $? "You need APR version 1.2.1 or
newer installed." "$LINENO" 5
- fi
- fi
+# if test "${1}" -lt "1"; then
+# as_fn_error $? "You need APR version 1.2.1 or
newer installed." "$LINENO" 5
+# else
+# if test "${2}" -lt "2"; then
+# as_fn_error $? "You need APR version 1.2.1 or
newer installed." "$LINENO" 5
+# fi
+# fi
APR_BUILD_DIR="`$apr_config --installbuilddir`"
A 'complete' patch should have the actual APR version requirement and
version check ...
-darx
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]