Skip Menu |

This queue is for tickets about the Sphinx-Search CPAN distribution.

Report information
The Basics
Id: 30934
Status: resolved
Priority: 0/
Queue: Sphinx-Search

People
Owner: Nobody in particular
Requestors: igor [...] gerdler.ru
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: Do not work on FreeBSD 6.2
I have FreeBSD 6.2 and perl-5.8.8_1 from ports Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=freebsd, osvers=6.2-release-p7, archname=i386-freebsd- 64int Characteristics of this binary (from libperl): Compile-time options: MYMALLOC PERL_MALLOC_WRAP USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO Locally applied patches: defined-or Built under freebsd function recv() returns empty string in normal situation, but fails in current module version. The documentation on recv() sais that function fails if return code is undef. My modifications are: line 306 - recv($fp, $buf, 4, 0) eq "" || croak("recv: ".$!); + croak("recv: ".$!) unless defined recv($fp, $buf, 4, 0); and line 336 - recv($fp, $header, 8, 0) eq "" || croak("recv: ".$!); + croak("recv: ".$!) unless defined recv($fp, $header, 8, 0);
Thanks for raising this. Like #30935, again looks like bad error handling inherited from PHP approach. I have incorporated your patch into 0.08, but unfortunately don't have a FreeBSD environment for testing.