[rt-users] odd problem after portupgrade

Nathan J. Mehl rtusers at memory.blank.org
Fri Oct 22 15:42:15 EDT 2004


In one fell swoop, I've recently upgraded my freebsd server to perl
5.8.5, mod_perl 1.29_1, and rt 3.2.2.

Since then we've been seeing random errors when opening up URLs inside
RT, like this:

     error:   	Can't locate unicore/Canonical.pl in @INC (@INC
     contains: /usr/local/lib/perl5/site_perl/5.8.4
     /usr/local/rt3/local/lib /usr/local/rt3/lib
     /usr/local/lib/perl5/site_perl/5.8.4/i386-freebsd-64int
     /usr/local/lib/perl5/site_perl/5.8.4/mach
     /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.4/BSDPAN
     /usr/local/lib/perl5/5.8.4/mach /usr/local/lib/perl5/5.8.4 .
     /usr/local/ /usr/local/lib/perl) at
     /usr/local/lib/perl5/5.8.4/utf8_heavy.pl line 81.
     context:  	
     unable to open file  	
     code stack:  	/usr/local/lib/perl5/5.8.4/utf8_heavy.pl:81
     /usr/local/rt3/share/html/Elements/Menu:64
     /usr/local/rt3/share/html/Elements/Menu:89
     /usr/local/rt3/share/html/Elements/PageLayout:61
     /usr/local/rt3/local/html/Elements/Tabs:24
     /usr/local/rt3/share/html/Ticket/Elements/Tabs:47
     /usr/local/rt3/share/html/Search/Results.html:47
     /usr/local/rt3/share/html/autohandler:221
     raw error

What's strange about this is that, well... we shouldn't be looking in
the 5.8.4 directories there.  unicore/Canonical.pl is in
/usr/local/lib/perl5/5.8.5.  libperl.so knows this:

     $ strings libperl.so |grep 5.8
     /usr/local/lib/perl5/5.8.5/mach/CORE
     /usr/local/lib/perl5/site_perl/5.8.5/i386-freebsd-64int

...and for that matter, perl knows this:

     Characteristics of this binary (from libperl):
       Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
       Built under freebsd
       Compiled at Oct 21 2004 16:57:56
       @INC:
         /usr/local/lib/perl5/site_perl/5.8.5/mach
         /usr/local/lib/perl5/site_perl/5.8.5
         /usr/local/lib/perl5/site_perl/5.8.4
         /usr/local/lib/perl5/site_perl/5.005
         /usr/local/lib/perl5/site_perl
         /usr/local/lib/perl5/5.8.5/BSDPAN
         /usr/local/lib/perl5/5.8.5/mach
         /usr/local/lib/perl5/5.8.5
         .

...and there's (as far as I can tell) nothing in apache's or RT's
configuration or environment that would point to the 5.8.4 @INC rather
than the perl default @INC.

And yet... there the error is.  I've restarted apache and cleaned out
both the session_data and mason_data directories, to no avail.

Am I missing something?

-n

------------------------------------------------------------<memory at blank.org>
     Remember when they told you there'd be no future?  Well, this is it.
<http://blank.org/memory/>----------------------------------------------------



More information about the rt-users mailing list