Cant call method on an undefined value

This queue is for tickets about the HTTPD-User-Manage CPAN distribution.

Owner:

Nobody in particular

Requestors:

KENTNL [...] cpan.org




Sat Apr 29 07:31:35 2017 KENTNL [...] cpan.org - Ticket created

Subject: Fails tests with " Can't call method "set_passwd" on an undefined value " since Perl 5.22

Cause of this error is not obvious, other than "because 5.22" http://matrix.cpantesters.org/?dist=HTTPD-User-Manage+1.66

PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/01realms.t .. Failed 1/22 subtests
t/02text.t .... Can't call method "set_passwd" on an undefined value at t/02text.t line 22.
t/02text.t .... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 16/16 subtests
t/03dbm.t ..... Can't call method "set_passwd" on an undefined value at t/03dbm.t line 31.
t/03dbm.t ..... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 14/14 subtests
t/04db.t ...... Use of uninitialized value $msg in concatenation (.) or string at t/04db.t line 17.
Can't call method "set_passwd" on an undefined value at t/04db.t line 29.
t/04db.t ...... Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 14/14 subtests

Test Summary Report
-------------------
t/01realms.t (Wstat: 0 Tests: 22 Failed: 1)
  Failed test:  10
t/02text.t  (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 16 tests but ran 1.
t/03dbm.t   (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 14 tests but ran 1.
t/04db.t    (Wstat: 65280 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 14 tests but ran 1.
Files=4, Tests=25,  1 wallclock secs ( 0.05 usr  0.01 sys +  0.14 cusr  0.04 csys =  0.24 CPU)
Result: FAIL
Failed 4/4 test programs. 4/25 subtests failed.

-- 
- CPAN
- Gentoo Perl Maintainer ( )

Mon Mar 22 11:53:22 2021 nwc10+please+use+perlbug+for+perl+queries [...] colon.colondot.net - Correspondence added

On Sat Apr 29 07:31:35 2017, KENTNL wrote:

Show quoted text

> > > Cause of this error is not obvious, other than "because 5.22" http://

Seems to be due to an eval eating $@. Fix is actually really simple: --- lib/HTTPD/AdminBase.pm.orig 2001-02-20 03:32:11.000000000 +0100 +++ lib/HTTPD/AdminBase.pm 2021-03-22 16:50:09.302597079 +0100 @@ -89,13 +89,13 @@ if(@_ > 1) { $ic = join('::', @_) } else { $ic = $_[0] } no strict 'refs'; - unless (defined @{"${ic}::ISA"}) { + unless (@{"${ic}::ISA"}) { # Try to load it ($module = $ic) =~ s,::,/,g; $module =~ /^[^<>|;]+$/; $module = $&; #untaint eval { require "$module.pm"; }; print STDERR "loading $ic $@\n" if $Debug; - $ic = '' unless defined @{"${ic}::ISA"}; + $ic = '' unless @{"${ic}::ISA"}; } $ic; } Nicholas Clark

Mon Mar 22 11:53:23 2021 The RT System itself - Status changed from 'new' to 'open'



I just applied the hotfix Sourcefire_3D_Defense_Center_S3_Hotfix_AF-6.1.0.2-1.sh on my FireSIGHT (which is using v6.1.0-330)

Then I tried to deploy the policies to the standby unit first, I got this error

Cant call method on an undefined value

My SoureFire modules are using version: 6.1.0-330

ASA 5515-x with SourceFire, ASA version 9.6.2

Any idea why i got this error? Googled and found nothing

Thanks,

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl failure with "main::$fn" used only once:" in error logs

Hi all, Can anyone guess why this is happening? I am new to Perl, so please help me to fix this error: - I have a static html file which calls the cgi-perl script. HTML Code: <html> <head> <title> Hey Dude! </title> </head> <body> <form method="POST"... (3 Replies)

Discussion started by: bashily

2. Programming

Compiling C++ code with NetCDF libraries: "undefined reference"

Hi! I am trying to compile a C++ code with cmake and gcc on Ubuntu. The code uses NetCDF4 libraries. I specify the path to these libraries as follows: -I/usr/local/include -L/usr/local/lib -lnetcdf -lnetcdf_c++4 "ccmake" and "cmake" work fine. After typing "make" I receive the error... (0 Replies)

Discussion started by: Alauda

3. Programming

make fails with "undefined reference to..."

i am compiling a program called vasp on suse and get the following error. there are many more preprocess and ifort commands prior so i just grabbed the tail of the log file: ./preprocess <main.F | /usr/bin/cpp -P -C -traditional >main.f90 -DMPI -DHOST=\"LinuxIFC\" -DIFC -Dkind8 -DNGZhalf... (6 Replies)

Discussion started by: crimso

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)

Discussion started by: shis100

6. Shell Programming and Scripting

Can't locate object method "fetchrow_array" Error

Hi, I have a perl script which is interacting with Database. I have following line of code : ================================================= sub BEGIN { #use Getopt::Std; #getopt ('S'); #($STEAP)=($opt_S); use lib ("/home/perl_lib"); use... (1 Reply)

Discussion started by: rawat_me01

7. Shell Programming and Scripting

bash: "undefined variable" and pipe

Hi, haven't found anything about this through searching, so may be a new topic: when doing this: set -o nounset set -o errexit find . -name "*.lib" | while read library; do echo ${libary} done echo "after while" I expect the script to exit within the while loop (because of nounset and... (6 Replies)

Discussion started by: nagaidhlig

8. Programming

error "Invalid argument" returned after call sched_setscheduler

the code is below and the was run on Solaris 9. ----------------------------- struct sched_param param; param.sched_priority = 99; if(sched_setscheduler(0, SCHED_RR, &param) == -1) { perror("setting priority"); exit(1); } ------------------------------- after the... (1 Reply)

Discussion started by: robin.zhu

9. AIX

Getting error "Undefined symbol: .u_strlen_2_6"

Hi, I am using xlC compiler. The compilation goes fine but at the time of linking it gives the following error ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. ld: 0711-317 ERROR: Undefined symbol: .u_strlen_2_6 ld: 0711-317 ERROR: Undefined symbol:... (0 Replies)

Discussion started by: nachiketv

10. Programming

shared object "undefined symbol: fstat" error

Didn't have this problem in AIX, but ported to Linux with GCC compiler and am now getting a runtime error: tssutil: symbol lookup error: /work/agility/devel/bin/libagam.so: undefined symbol: fstat I'm sure most of you know that fstat is an intrinsic function just like printf, memcpy, etc. When I... (5 Replies)

Discussion started by: marcus121