Hi Daphna,

replying to everybody. (see the last line of my E-mail signature block.)

On Wednesday 06 Apr 2011 17:18:30 Daphna Wasserman (dwasserm) wrote:
> Thanks for your response !
> Upgrading our Perl version is currently impossible. 

Why is it impossible?

> I'll try using
> http://search.cpan.org/dist/IO-Socket-IP/ and see if that works for us.
> 

OK. Good luck.

Regards,

        Shlomi Fish


> 
> Regards,
> Daphna
> -----Original Message-----
> From: Shlomi Fish [mailto:[email protected]]
> Sent: Sunday, April 03, 2011 8:49 AM
> To: Daphna Wasserman (dwasserm); Paul LeoNerd Evans
> Cc: Perl in Israel
> Subject: Re: INET6 On Solaris sparc
> 
> Hi Daphna,
> 
> see below for my message and I apologise for the late response. My inbox
> went out of control. CCing to the Perl-Israel mailing list.
> 
> On Thursday 31 Mar 2011 10:47:34 Daphna Wasserman (dwasserm) wrote:
> > Hi,
> > 
> > I saw you're the author of the IO-Socket-INET6 > 2.67 in the
> > ActiveState site, and perhaps you could assist.
> > I've been trying to compile the above on our Solaris-10 64-bit server,
> > 
> > but keep running into problems, that you might have solved.
> > 
> > After compiling & installing socket6 & IO::Socket::INET6, checking the
> > 
> > module's version fails:
> > 
> > ana38@sh-t100-600t [~]% perl -MIO::Socket::INET6 -e 'print
> > $IO::Socket::INET6::VERSION' ; Your vendor has not defined Socket
> > macro AF_INET6, used at
> > /export/home/ana38/perl/lib/site_perl/5.8.6/IO/Socket/INET6.pm line 49
> > 
> > Compilation failed in require.
> > BEGIN failed--compilation aborted.
> 
> Perl 5.8.6 is very old and there's no way I can support it. Please
> upgrade to
> perl-5.12.3 which should run fine on Solaris (or at least to perl-5.8.9,
> but perl-5.12.x is so much better and there will be perl-5.14.0 Any Time
> Now(tm).).
> 
> > So, I've commented out line 49:
> > #IO::Socket::INET6->register_domain( AF_INET6 );
> 
> This line may be needed.
> 
> I should note that I'm not a big networking or IPv6 expert and that I've
> only started maintaing IO::Socket::INET6 after I needed to fix a bug
> there with a problem I had with SpamAssassin . Also see:
> 
> http://search.cpan.org/dist/IO-Socket-IP/
> 
> which aims to be a saner replacement for IO-Socket-INET6, but I have yet
> to try it (even though I have a lot of confidence in PEVANS'
> competency).
> 
> Regards,
> 
>       Shlomi Fish
> 
> > And the above command was successful:
> > ana38@sh-t100-600t [~]% perl -MIO::Socket::INET6 -e 'print
> > $IO::Socket::INET6::VERSION' ;
> > 2.67
> > 
> > However, running a simple test fails again:
> > 
> > #!/usr/bin/env perl
> > use strict;
> > use warnings;
> > use IO::Socket::INET6;
> > 
> > my $socket = new IO::Socket::INET6 (PeerAddr => "10.56.57.115",
> > 
> >                         PeerPort => 9002,
> >                         Proto => 'tcp'); die "$!" unless $socket;
> > 
> > print "success!\n";
> > 
> > Output:
> > ana38@sh-t100-600t [~]% ./test.pl
> > Your vendor has not defined Socket macro AF_INET6, used at
> > /export/home/ana38/perl/lib/site_perl/5.8.6/IO/Socket/INET6.pm line 72
> > 
> > Any ideas how I can continue from here ? I've also tried modifying
> > 
> > Socekt6.pm, as suggested in http://www.perlmonks.org/?node_id=679249 :
> >     270 #push @EXPORT, qw(AF_INET6) unless defined eval
> > 
> > {Socket::AF_INET6()};
> > 
> >     271 #push @EXPORT, qw(PF_INET6) unless defined eval
> > 
> > {Socket::PF_INET6()};
> > 
> >     272 push @EXPORT, qw(AF_INET6);
> >     273 push @EXPORT, qw(PF_INET6);
> >     274
> >     275
> >     276 @EXPORT_OK = qw(AF_INET6 PF_INET6);
> > 
> > But it didn't make a difference. Any ideas?
> 
> --
> -----------------------------------------------------------------
> Shlomi Fish       http://www.shlomifish.org/
> Optimising Code for Speed - http://shlom.in/optimise
> 
> C++ is complex, complexifying and complexified.
> (With apologies to the Oxford English Dictionary).
> 
> Please reply to list if it's a mailing list post - http://shlom.in/reply
> .

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What Makes Software Apps High Quality -  http://shlom.in/sw-quality

An apple a day keeps the doctor away.
Two apples a day will keep two doctors away. (-- one of Shlomi Fish's 
relatives)

Please reply to list if it's a mailing list post - http://shlom.in/reply .
_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to