From paul@pathiakis.com  Sat Nov 29 14:35:17 2003
Return-Path: <paul@pathiakis.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4B85116A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Nov 2003 14:35:17 -0800 (PST)
Received: from mxsf07.cluster1.charter.net (mxsf07.cluster1.charter.net [209.225.28.207])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 542B843FBD
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Nov 2003 14:35:15 -0800 (PST)
	(envelope-from paul@pathiakis.com)
Received: from pathiaki.com (cpe-66-189-28-19.ma.charter.com [66.189.28.19])
	by mxsf07.cluster1.charter.net (8.12.10/8.12.8) with ESMTP id hATMXf8B081282
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Nov 2003 17:33:41 -0500 (EST)
	(envelope-from paul@pathiakis.com)
Message-Id: <200311291734.35880.paul@pathiakis.com>
Date: Sat, 29 Nov 2003 17:34:35 -0500
From: Paul Pathiakis <paul@pathiakis.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: RT 3.0.7 on FreeBSD 5.1 with Apache2 (2.0.48) and mod_perl2

>Number:         59805
>Category:       ports
>Synopsis:       www/rt3: problem with RT 3.0.7 on FreeBSD 5.1 with Apache2 (2.0.48) and mod_perl2
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 29 14:40:11 PST 2003
>Closed-Date:    Thu Feb 19 00:47:37 PST 2004
>Last-Modified:  Thu Feb 19 00:47:37 PST 2004
>Originator:     Paul J. Pathiakis
>Release:        FreeBSD 5.1-RELEASE-p10 i386
>Organization:
self
>Environment:
System: FreeBSD pc8.pathiakis.com 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: 
Mon Nov 24 10:10:59 EST 2003 root@pc8.pathiakis.com:/usr/obj/usr/src/sys/
GENERIC i386

>Description:
       3.0.6 used to work 
fine, however, it used to also have ap2mp2-fix.pl in the web config.  Now, 
when I attempt to go to the page I get this in my httpd-error.log:

Can't call method "handle_request" on an undefined value at /usr/local/rt3/
bin/webmux.pl line 134 (/usr/local/rt3/bin/webmux.pl:136)

The offending code frag from line 132-137:

    my %session;
    my $status;
    eval { $status = $ah->handle_request($r) };
    if ($@) {
        $RT::Logger->crit($@);
    }

No, I don't have PerlFreshStart anywhere in my httpd.conf file.  Any ideas?

>How-To-Repeat:
        baseline 5.1 P10 OS with X-User and kernel sources.  Cvsup 
ports-supfile and then a portupgrade -a -r .  Install apache2, postgresql 
7.3.4, mod_perl2, and rt 3.0.7.  Configure as docs.
>Fix:

        unknown.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Tue Jan 6 09:37:25 PST 2004 
State-Changed-Why:  
Note that I've ensured the maintainer was Cc:ed, and asked for 
feedback. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59805 

From: Clive Lin <clive@tongi.org>
To: Mark Linimon <linimon@FreeBSD.org>
Cc: paul@pathiakis.com, autrijus@autrijus.org,
	FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/59805: www/rt3: problem with RT 3.0.7 on FreeBSD 5.1 with Apache2 (2.0.48) and mod_perl2
Date: Thu, 8 Jan 2004 13:48:24 +0800

 On Tue, Jan 06, 2004 at 09:38:08AM -0800, Mark Linimon wrote:
 > Synopsis: www/rt3: problem with RT 3.0.7 on FreeBSD 5.1 with Apache2 (2.0.48) and mod_perl2
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: linimon
 > State-Changed-When: Tue Jan 6 09:37:25 PST 2004
 > State-Changed-Why: 
 > Note that I've ensured the maintainer was Cc:ed, and asked for
 > feedback.
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=59805
 
 Last time I got exactly the same problem, and the maintainer gave me a
 workaround:
 
 ---- quoted from irc log ----
 <autrijus> it seems like you did not load Apache2 and Apache::compat
            in time.
 * autrijus thinks some more.
 <autrijus> right. you definitely had not loaded Apache::compat;
 <evi1c> I use /usr/local/rt3/share/doc/README as my RT httpd.conf
         template ..
 <autrijus> did other mod_perl-using virtual hosts come before RT?
 <autrijus> what happens if you add two lines on top of webmux.pl:
 <autrijus> use Apache2;
 <autrijus> use Apache::compat;
 <evi1c> it's working
 
 I'm not sure if this only happens on FreeBSD, but this workaround is
 required for FreeBSD 5+apache2+perl 5.8+mod_perl2+RT3.
 
 Hope this helps :)
 Clive
 
 -- 
 Clive Tong-I Lin <clive@tongi.org> | http://tongi.org | PGP KeyID: A008C03E
State-Changed-From-To: feedback->closed 
State-Changed-By: demon 
State-Changed-When: Thu Feb 19 00:46:47 PST 2004 
State-Changed-Why:  
Maintainer of rt3 port reports this problem is resolved now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59805 
>Unformatted:
