Click here to get back home

Problem with MIME-tools 5.414 not finding encode_qp

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problem with MIME-tools 5.414 not finding encode_qp Robert Harker 10-27-2004
Posted by Robert Harker on October 27, 2004, 8:00 pm
Please log in for more thread options
I am trying to upgrade to MIMEDefang 2.45 and I get the error:
Undefined subroutine &MIME::QuotedPrint::encode_qp called at
/usr/lib/perl5/site_perl/5.8.0/MIME/Decoder/QuotedPrint.pm line 75.

I can reproduce the problem with a simple perl script:
#!/usr/bin/perl

#use MIME::QuotedPrint;
use MIME::Decoder::QuotedPrint qw(encode_qp);

while (<>) {
print encode_qp($_);
}

If I run it with only the MIME::Decoder::QuotedPrint module then I get the
same error, but if also use the MIME::QuotedPrint module then it works.

I find this perplexing because in the MIME::Decoder::QuotedPrint module it
calls MIME::QuotedPrint.
/usr/lib/perl5/site_perl/5.8.0/MIME/Decoder/QuotedPrint.pm:
line 57: use MIME::QuotedPrint 3.03;

The routine encode_qp is actually a binary routine from the library (?):
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/auto/MIME/Base64/Base64.so

So it seems that for some reason the library function is not being inherited
from MIME::QuotedPrint by MIME::Decoder::QuotedPrint. (I am not a perl
expert so the verbage may be wrong)

Does anyone know how to fix this. The MIMEDefang mailing list has not
been helpful. David Skoll said to check that there were no traces of the
older version of the package and I have done this to no effect.

I am running this on Red Hat 9.0 with:
perl : 5.8.0
MIME::Base64 : 3.05
MIME::QuotedPrint : 3.03
MIME::Decoder::QuotedPrint: 5.414
MIME-tools : 5.414

Any pointers would be a help
RLH


Similar ThreadsPosted
Finding installed modules January 8, 2008, 4:52 pm
Finding out the time on an FTP server using perl August 30, 2005, 5:27 am
Problems finding gd.pm in perl 5.8.6 using linux February 16, 2006, 4:59 pm
finding version number of a library August 10, 2007, 6:54 am
finding the most relevant keywords or phrases of a content using a perl program September 21, 2005, 7:10 am
Problem with Net::FTP July 21, 2004, 12:40 pm
DBI - DBD-DB2 Problem - Please help June 2, 2005, 11:07 pm
Net::FTP->problem with put February 28, 2006, 2:11 am
Re: Problem with DBD::DB2 on AIX. September 20, 2006, 2:10 pm
net::telnet problem July 23, 2004, 6:46 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap