develooper Front page | perl.perl5.porters | Postings from March 2001

[ID 20010327.007] New warning from IO::Socket for sockatmark

Thread Next
David Dyck
March 27, 2001 15:16
[ID 20010327.007] New warning from IO::Socket for sockatmark
Message ID:
This is a bug report for perl from,
generated with the help of perlbug 1.33 running under perl v5.7.0.

[Please enter your report here]

Using bleading edge perl (rsync'ed just minutes ago)

dd:dcd$ perl -w -e 'require IO::Socket' 
Use of uninitialized value in string eq at /usr/local/lib/perl5/5.7.0/i686-linux/IO/ line 32.
Use of uninitialized value in string eq at /usr/local/lib/perl5/5.7.0/i686-linux/IO/ line 32.

Here's a patch to lib/IO/ that stifles the warning.

--- lib/IO/	Sun Mar 25 16:26:13 2001
+++ /home/dcd/perldebug/IO/	Tue Mar 27 15:12:55 2001
@@ -29,7 +29,7 @@
 sub import {
     my $pkg = shift;
-    if ($_[0] eq 'sockatmark') { # not very extensible but for now, fast
+    if (@_ && $_[0] eq 'sockatmark') { # not very extensible but for now, fast
 	Exporter::export_to_level('IO::Socket', 1, $pkg, 'sockatmark');
     } else {
 	my $callpkg = caller;

[Please do not change anything below this line]
This perlbug was built using Perl v5.7.0 - Fri Jan 12 16:03:35 PST 2001
It is being executed now by  Perl v5.7.0 - Tue Mar 27 14:43:50 PST 2001.

Site configuration information for perl v5.7.0:

Configured by dcd at Tue Mar 27 14:43:50 PST 2001.

Summary of my perl5 (revision 5.0 version 7 subversion 0) configuration:
    osname=linux, osvers=2.4.2-ac25, archname=i686-linux
    uname='linux dd 2.4.2-ac25 #1 mon mar 26 11:54:29 pst 2001 i686 '
    config_args='-Dinstallusrbinperl -Dusedevel -Doptimize=-O3 -g -de'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    cc='cc', ccflags ='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O3 -g',
    cppflags='-DDEBUGGING -fno-strict-aliasing -I/usr/local/include'
    ccversion='', gccversion='egcs- 19990314/Linux (egcs-1.1.2 release)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=4
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -ldbm -ldb -ldl -lm -lc
    perllibs=-ldl -lm -lc
    libc=/lib/, so=so, useshrplib=false, libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
    cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'

Locally applied patches:

@INC for perl v5.7.0:

Environment for perl v5.7.0:
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PERL_BADLANG (unset)

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About