importxml.pl warning: uninitialized value passed to use lib

RESOLVED FIXED in Bugzilla 2.14

Status

()

Bugzilla
Bug Import/Export & Moving
RESOLVED FIXED
17 years ago
5 years ago

People

(Reporter: justdave, Assigned: justdave)

Tracking

unspecified
Bugzilla 2.14

Details

Attachments

(1 attachment)

As reported by Tinderbox under Perl 5.6.0:

Running /usr/bin/perl -cw -I/home/dave/tinderbox/mozilla/webtools/bugzilla/
importxml.pl; Results:
importxml.pl has compilable perl syntax.
Warnings: 
Use of uninitialized value in string eq at /usr/local/lib/perl5/5.6.0/lib.pm
        line 19 (#1)
    
    (W uninitialized) An undefined value was used as if it were already defined.  
It was
    interpreted as a "" or a 0, but maybe it was a mistake.  To suppress this
    warning assign a defined value to your variables.
    
Empty compile time value given to use lib at /home/dave/tinderbox/mozilla/
webtools/bugzilla/importxml.pl line 52
Use of uninitialized value in -e at /usr/local/lib/perl5/5.6.0/lib.pm line 23 
(#1)
Use of uninitialized value in concatenation (.) at
        /usr/local/lib/perl5/5.6.0/lib.pm line 35 (#1)
Use of uninitialized value in concatenation (.) at
        /usr/local/lib/perl5/5.6.0/lib.pm line 36 (#1)
Use of uninitialized value in hash element at /usr/local/lib/perl5/5.6.0/lib.pm
        line 40 (#1)
Use of uninitialized value in require at
        /home/dave/tinderbox/mozilla/webtools/bugzilla/importxml.pl line 54 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/XML/Parser.pm line 12 
(#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/File.pm line 110 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/File.pm line 111 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/File.pm line 112 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/Seekable.pm line 51 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/Handle.pm line 241 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO.pm line 5 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/Seekable.pm line 54 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/IO/File.pm line 113 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/File/Spec.pm line 4 (#1)
Use of uninitialized value in require at /usr/local/lib/perl5/5.6.0/vars.pm
        line 11 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/warnings/register.pm line 3 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/File/Spec.pm line 14 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/File/Spec/Unix.pm line 5 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/XML/Parser.pm line 15 
(#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/XML/Parser/Expat.pm line 
499 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/site_perl/5.6.0/i586-linux/XML/Parser/Expat.pm line 
12 (#1)
Use of uninitialized value in require at
        /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm line 20 (#1)
Use of uninitialized value in string eq at
        /usr/local/lib/perl5/5.6.0/File/Spec/Unix.pm line 57 (#1)
Use of uninitialized value in concatenation (.) at
        /usr/local/lib/perl5/5.6.0/i586-linux/DynaLoader.pm line 160 (#1)
Use of uninitialized value in require at
        /home/dave/tinderbox/mozilla/webtools/bugzilla/importxml.pl line 55 (#1)
/home/dave/tinderbox/mozilla/webtools/bugzilla/importxml.pl syntax OK
the attached patch places the setting of the $::path variable inside a begin 
block so that $::path is valid when "use lib" is called at compile time.
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.14
Keywords: patch, review
r= Hixie in irc

checked in.
Status: ASSIGNED → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → FIXED
Moving to Bugzilla product
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: Bugzilla 2.13 → unspecified
Component: Bugzilla-General → Bug Import/Export & Moving
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.