Skip Menu |

This queue is for tickets about the Socket6 CPAN distribution.

Report information
The Basics
Id: 77665
Status: resolved
Priority: 0/
Queue: Socket6

People
Owner: ume [...] mahoroba.org
Requestors: RURBAN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.23
Fixed in: 0.24



Subject: fixed clang -fllvm failures and more
With unusual cc and ccflags configure fails as the perl options are not known to configure. My patches to fix this and more are at https://github.com/rurban/Socket6 -- Reini Urban
Subject: 0003-fix-t-use.t-cpan-75211.patch
From 227475ea5b0d824060b786750de974aeb49fd6a1 Mon Sep 17 00:00:00 2001 From: Reini Urban <rurban@cpanel.net> Date: Wed, 6 Jun 2012 09:42:46 -0500 Subject: [PATCH 3/3] fix t/use.t [cpan #75211] --- t/use.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/use.t b/t/use.t index 7df9e58..6daf9ff 100644 --- a/t/use.t +++ b/t/use.t @@ -31,7 +31,7 @@ use strict; use Test; -use Socket; +use Socket qw(AF_INET SOCK_STREAM); BEGIN { plan tests => 3 } use Socket6; ok(1); -- 1.7.10
Subject: 0002-fix-MSWin32-cpan-65710-undefined-ref-to-inet_ntop-in.patch
From 1a40e61f656c9b07e11c16c2395dbbf47153d93a Mon Sep 17 00:00:00 2001 From: Reini Urban <rurban@cpanel.net> Date: Wed, 6 Jun 2012 09:39:55 -0500 Subject: [PATCH 2/3] fix MSWin32 [cpan #65710] undefined ref to inet_ntop,inet_pton --- Makefile.PL | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index 245393f..b7e1097 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -73,6 +73,10 @@ sub configure_mswin32 open(IN, '<config.h.in') || die "Failed to open file 'config.h.in' [$!]"; open(OUT, '>config.h') || die "Failed to open file 'config.h' [$!]"; + print(OUT "#ifndef NTDDI_LONGHORN\n"); + print(OUT "# define NTDDI_LONGHORN 0x06000000\n"); + print(OUT "#endif\n"); + while (<IN>) { if (/HAVE_PL_SV_UNDEF/) { print(OUT "#define HAVE_PL_SV_UNDEF 1\n"); -- 1.7.10
Subject: 0001-fix-configure-with-non-gcc-and-ununsual-cflags.patch
From 55b9bb8ea10d29a288d9c451b7452854adadca7a Mon Sep 17 00:00:00 2001 From: Reini Urban <rurban@cpanel.net> Date: Wed, 6 Jun 2012 09:38:40 -0500 Subject: [PATCH 1/3] fix configuire with non-gcc and ununsual cflags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit clang -faddress-sanitizer failed with gcc -c -Wno-unused-value -D_REENTRANT -D_GNU_SOURCE -faddress-sanitizer -DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -ggdb -DVERSION=\"0.23\" -DXS_VERSION=\"0.23\" -fPIC "-I/usr/local/lib/perl5/5.17.0/x86_64-linux-thread-multi-debug-asan@fe1ff7d/CORE" Socket6.c cc1: error: unrecognized command line option ‘-faddress-sanitizer’ --- Makefile.PL | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 9547afc..245393f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -28,12 +28,13 @@ # $Id: Makefile.PL,v 1.8 2008/11/01 19:01:10 ume Exp $ use ExtUtils::MakeMaker; +use Config; if ($^O eq 'MSWin32') { configure_mswin32(); } else { my $path_perl = ($^X =~ m!^/!o) ? $^X : `which $^X`; - my $cmd = './configure'; + my $cmd = "CC='$Config{cc}' CFLAGS='$Config{ccflags}' ./configure"; $cmd .= " --with-perl=$path_perl" if ($path_perl); system($cmd); } @@ -53,8 +54,6 @@ WriteMakefile( sub configure_mswin32 { - require Config; - open(IN, '<config.pl.in') || die "Failed to open file 'config.pl.in' [$!]"; open(OUT, '>config.pl') || die "Failed to open file 'config.pl' [$!]"; -- 1.7.10