Grant wrote:
[...]
A weird thing:  I'm getting those same bareword errors in error_log
but I haven't even updated Interchange::Link yet.  That module doesn't
say "Apache2::Const:OK" anywhere in it and I'm still getting the same
error.

That means that you - either still have pre-mp2-RC5 Apache2/Const somewhere. - or the code that uses it didn't compile that constant. i.e., you (or whoever wrote it) didn't do:

  use Apache2::Const -compile => 'OK';

before using it.


I replaced:

use Apache::Const;

with:

use Apache2::Const -compile => 'OK';

in Link.pm with the same results.  How can I find out if I have an old
Apache2/Const?  I definitely only have these on the system:

/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/Apache2/Const
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/Apache2/Const/Const.so
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/auto/Apache2/Const/Const.bs
/usr/lib/perl5/vendor_perl/5.8.5/i686-linux/Apache2/Const.pm

May be you aren't loading it, while you think that you do. Please observe:

% perl -le 'use warnings; use strict; use Apache2::Const; \
sub foo {return Apache2::Const::OK }'

% perl -le 'use warnings; use strict; \
sub foo {return Apache2::Const::OK }'
Bareword "Apache2::Const::OK" not allowed while "strict subs" in use at -e line 1.
Execution of -e aborted due to compilation errors.


Try:

warn $INC{'Apache2/Const.pm'}

somewhere in your code. It should show you the file that was loaded.

If everything else fails, if you can use the problem reporting skeleton [1] and reproduce the problem with it (adjusting it by adding some minimal code). Please send it here and we will look at it).

[1] linked from: http://perl.apache.org/docs/2.0/user/help/help.html#Problem_Description

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Reply via email to