[aklug] Re: Mimedefang Pain

From: Michael Fowler <michael@shoebox.net>
Date: Wed Apr 17 2013 - 12:11:52 AKDT

On Wed, Apr 17, 2013 at 10:48:42AM -0800, Mike Tibor wrote:
> Apr 12 19:39:14 localhost mimedefang-multiplexor[2372]:
> r3D3d5ka002517: Slave 4 stderr: No such file or directory at
> /usr/local/share/perl5/MIME/Parser.pm line 627.
>
> Naturally I looked at Parser.pm on line 627, and its the first line
> of this:
>
> open(my $outfh, '>:scalar', \$headstr) or die $!;
> $hdr_rdr->read_chunk($in, $outfh, 0, 1);
> close $outfh;
>
> My perl sucks, but it looks to me like it's trying to write into a
> scalar but can't open it for writing for some reason.

It's possible you're using a version of perl that doesn't support the
:scalar IO layer; what version of perl are you using?

    perl -v

Depending on how mimedefang-multiplexor is implemented, it may be linked
against a different version of perl. Is mimedefang-multiplexor a Perl
script? Something compiled? If compiled, what does ldd return?

Also, try:

    perl -wE 'open(my $fh, ">:scalar", \$s) || die $!; say $fh "Hi"; say $s;'

--
Michael Fowler
www.shoebox.net
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Apr 17 12:12:04 2013

This archive was generated by hypermail 2.1.8 : Wed Apr 17 2013 - 12:12:04 AKDT