I have heard of this problem and thought it was fixed
in the next release. Others who had this reported that
if
they erase Mail/IMAPClient/Parse.pm and rerun 'make'
that this fixes the problem, which is caused by
Parse.pm being run under a different version of
Parse::RecDescent then where it was built. (Parse.pm is
built at make time, if necessary, using Parse.grammer
as input.)
Hope this helps...
Dave K.
On Tue, 15 Jul 2003 20:44:29 -0400 (EDT), "Jerzy
Sobczyk via RT" wrote:
Show quoted text>
>
> This message about Mail-IMAPClient was sent to you by
> J.Sobczyk@ia.pw.edu.pl <J.Sobczyk@ia.pw.edu.pl> via
> rt.cpan.org
>
> Full context and any attached attachments can be found
> at:
> <URL:
https://rt.cpan.org/Ticket/Display.html?id=2962
>
>
> Hello!
>
> I am trying to build Mail::IMAPClinet module with no
> success :-(
> The machine is:
> # uname -a
> SunOS elektron 5.8 Generic_108528-04 sun4u sparc
> SUNW,Ultra-2
> The Perl version is:
> # perl -v
> This is perl, v5.8.0 built for sun4-solaris
> I have installed module Parse::RecDescent version 1.94
> with full success.
> But when I am trying to install Mail::IMAPClient
> version 2.2.8 I get an error:
> # perl -MCPAN -e shell
> install Mail::IMAPClient
> ...........................
> CPAN.pm: Going to build
> D/DJ/DJKERNEN/Mail-IMAPClient-2.2.8.tar.gz
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Mail::IMAPClient::MessageSet
> Writing Makefile for Mail::IMAPClient::Parse
> Writing Makefile for Mail::IMAPClient::BodyStructure
> Writing Makefile for Mail::IMAPClient::Thread
> Writing Makefile for Mail::IMAPClient
> You have the option of running an extended suite of
> tests during
> 'make test'. This requires an IMAP server name, user
> account, and password to test with.
>
> Do you want to run the extended tests? (n/y) ==> n
> cp IMAPClient.pod blib/lib/Mail/IMAPClient.pod
> cp IMAPClient.pm blib/lib/Mail/IMAPClient.pm
> cp MessageSet.pm
> ../blib/lib/Mail/IMAPClient/MessageSet.pm
> Manifying ../blib/man3/Mail::IMAPClient::MessageSet.3
> cp BodyStructure.pm
> ../blib/lib/Mail/IMAPClient/BodyStructure.pm
> precompiling grammar from file 'Parse.grammar'
> to class Mail::IMAPClient::BodyStructure::Parse in
> module file 'Parse.pm'
> cp Parse.pm
> ../../blib/lib/Mail/IMAPClient/BodyStructure/Parse.pm
> Manifying ../../blib/man3/Mail::IMAPClient::Parse.3
> Manifying
> ../blib/man3/Mail::IMAPClient::BodyStructure.3
> precompiling grammar from file 'Thread.grammar'
> to class Mail::IMAPClient::Thread in module file
> 'Thread.pm'
> cp Thread.pm ../blib/lib/Mail/IMAPClient/Thread.pm
> Manifying ../blib/man3/Mail::IMAPClient::Thread.3
> Manifying blib/man3/Mail::IMAPClient.3
> /usr/ccs/bin/make -- OK
> Running make test
> PERL_DL_NONLAZY=1 /usr/bin/perl
> "-MExtUtils::Command::MM" "-e" "test_harness(0,
> 'blib/lib', 'blib/arch')" t/*.t
> t/basic.......ok
Show quoted text>
> t/cram-md5....ok
Show quoted text>
> t/fast_io.....ok
Show quoted text>
> t/ranges......ok
> t/uidfast.....ok
Show quoted text>
> t/uidplus.....ok
Show quoted text>
> All tests successful.
> Files=6, Tests=6, 9 wallclock secs ( 7.75 cusr +
> 0.87 csys = 8.62 CPU)
> PERL_DL_NONLAZY=1 /usr/bin/perl
> "-MExtUtils::Command::MM" "-e" "test_harness(0,
> '../blib/lib', '../blib/arch')" t/*.t
> t/range....ok
Show quoted text>
> All tests successful.
> Files=1, Tests=7, 0 wallclock secs ( 0.16 cusr +
> 0.02 csys = 0.18 CPU)
> PERL_DL_NONLAZY=1 /usr/bin/perl
> "-MExtUtils::Command::MM" "-e" "test_harness(0,
> '../blib/lib', '../blib/arch')" t/*.t
> t/bodystructure....ok 1/8Can't call method "bodytype"
> on an undefined value at t/bodystructure.t line 21.
> t/bodystructure....dubious
Show quoted text>
> Test returned status 255 (wstat 65280, 0xff00)
> DIED. FAILED tests 2-8
> Failed 7/8 tests, 12.50% okay
> Failed Test Stat Wstat Total Fail Failed List
> of Failed
>
-------------------------------------------------------------------------------
Show quoted text> t/bodystructure.t 255 65280 8 7 87.50% 2-8
> Failed 1/1 test scripts, 0.00% okay. 7/8 subtests
> failed, 12.50% okay.
> *** Error code 2
> make: Fatal error: Command failed for target
> `test_dynamic'
> Current working directory
>
/public/root/.cpan/build/Mail-IMAPClient-2.2.8/BodyStructure
Show quoted text> *** Error code 1
> make: Fatal error: Command failed for target `test'
> /usr/ccs/bin/make test -- NOT OK
> Running make install
> make test had returned bad status, won't install
> without force
>
> cpan>
>
> I have tried to use different versions of
> Parse::RecDescent
> module back to 1.90 with the same results (with
version
Show quoted text> 1.80
> "make test" also failed but with slightly different
> messages).
> I have tried to use older Mail::IMAPClient
> modules back to 2.2.6 with the same result.
>
> I also tried to do the same on totaly different
system:
Show quoted text> # uname -a
> Linux mylinux 2.4.18 #7 Fri Jan 10 02:02:33 CET 2003
> i686 unknown unknown GNU/Linux
> with older Perl:
> # perl -v
>
> This is perl, v5.6.1 built for i386-linux
> and I have got the same results :-(
>
> After droping an eye into the code it seems to me as
> some incompatybility
> between Parse::RecDescent and Mail::IMAPClient since
> the later module
> gets nothing from the call (file BodyStructure.pm line
> 25):
> my $self =
> $parser->start($bodystructure) or return undef;
> I did not dived deeply enough to see what actually
> happens.
>
> And one more observation from CPAN server:
> Parse-RecDescent-1.78.readme 19-Mar-2000
> 17:03 3.1K
> Parse-RecDescent-1.78.tar.gz 19-Mar-2000
> 17:08 135K
> Parse-RecDescent-1.79.readme 20-Aug-2000
> 18:27 3.0K
> Parse-RecDescent-1.79.tar.gz 20-Aug-2000
> 18:32 137K
> Parse-RecDescent-1.80.readme 19-Jan-2001
> 10:02 2.6K
> Parse-RecDescent-1.80.tar.gz 19-Jan-2001
> 10:06 139K
> Parse-RecDescent-1.90.readme 24-Mar-2003
> 17:17 3.9K
> Parse-RecDescent-1.90.tar.gz 24-Mar-2003
> 17:23 154K
> Parse-RecDescent-1.91.readme 28-Mar-2003
> 15:20 2.5K
> Parse-RecDescent-1.91.tar.gz 28-Mar-2003
> 16:28 154K
> Parse-RecDescent-1.92.readme 01-Apr-2003
> 20:45 2.5K
> Parse-RecDescent-1.92.tar.gz 01-Apr-2003
> 20:49 124K
> Parse-RecDescent-1.93.readme 02-Apr-2003
> 14:25 2.5K
> Parse-RecDescent-1.93.tar.gz 02-Apr-2003
> 14:33 124K
> Parse-RecDescent-1.94.readme 09-Apr-2003
> 01:29 2.5K
> Parse-RecDescent-1.94.tar.gz 09-Apr-2003
> 01:55 124K
>
> Mail-IMAPClient-2.1.4.readme
> 04-May-2001 07:42 6.1K
> Mail-IMAPClient-2.1.4.tar.gz
> 23-Aug-2001 14:52 239K
> Mail-IMAPClient-2.2.2.readme
> 30-Aug-2002 13:47 6.5K
> Mail-IMAPClient-2.2.2.tar.gz
> 09-Sep-2002 13:27 325K
> Mail-IMAPClient-2.2.4.readme
> 30-Aug-2002 13:47 6.5K
> Mail-IMAPClient-2.2.4.tar.gz
> 27-Sep-2002 13:44 330K
> Mail-IMAPClient-2.2.5.readme
> 30-Aug-2002 13:47 6.5K
> Mail-IMAPClient-2.2.5.tar.gz
> 24-Oct-2002 07:00 336K
> Mail-IMAPClient-2.2.6.readme
> 30-Aug-2002 13:47 6.5K
> Mail-IMAPClient-2.2.6.tar.gz
> 16-Dec-2002 14:18 356K
> Mail-IMAPClient-2.2.7.readme
> 16-Dec-2002 14:17 6.5K
> Mail-IMAPClient-2.2.7.tar.gz
> 24-Jan-2003 13:10 357K
> Mail-IMAPClient-2.2.8.readme
> 16-Dec-2002 14:17 6.5K
> Mail-IMAPClient-2.2.8.tar.gz
> 12-Jun-2003 15:16 366K
>
> There is a big gap (two years) in dates of
> Parse::RecDescent between
> version 1.80 and 1.90 (and there is no version in
> between).
> It looks like a long period of stagnation and fast
> developement in March/April.
> Version 2.2.8 of the Mail::IMAPClinetis is newer but
> still incompatible.
> May be You have not upgraded Parse::RecDescent on your
> machine.
> And may be You have some intermediate version (between
> 1.80 and 1.90)
> of the module which actually works? ;-)
>
> So be carefull before upgrading to 1.94 - make a
backup
Show quoted text> of what you have
> - it may be usefull for finding what has been changed.
> :-)
>
> OK You probably better know what to do.
> Anyway if You will need any more information, logs,
> tests or experiments
> on my machines, feel free to ask me.
>
> With best regards,
> Jerzy Sobczyk
> --
> --------------------- Institute of Control and
> Computation Engineering ______
> Jerzy Sobczyk Warsaw University of
> Technology /_/ |
> J.Sobczyk@ia.pw.edu.pl Nowowiejska
> 15/19 / / /| |
>
http://www.ia.pw.edu.pl/~jurek 00-665 Warsaw,
> POLAND / / _>| |
> tel. +48 22 660 7863 ________________ fax. +48 22
> 8253719 ________ /_/_/ |_|