[rt-users] RT 3.8.4 bug when adding Fcntl perl module
Dan O'Neill
rt at northpb.com
Wed Sep 2 22:06:21 EDT 2009
Version: 3.8.4
OS: Fedora release 11
Perl: Perl v5.10.0 under linux
Fcntl: Fcntl v1.06;
This demo.pl program generates errors when "use Fcntl;" is included and
otherwise works as expected.
a. Can someone replicate this error?
b. Any ideas about a solution?
Thanks,
dano
--- debug.pl ---
#!/usr/bin/perl
use lib qw(/mp3/tools/rt/lib);
use lib qw(/mp3/tools/rt/local/lib);
# Request Tracker API
use RT;
use RT::Interface::CLI qw(CleanEnv GetCurrentUser GetMessageContent loc);
use Fcntl; # uncommented -> errors, commented -> no errors
CleanEnv();
RT::LoadConfig();
RT::Init();
print "1. hello world\n";
my $CurrentUser = GetCurrentUser();
print "2. hello world\n";
---
Here is a partial error text:
Use of uninitialized value $name in concatenation (.) or string at
/mp3/tools/rt/lib/RT/Config.pm line 666.
Use of uninitialized value $name in hash element at
/mp3/tools/rt/lib/RT/Config.pm line 668.
Couldn't load RT config file RT_SiteConfig.pm:
Not a SCALAR reference at /mp3/tools/rt/lib/RT/Config.pm line 709.
Compilation failed in require at /mp3/tools/rt/lib/RT/Config.pm line 516.
More information about the rt-users
mailing list