Perl / perl5

🐪 The Perl programming language
https://dev.perl.org/perl5/
Other
1.92k stars 545 forks source link

perlcc "uninitialized value... B.pm..." when #!/usr/local/bin/perl -wsed #971

Closed p5pRT closed 20 years ago

p5pRT commented 24 years ago

Migrated from rt.perl.org#1918 (status was 'resolved')

Searchable as RT1918$

p5pRT commented 24 years ago

From walsh@eies.njit.edu


Given simple script like this "hello.pl"​:

#!/usr/local/bin/perl -w print "Hello\, world!\n";

Then "perlcc hello.pl" emits repeating lines similar to​:

Use of uninitialized value at /usr/local/lib/perl5/5.00502/sun4-solaris/B.pm lin e 194.

Interesting points are​: - Compile and executable apparently otherwise okay; - Still has -w functionality - Doesn't happen if $^W=1 is used - Doesn't happen with other options like "-a" - Still happens if combined with other options like "-aw" - Exactly repeatable w/ same version of Perl on SunOS 5.5.1 (Solaris 2.5.1)

Pleasant regards\, Kevin J. Walsh NJ Inst of Tech\, Computing Services

PS--PERL IS THE BEST THING TO HAPPEN TO THE INDUSTRY SINCE TURING MET LOVELACE. HOPE YOU ARE ALL VERY PROUD OF YOUR CONTINUING CONTRIBUTION TO MANKIND!
Umm\, but not so proud as to not work on my minor nitpickin' bug!



Site configuration information for perl 5.00502​:

Configured by root at Thu Oct 22 11​:29​:16 EDT 1998.

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration​:   Platform​:   osname=solaris\, osvers=2.6\, archname=sun4-solaris   uname='sunos mule 5.6 generic_105181-05 sun4u sparc sunw\,ultra-4 '   hint=recommended\, useposix=true\, d_sigaction=define   usethreads=undef useperlio=undef d_sfio=undef   Compiler​:   cc='gcc'\, optimize='-O2'\, gccversion=2.8.1   cppflags='-I/usr/local/include'   ccflags ='-I/usr/local/include'   stdchar='unsigned char'\, d_stdstdio=define\, usevfork=false   intsize=4\, longsize=4\, ptrsize=4\, doublesize=8   d_longlong=define\, longlongsize=8\, d_longdbl=define\, longdblsize=16   alignbytes=8\, usemymalloc=y\, prototype=define   Linker and Libraries​:   ld='gcc'\, ldflags =' -L/usr/local/lib'   libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib   libs=-lsocket -lnsl -lgdbm -ldl -lm -lc -lcrypt   libc=\, so=so\, useshrplib=false\, libperl=libperl.a   Dynamic Linking​:   dlsrc=dl_dlopen.xs\, dlext=so\, d_dlsymun=undef\, ccdlflags=' '   cccdlflags='-fPIC'\, lddlflags='-G -L/usr/local/lib'

Locally applied patches​:  


@​INC for perl 5.00502​:   /usr/local/lib/perl5/5.00502/sun4-solaris   /usr/local/lib/perl5/5.00502   /usr/local/lib/perl5/site_perl/5.005/sun4-solaris   /usr/local/lib/perl5/site_perl/5.005   .


Environment for perl 5.00502​:   HOME=/home/w/walsh   LANG (unset)   LD_LIBRARY_PATH=/share/basispls/dm/lib​:   LOGDIR (unset)   PATH=/home/w/walsh/work​:/share/basispls/dmk/bin​:/share/basispls/dm/bin​:/usr/local/bin​:/usr/bin​:/usr/ucb​:/usr/ccs/bin​:/usr/openwin/bin​:/home/w/walsh/bin​:/share/papyrus/dev/bin​:/eiestest/dbusr1/bin​:/eiestest/eies/bin​:/share/bin   PERL_BADLANG (unset)   SHELL=/usr/bin/ksh