On Feb 12, 2009, at 15:55 , Graham Barr wrote:


On Feb 11, 2009, at 10:22 AM, Johan Ström wrote:

Hi

I just upgraded my FreeBSD 7 box from perl 5.8.8 to perl 5.8.9, and also updated all my perl modules. Among those where p5-perl-ldap, which got upgraded from 0.36 (I think) to 0.39.

After this I got problems with my RT installation, which uses LDAP for authentication. The problem I got was this (in rt.log):

[warning]: "LDAP_SYNC_INFO" is not exported by the Net::LDAP::Constant module at /usr/local/lib/perl5/site_perl/5.8.9/Net/LDAP/ Intermediate.pm line 10 (/usr/local/lib/perl5/5.8.9/Carp.pm:46)

That is odd

So its there all right.. But why does it bork in Intermediate.pm? I've cleared out all old 5.8.8 libs, first with the perl-after- upgrade script but then also reinstalled all modules just in case.. And then removed the (empty) 5.8.8 dirs under lib/perl5/ and lib/ perl5/site_perl. So there should be no conflicting files there at least..

What do you get if you run

perl -MNet::LDAP::Constant -le 'BEGIN { print $INC{"Net/LDAP/ Constant.pm"}} use Net::LDAP::Constant "LDAP_SYNC_INFO"'

Hi, thanks for your response!

Result:

misc1 ~$ perl -MNet::LDAP::Constant -le 'BEGIN { print $INC{"Net/LDAP/ Constant.pm"}} use Net::LDAP::Constant "LDAP_SYNC_INFO"'
/usr/local/lib/perl5/site_perl/5.8.9/Net/LDAP/Constant.pm
misc1 ~$

So it's found where expected at least when I'm running from cmdline.. mod_perl2 have been rebuilt and reinstalled too (where RT is running) with new perl. I have the same problem with rt-mailgate too, but I'm not sure if that is going through mod_perl2 in some wierd way, or if it is executed standalone.

Thanks
Johan

Reply via email to