[Mimedefang] RE: Error
Royce Williams
royce.williams at acsalaska.net
Tue Sep 14 11:59:07 EDT 2004
On 9/9/2004 3:48 AM, Mike Carlson wrote:
> Any ideas on this error? I am going to assume that my portupgrade
> of the MIME:Tools broke Perl or something.
>
> I am on FreeBSD 4.8.
[snip]
> Sep 7 17:08:54 hades mimedefang-multiplexor[141]: Slave 3 stderr: Can't
> locate object method "SWASHNEW" via package "utf8" (perhaps you forgot
> to load "utf8"?) at
> /usr/local/lib/perl5/site_perl/5.6.1/MIME/Parser/Filer.pm line 362.
> Compilation failed in require at
> /usr/local/lib/perl5/site_perl/5.6.1/MIME/Parser.pm line 152. BEGIN
> failed--compilation aborted at
> /usr/local/lib/perl5/site_perl/5.6.1/MIME/Parser.pm line 152.
> Compilation failed in require at /usr/local/bin/mimedefang.pl line 154.
> BEGIN failed--compilation aborted at /usr/local/bin/mimedefang.pl line
> 154.
I ran into this last week as well. It appears that something changed
between versions to cause this problem. I could reproduce the error and
could make it go away by downgrading using the portdowngrade port. Note
that I had to downgrade to the 03/18 5.411a_3 version that came before
the flurry of changes on 09/02 to get things to work again. This was
my first guess because the date range made this version look stable; I
didn't try any of the more recent versions.
Here's a transcript of how I did it.
# CVSROOT=freebsdanoncvs at anoncvs.FreeBSD.org:/home/ncvs
# export CVSROOT
# portdowngrade p5-MIME-Tools
portdowngrade 0.5 by Heiner Eichmann
Please note, that nothing is changed in the ports tree
unless it is explicitly permitted in step 6!
Seeking port p5-MIME-Tools ... found: mail/p5-MIME-Tools
Step 1: Checking out port from CVS repository
CVS root directory (from CVSROOT environment variable): freebsdanoncvs at anoncvs.FreeBSD.org:/home/ncvs
The authenticity of host 'anoncvs.freebsd.org (128.46.156.46)' can't be established.
DSA key fingerprint is 52:02:38:1a:2f:a8:71:d3:f5:83:93:8d:aa:00:6f:65.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'anoncvs.freebsd.org' (DSA) to the list of known hosts.
Step 2: Reading the port history from the CVS repository
Step 3: Analyzing the port history from the CVS repository
Step 4: Load port version numbers and present results
Keys: <space> : next page d : details
p : previous page
<enter> : leave presentation and downdgrade if wanted
===============================================================================
number date portversion comment
1 2004/09/07 09:51:01 5.411a_5 Fix the workaround for corrupted PDF fi
2 2004/09/03 22:41:23 5.411a_4 Add fix/workaround for corrupted PDF fi
3 2004/09/02 22:33:01 5.411a_4 Bump port revision and port epoch since
4 2004/09/02 22:29:13 5.411a_3 Add BinHex support.
5 2004/09/02 22:28:46 5.411a_3 Return undef or the parsed MIME::Entity
6 2004/09/02 22:28:22 5.411a_3 Limits the number of MIME parts we will
7 2004/09/02 22:27:53 5.411a_3 Remove whitspaces from exorcise_filenam
8 2004/09/02 22:27:14 5.411a_3 Fix encoding corruption. rt.cpan.org: B
9 2004/09/02 22:26:34 5.411a_3 Parser memory leak fixed. The closure-b
10 2004/09/02 22:26:06 5.411a_3 Correct "7_bit", "7-bit", and "7 bit" t
11 2004/03/18 00:48:50 5.411a_3 SIZEify.
12 2003/11/19 10:00:45 5.411a_3 Apply security related patches.
13 2003/10/28 00:55:24 5.411a_2 Back out previous upgrade because of in
14 2003/10/27 11:10:57 6.200.02 Mark $IGNORE if PERL_LEVEL < 500600.
15 2003/10/26 09:21:50 6.200.02 Upgrade to 6.200_02.
16 2003/10/24 12:02:40 5.411a_2 utilize SITE_PERL
17 2003/02/22 07:48:47 5.411a_2 de-pkg-comment.
18 2003/02/20 16:33:25 5.411a_2 Conditionalise several dependencies on
Total lines: 45. Command:
Enter version number to change port to (0: exit): 11
Step 5: Checking out choosen date of the port from the CVS repository
Step 6: Modifying the port
Port: mail/p5-MIME-Tools
at : 2004/03/18 00:48:50
Type 'yes' to bring the port to the state of the date above
or 'no' to exit without changing anything. Note, that this only changes
the port, not the installed software! yes or no:yes
The port has been set to the selected version. Install it if you wish.
If you have portupgrade installed, you should run
portsdb -Uu
now, to see the changes in the ports database. In any case
portupgrade -f p5-MIME-Tools
will install the changed port. Note: if you run cvsup, the port
is changed back to the choosen label!
# portupgrade -f p5-MIME-Tools
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 86 packages found (-0 +1) . done]
---> Downgrading 'p5-MIME-Tools-5.411a_5,2' to 'p5-MIME-Tools-5.411a_3,1' (mail/p5-MIME-Tools)
---> Building '/usr/ports/mail/p5-MIME-Tools'
===> Cleaning for p5-MIME-Base64-3.03
[snip]
A general tip: I'd never had to use portdowngrade before, and I had
trouble figuring out the right CVSROOT to use. I vigorously suggest
getting comfortable with it *before* you need it.
-royce
--
------------------------------------------------------------------------
Royce D. Williams - IP Engineering, ACS
work: [first.last]@acsalaska.net - PGP: 3FC087DB/1776A531
personal: [first]@alaska.net - http://www.tycho.org/royce/
More information about the MIMEDefang
mailing list