Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 79866 invoked from network); 15 Oct 2010 20:41:27 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Oct 2010 20:41:27 -0000 Received: (qmail 18344 invoked by uid 500); 15 Oct 2010 20:41:26 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 18297 invoked by uid 500); 15 Oct 2010 20:41:26 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 18288 invoked by uid 99); 15 Oct 2010 20:41:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 20:41:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of minfrin@sharp.fm designates 72.32.122.20 as permitted sender) Received: from [72.32.122.20] (HELO chandler.sharp.fm) (72.32.122.20) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Oct 2010 20:41:18 +0000 Received: from chandler.sharp.fm (localhost [127.0.0.1]) by chandler.sharp.fm (Postfix) with ESMTP id BE1052C8F87 for ; Fri, 15 Oct 2010 15:40:57 -0500 (CDT) Received: from [10.0.0.251] (87-194-125-18.bethere.co.uk [87.194.125.18]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: minfrin@sharp.fm) by chandler.sharp.fm (Postfix) with ESMTP id 1AAE72C8F86 for ; Fri, 15 Oct 2010 15:40:55 -0500 (CDT) Message-Id: <9D21EB4D-119D-4E83-A731-B9F206471FD4@sharp.fm> From: Graham Leggett To: dev@httpd.apache.org In-Reply-To: Content-Type: multipart/alternative; boundary=Apple-Mail-119--369593401 Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Apache alpha and mod_jk Date: Fri, 15 Oct 2010 22:40:51 +0200 References: X-Mailer: Apple Mail (2.936) X-Virus-Scanned: ClamAV using ClamSMTP --Apple-Mail-119--369593401 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 15 Oct 2010, at 4:32 PM, Damon Green wrote: > We have a scenario presently that is causing us some difficulties. > Env is SPARC Solaris10, gcc. > We wish to use the current alpha build of Apache because it includes > new features in mod_cache that we want to use, specifically the > option to persist disk cache on 500 errors from Tomcat. They are > checked into trunk. http://svn.apache.org/viewvc/httpd/httpd/trunk/ > We also wish to use mod_jk to connect to Tomcat. > Our issue is that we cannot get any version of mod_jk to work with > this Apache. > We have tried the pre-compiled binaries of mod_jk, and tried to > compile our own mod_jk. Both scenarios are failing. > When we use the pre-compiled binary mod_jk.so provided by the Tomcat > connectors. > http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.30/sparc/ > mod_jk-1.2.30-httpd-2.2.X.so > bash-3.00# ./apachectl configtest > httpd: Syntax error on line 139 of /apps/apache-2.3.8/conf/ > httpd.conf: Cannot load /apps/apache-2.3.8/modules/mod_jk.so into > server: ld.so.1: httpd: fatal: relocation error: file /apps/ > apache-2.3.8/modules/mod_jk.so: symbol ap_log_error: referenced > symbol not found > bash-3.00# Even if the symbol-not-found error didn't sink you, checks and balances in the module loading code will stop you loading a v2.2 module into a v2.3 server. Because APIs have changed between v2.2 and v2.3, if this wasn't stopped, the server would crash as the old API was called from new API code. What you need to do is either find a version of mod_jk that compiles against v2.3/2.4 of httpd (assuming one exists), or you need to apply a backport of the mod_cache modules back to httpd v2.2. To make this work from v2.2, the backported patches needed to make some minor changes, like reinstate CORE_PRIVATE and reverse the module definition, but otherwise can be dropped in as is: http://people.apache.org/~minfrin/httpd-mod_cache-1022960.patch http://people.apache.org/~minfrin/httpd-htcacheclean-1022280.patch Regards, Graham -- --Apple-Mail-119--369593401 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On 15 Oct 2010, at = 4:32 PM, Damon Green wrote:
We have a scenario presently that is =
causing us some difficulties.
Env is SPARC Solaris10, =
gcc.
We wish to use the current alpha build of Apache because =
it includes new features in mod_cache that we want to use, specifically =
the option to persist disk cache on 500 errors from Tomcat. They are =
checked into trunk. http://svn.apache.org/viewvc/httpd/httpd/trunk/ 
We also wish to use mod_jk to connect to Tomcat.
Our =
issue is that we cannot get any version of mod_jk to work with this =
Apache.
We have tried the pre-compiled binaries of mod_jk, and =
tried to compile our own mod_jk. Both scenarios are failing. 
=
When we use the pre-compiled binary mod_jk.so provided by the =
Tomcat connectors.
http://archive.apache.org/dist/tomcat/tomcat-connectors/=
jk/binaries/solaris/jk-1.2.30/sparc/
mod_jk-1.2.30-httpd-2.2.X.so   =
bash-3.00# ./apachectl configtest
httpd: Syntax error on line 139 of /apps/apache-2.3.8/conf/httpd.conf: =
Cannot load /apps/apache-2.3.8/modules/mod_jk.so into server: ld.so.1: =
httpd: fatal: relocation error: file =
/apps/apache-2.3.8/modules/mod_jk.so: symbol ap_log_error: referenced =
symbol not found
bash-3.00#=20
Even if the symbol-not-found error = didn't sink you, checks and balances in the module loading code will = stop you loading a v2.2 module into a v2.3 server. Because APIs have = changed between v2.2 and v2.3, if this wasn't stopped, the server would = crash as the old API was called from new API = code.

What you need to do is either find a = version of mod_jk that compiles against v2.3/2.4 of httpd (assuming one = exists), or you need to apply a backport of the mod_cache modules back = to httpd v2.2.

To make this work from v2.2, the = backported patches needed to make some minor changes, like reinstate = CORE_PRIVATE and reverse the module definition, but otherwise can be = dropped in as is:

http://people.apache.org/~minfrin/httpd-htcacheclean-1022280.patch

Regards,
Graham
--
<= br>
= --Apple-Mail-119--369593401--