develooper Front page | perl.perl5.porters | Postings from October 2011

Dual-life Socket [was: Re: [PATCH v2]: Wrap some IPv6 sockoptconstants and ipv6_mreq structure]

Thread Previous | Thread Next
From:
Paul LeoNerd Evans
Date:
October 24, 2011 08:35
Subject:
Dual-life Socket [was: Re: [PATCH v2]: Wrap some IPv6 sockoptconstants and ipv6_mreq structure]
Message ID:
20111024153501.GB11657@cel.leo
On Mon, Oct 24, 2011 at 04:03:11PM +0100, Paul LeoNerd Evans wrote:
> Does anyone have a feel for how hard it would be to be able to dual-life
> Socket, such that we could release this version with the 'v6 sockopts
> out to CPAN?

Actually, I have just tried this now. It -basically- works.

Simply extracting the ext/Socket directory to a new dist, it seems to
build fine on perl5.14.2.

It currently fails on 5.12.4 with:

t/Socket.t ....... XSLoader::load('Your::Module',
$Your::Module::VERSION) at /usr/share/perl/5.12/XSLoader.pm line 25.
Compilation failed in require at t/Socket.t line 13.
BEGIN failed--compilation aborted at t/Socket.t line 13.
t/Socket.t ....... Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 

which I think is attributable to a version difference in XSLoader:

$ perl5.14.2 -MXSLoader -E 'say $XSLoader::VERSION'
0.13

$ perl5.12.4 -MXSLoader -E 'say $XSLoader::VERSION'
0.10

However, as I'm quite keen to see these new IPv6 constants available on
CPAN for earlier perl versions, I will continue poking to see if I can
get a clean build at least as far back as 5.10.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About