Skip Menu |

This queue is for tickets about the Socket6 CPAN distribution.

Report information
The Basics
Id: 97248
Status: open
Priority: 0/
Queue: Socket6

People
Owner: Nobody in particular
Requestors: Neeraj.Sharma [...] netapp.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Redefinition error encountered in "Socket6 CPAN distribution"
Date: Tue, 15 Jul 2014 12:08:45 +0000
To: "bug-Socket6 [...] rt.cpan.org" <bug-Socket6 [...] rt.cpan.org>
From: "Sharma, Neeraj" <Neeraj.Sharma [...] netapp.com>
Hi Team, Following are the few redefinition issues reported against the Socket6 while using natelint. *****************************************Client info***************************************** [sneeraj@vmlnx-72-137 ~]$ hostname vmlnx-72-137 [sneeraj@vmlnx-72-137 ~]$ uname -a Linux vmlnx-72-137 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux [sneeraj@vmlnx-72-137 ~]$ /usr/software/bin/perl5.14.0 -v This is perl 5, version 14, subversion 0 (v5.14.0) built for x86_64-linux-thread-multi Copyright 1987-2011, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. [sneeraj@vmlnx-72-137 ~]$ [sneeraj@vmlnx-72-137 ~]$ /usr/software/bin/perl5.14.0 -V | grep perl Summary of my perl5 (revision 5 version 14 subversion 0) configuration: useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc libc=/lib/libc-2.12.so, so=so, useshrplib=true, libperl=libperl.so dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/software/lib/perl5/5.14.0/x86_64-linux-thread-multi/CORE' Characteristics of this binary (from libperl): /usr/software/lib/perl5/site_perl/5.14.0/x86_64-linux-thread-multi /usr/software/lib/perl5/site_perl/5.14.0 /usr/software/lib/perl5/5.14.0/x86_64-linux-thread-multi /usr/software/lib/perl5/5.14.0 /usr/software/lib/perl5/site_perl [sneeraj@vmlnx-72-137 ~]$ *****************************************issues ***************************************** The logs are as below: [sneeraj@vmlnx-72-137 natedev]$ bin/natelint validate/modules/nate/driver.thpl Syntax check for validate/modules/nate/driver.thpl: + env 'NATE_LIB=.;/usr/software/test/noarch/dev;/usr/software/test/noarch/dev/ontap/main;/x/eng/rlse/ontapng/mainngN/ontap/test' /usr/software/bin/perl5.14.0 -cwI /u/sneeraj,rtp/nate/natedev/bin/../lib -I /usr/software/test/share/perl5.14_temp/lib/perl5 -MNATE::Lint validate/modules/nate/driver.thpl Subroutine NATE::Util::Sockets::pack_sockaddr_in6 redefined at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at lib/NATE/Util/Sockets.pm line 33. Subroutine NATE::Util::Sockets::unpack_sockaddr_in6 redefined at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at lib/NATE/Util/Sockets.pm line 33. Subroutine NATE::Util::Sockets::sockaddr_in6 redefined at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at lib/NATE/Util/Sockets.pm line 33. validate/modules/nate/driver.thpl syntax OK [sneeraj@vmlnx-72-137 natedev]$ *****************************************explanation ***************************************** When both modules are loaded with default import list, these warnings are seen. Surprisingly, 'use warnings' pragma is not reporting those, whereas perl -w (hence natelint also) does. [isshwar@vmlnx-72-137 lib]$ cat ../gg.thpl use warnings; use Socket6; use Socket;> [isshwar@vmlnx-72-137 lib]$ [isshwar@vmlnx-72-137 lib]$ /usr/software/bin/perl5.14.0 -c ../gg.thpl Prototype mismatch: sub main::PF_INET6: none vs () at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. Prototype mismatch: sub main::AF_INET6: none vs () at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. ../gg.thpl syntax OK [isshwar@vmlnx-72-137 lib]$ /usr/software/bin/perl5.14.0 -cw ../gg.thpl Prototype mismatch: sub main::PF_INET6: none vs () at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. Prototype mismatch: sub main::AF_INET6: none vs () at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. Subroutine main::pack_sockaddr_in6 redefined at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. Subroutine main::unpack_sockaddr_in6 redefined at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. Subroutine main::sockaddr_in6 redefined at /usr/software/lib/perl5/site_perl/5.14.0/Exporter.pm line 66. at ../gg.thpl line 3. ../gg.thpl syntax OK [isshwar@vmlnx-72-137 lib]$ *****************************************end ***************************************** Please let me know anything else required. Looking forward for your kind support. Regards, Neeraj

Message body is not shown because it is too large.

Subject: Redefinition errors on "use Socket; use Socket6;"
From: fschlich [...] zedat.fu-berlin.de
An easy test is to just 'use' the module as described in the POD: $ perl -w -e'use Socket; use Socket6;' Subroutine main::pack_sockaddr_in6 redefined at /usr/share/perl/5.22/Exporter.pm line 66. at -e line 1. Subroutine main::unpack_sockaddr_in6 redefined at /usr/share/perl/5.22/Exporter.pm line 66. at -e line 1. Subroutine main::sockaddr_in6 redefined at /usr/share/perl/5.22/Exporter.pm line 66. at -e line 1. This is related to the test warnings from #75211, which were worked around in the patch to t/use.t but not actually fixed.