On Thu Feb 07 12:36:28 2008, UMEMOTO wrote:
Show quoted text> Hi,
>
> >>>>> On Sun, 27 Jan 2008 16:41:09 -0500
> >>>>> "Shlomi Fish via RT" <bug-Socket6@rt.cpan.org> said:
>
> bug-Socket6> And with these lines:
>
> bug-Socket6> <<<<<<<<<<<<<<<<<<<<<<<
> bug-Socket6> shlomi:~$
perl -I. -MSocket -MSocket6 -e 'printf("%i\n",
Show quoted text> AF_INET6)'
> bug-Socket6> Constant subroutine main::AF_INET6 redefined at -e line
0
Show quoted text> bug-Socket6> main::BEGIN() called at Socket6.pm line 0
> bug-Socket6> eval {...} called at Socket6.pm line 0
> bug-Socket6> Prototype mismatch: sub main::AF_INET6 () vs none at -e
> line 0
> bug-Socket6> main::BEGIN() called at Socket6.pm line 0
> bug-Socket6> eval {...} called at Socket6.pm line 0
> bug-Socket6> Constant subroutine main::PF_INET6 redefined at -e line
0
Show quoted text> bug-Socket6> main::BEGIN() called at Socket6.pm line 0
> bug-Socket6> eval {...} called at Socket6.pm line 0
> bug-Socket6> Prototype mismatch: sub main::PF_INET6 () vs none at -e
> line 0
> bug-Socket6> main::BEGIN() called at Socket6.pm line 0
> bug-Socket6> eval {...} called at Socket6.pm line 0
> bug-Socket6> 10
> bug-Socket6> >>>>>>>>>>>>>>>>>>>>>>>
>
> Umm, then, could you try following patch?
>
This patch wouldn't apply cleanly from some reason, but a modified
patch (attached) seems to have resolved the bug:
<<<<<<<<<
shlomi:~$ perl -I. -MSocket -MSocket6 -e 'printf("%i\n", AF_INET6)'
10
shlomi:~$
Show quoted text
Thanks!
Regards,
Shlomi Fish
Show quoted text> Index: Socket6.pm
> ===================================================================
> RCS file: /usr/home/ume/pcvs/src/Socket6/Socket6.pm,v
> retrieving revision 1.37
> diff -u -p -r1.37 Socket6.pm
> --- Socket6.pm 27 Jan 2008 08:59:11 -0000 1.37
> +++ Socket6.pm 5 Feb 2008 12:29:26 -0000
> @@ -220,7 +220,6 @@ require DynaLoader;
> gethostbyname2 getaddrinfo getnameinfo
> in6addr_any in6addr_loopback
> gai_strerror getipnodebyname getipnodebyaddr
> - AF_INET6
> AI_ADDRCONFIG
> AI_ALL
> AI_CANONNAME
> @@ -267,8 +266,9 @@ require DynaLoader;
> NI_NUMERICSERV
> NI_DGRAM
> NI_WITHSCOPEID
> - PF_INET6
> );
> +push @EXPORT, qw(AF_INET6) unless defined Socket::AF_INET6;
> +push @EXPORT, qw(PF_INET6) unless defined Socket::PF_INET6;
>
> %EXPORT_TAGS = (
> all => [@EXPORT],
>
> Sincerely,
>
> --
> Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
> ume@mahoroba.org ume@{,jp.}FreeBSD.org
>
http://www.imasy.org/~ume/