Hi All,

I've hit a problem that I can't seem to rectify.  I compile 
mod_perl with EVERYTHING=1, but in one of my modules, I get the error:

[Wed Jan 19 20:30:05 2000] null: Rebuild with -DPERL_STACKED_HANDLERS 
to $r->push_handlers at /usr/local/apache/lib/perl/Apache/BOSCIndex.pm 
line 37.

This is that module that I wrote:

package Apache::BOSCIndex;

# use
use strict;
use Audrey;
use Audrey::Display;
use Audrey::News;
use CGI qw(:standard);
use Apache::Constants qw(OK DECLINED);

my $q = CGI->new;
my $Audrey = Audrey->new;
my $Display = Audrey::Display->new;
my $News = Audrey::News->new;

sub handler {
        my $r = shift;

        # PerlTransHandler
        return DECLINED unless $r->uri eq "/";
        $r->handler( "perl-script" );
        $r->push_handlers( PerlHandler => sub {
                my $user_id = $Audrey->get_user_id( $r );
                $Display->update_stats( $user_id, "Front_Page" );

                # print the header
                $r->content_type('text/html');
                $r->send_http_header;

                # load the profile
                $Display->load_user( $user_id );

                # now print the html
                $Display->pre_main( $r, $user_id, "BeOSCentral - always" );
                $News->print_news_items( $r );
                $Display->post_main( $r, $user_id );
        });

        return OK;
}

# return true
1;

I use a PerlTransHandler because that module is address to the root of 
my site, and so whenever an img src points to root, it would try and 
call this module.  But when I do this I get the above error.  I asked 
Randal Schwartz and he thought that rebuilding mod_perl with EVERYTHING
=1 would fix it, but it hasn't.  Do you have any suggestions?

How do I rebuild with -DPERL_STACKED_HANDLERS on?

Thanks in advance,

Etienne

Reply via email to