Subject: | Failed test 'CURL_SOCKET_BAD is defined alright - Invalid argument' on RHEL5 [patch] |
I use an automated process to install hundreds of module tarballs and it's
necessary for each tarball to PASS its tests.
Googling shows this happens to other people.
Doesn't happen on RHEL6 or FreeBSD 7.2, so disable test on RHEL5
perhaps because it has libcurl 7.15.5 and that ain't gonna change
FYI WWW-Curl-4.19_9905 wouldn't even build on RHEL5, output includes
Curl.xs:931: error: ‘CURLVERSION_FOURTH’ undeclared (first use in this function)
Curl.xs:934: error: ‘curl_version_info_data’ has no member named ‘libssh_version’
Curl.xs:1472: warning: pointer targets in passing argument 1 of ‘Perl_newSVpvn’ differ in signedness
Curl.xs:1508: error: ‘CURLMOPT_TIMERFUNCTION’ undeclared (first use in this function)
Curl.xs:1509: error: ‘CURLMOPT_TIMERDATA’ undeclared (first use in this function)
Curl.xs: In function ‘XS_WWW__Curl__Multi_socket_action’:
Curl.xs:1557: warning: implicit declaration of function ‘curl_multi_socket_action’
./const-xs.inc: In function ‘boot_WWW__Curl’:
./const-xs.inc:1169: warning: initialization makes integer from pointer without a cast
make: *** [Curl.o] Error 1
it does build on RHEL6 which has libcurl 7.19.7
--- WWW-Curl-4.15.orig/t/00constants.t 2010-11-29 06:11:33.000000000 +1000
+++ WWW-Curl-4.15/t/00constants.t 2011-04-12 11:00:40.000000000 +1000
@@ -50,7 +50,8 @@
}
if ($check) {
next if ($skip_multi && $name =~ m/^CURLM/);
- push @checklist, [$name, $depr];
+ push @checklist, [$name, $depr]
+ unless($name eq 'CURL_SOCKET_BAD');
}
}
plan tests => scalar(@checklist);