When I start Apache, I get this:

Global $r object is not available. Set:\n\tPerlOptions +GlobalRequest\nin httpd.conf at /var/www/html/mod_perl/Bugzilla.pm line 316.

Okay...that's from my startup script (I cut out most of the error
message to make things clearer.)

But here's that line:

sub request_cache {
if ($ENV{MOD_PERL}) {
require Apache2::RequestUtil;
316: my $request = Apache2::RequestUtil->request;
my $cache = $request->pnotes();

It's inside a subroutine! And it's called dynamically! And that
subroutine is never called at compile time!

So why in the world is mod_perl complaining?

Competent, Friendly Bugzilla Services. And Everything Else, too.