Upgrade Erros on CentOS 5 - File::Temp

Paul Hutchings paul.hutchings at mira.co.uk
Sat Jan 5 19:48:53 GMT 2008


I think I'm OK now.  I did a forced rpm install of perl-file-temp (as
the rpm seemed to complain about a man file installed with the latest
version of Perl) and then I re-ran install.sh and it now appears happy
and has updated the MIME-Tools module.

Thanks
Paul

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Julian
Field
Sent: 05 January 2008 18:42
To: MailScanner discussion
Subject: Re: Upgrade Erros on CentOS 5 - File::Temp

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Paul Hutchings wrote:
> Attempting to build and install perl-File-Temp-0.19-1
> Installing perl-File-Temp-0.19-1.src.rpm
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5106
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd /usr/src/redhat/BUILD
> + rm -rf File-Temp-0.19
> + /bin/gzip -dc /usr/src/redhat/SOURCES/File-Temp-0.19.tar.gz
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd File-Temp-0.19
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chown -Rhf root .
> ++ /usr/bin/id -u
> + '[' 0 = 0 ']'
> + /bin/chgrp -Rhf root .
> + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
> + exit 0
> Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.5106
> + umask 022
> + cd /usr/src/redhat/BUILD
> + cd File-Temp-0.19
> + CFLAGS='-O2 -g'
> + perl Makefile.PL PREFIX=/var/tmp/perl-File-Temp-0.19-1-root/usr
> Checking if your kit is complete...
> Looks good
> Writing Makefile for File::Temp
> + make
> cp Temp.pm blib/lib/File/Temp.pm
> Manifying blib/man3/File::Temp.3pm
> + make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> t/cmp.........ok
> t/fork........ok
> t/lock........You tried to run a test without a plan at t/lock.t line
8.
> BEGIN failed--compilation aborted at t/lock.t line 8.
> # Looks like your test died before it could output anything.
>   
Do you get the same output if you download the module from 
search.cpan.org and then unpack it, cd into it and
    perl Makefile.PL
    make
    make test
or does it then build okay?

I don't get this error on my systems, I tested this an hour ago to be 
sure it was working, which it did. I get this:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" 
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/cmp.........ok


t/fork........ok


t/lock........skipped
        all skipped: Do not seem to have O_EXLOCK
t/mktemp......ok


t/object......ok


t/posix.......ok


t/security....ok


        3/13 skipped: Test inappropriate for root
t/seekable....ok


t/tempfile....ok


All tests successful, 1 test and 3 subtests skipped.

So I assume that for some reason you have O_EXLOCK defined, so the tests

aren't skipped.
This is defined in Fcntl. Have you got Fcntl installed?
    perl -MFcntl -e 'print $Fcntl::VERSION;'
What is the output of that? I get "1.05", and &Fcntl::O_EXLOCK is not 
defined, as
    perl -MFcntl -e '&Fcntl::O_EXLOCK;'
produces an error.

Interesting no-one else has seen this problem before. According to 
search.cpan.org, it is shipped in Perl 5.10. Its latest version is 1.06.

> t/lock........dubious
>         Test returned status 255 (wstat 65280, 0xff00)
> t/mktemp......ok
> t/object......ok
> t/posix.......ok
> t/security....ok
>         3/13 skipped: Test inappropriate for root
> t/seekable....ok
> t/tempfile....ok
> Failed Test Stat Wstat Total Fail  Failed  List of Failed
>
------------------------------------------------------------------------
> -------
> t/lock.t     255 65280    ??   ??       %  ??
> 3 subtests skipped.
> Failed 1/9 test scripts, 88.89% okay. 0/102 subtests failed, 100.00%
> okay.
> make: *** [test_dynamic] Error 255
> error: Bad exit status from /var/tmp/rpm-tmp.5106 (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.5106 (%build)
>
>
>
> Missing file
> /usr/src/redhat/RPMS/noarch/perl-File-Temp-0.19-1.noarch.rpm.
> Maybe it did not build correctly?
>
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of
Julian
> Field
> Sent: 05 January 2008 17:56
> To: MailScanner discussion
> Subject: Re: Upgrade Erros on CentOS 5 - File::Temp
>
>
> * PGP Bad Signature, Signed by an unverified key: 01/05/08 at 17:55:40
>
> But you are using the RPM distro of MailScanner 4.66.5-3 aren't you?
> If so, perl-File-Temp is force-installed, so you will get the correct 
> version installed by install.sh.
> Check that in install.sh, there is a line starting "File::Temp" and
the 
> last 2 words on that line are "yes" and "yes".
> If not, please let me know.
>
> How exactly did you install MailScanner this time around?
>
> Paul Hutchings wrote:
>   
>> Seeing errors upgrading to the latest stable on CentOS5,
>>
>> AIUI file::temp is included in the latest perl, 5.8.8-10.el5_0.2?
>>
>> Any suggestions (noob alert!)
>>
>>    *** The following required modules are missing:
>> File::Temp: At least version 0.17
>>    *** Please install them before attempting to use MIME::Tools.
>> WARNING: LICENSE is not a known parameter.
>> Checking if your kit is complete...
>> Looks good
>> Warning: prerequisite File::Temp 0.17 not found. We have 0.16.
>> 'LICENSE' is not a known MakeMaker parameter name.
>> Writing Makefile for MIME-tools
>> + make
>> cp lib/MIME/Body.pm blib/lib/MIME/Body.pm
>> cp lib/MIME/Decoder/Gzip64.pm blib/lib/MIME/Decoder/Gzip64.pm
>> cp lib/MIME/Field/ContDisp.pm blib/lib/MIME/Field/ContDisp.pm
>> cp lib/MIME/Parser/Results.pm blib/lib/MIME/Parser/Results.pm
>> cp lib/MIME/Field/ContType.pm blib/lib/MIME/Field/ContType.pm
>> cp lib/MIME/Decoder/NBit.pm blib/lib/MIME/Decoder/NBit.pm
>> cp lib/MIME/Entity.pm blib/lib/MIME/Entity.pm
>> cp lib/MIME/Parser/Filer.pm blib/lib/MIME/Parser/Filer.pm
>> cp lib/MIME/Head.pm blib/lib/MIME/Head.pm
>> cp lib/MIME/Words.pm blib/lib/MIME/Words.pm
>> cp lib/MIME/Field/ParamVal.pm blib/lib/MIME/Field/ParamVal.pm
>> cp lib/MIME/Decoder/BinHex.pm blib/lib/MIME/Decoder/BinHex.pm
>> cp lib/MIME/Field/ConTraEnc.pm blib/lib/MIME/Field/ConTraEnc.pm
>> cp lib/MIME/Tools.pm blib/lib/MIME/Tools.pm
>> cp lib/MIME/Decoder/Binary.pm blib/lib/MIME/Decoder/Binary.pm
>> cp lib/MIME/Decoder.pm blib/lib/MIME/Decoder.pm
>> cp lib/MIME/Decoder/UU.pm blib/lib/MIME/Decoder/UU.pm
>> cp lib/MIME/Decoder/QuotedPrint.pm
>>     
> blib/lib/MIME/Decoder/QuotedPrint.pm
>   
>> cp lib/MIME/Decoder/Base64.pm blib/lib/MIME/Decoder/Base64.pm
>> cp lib/MIME/WordDecoder.pm blib/lib/MIME/WordDecoder.pm
>> cp lib/MIME/Parser.pm blib/lib/MIME/Parser.pm
>> cp lib/MIME/Parser/Reader.pm blib/lib/MIME/Parser/Reader.pm
>> Manifying blib/man3/MIME::Decoder::Gzip64.3pm
>> Manifying blib/man3/MIME::Body.3pm
>> Manifying blib/man3/MIME::Field::ContDisp.3pm
>> Manifying blib/man3/MIME::Parser::Results.3pm
>> Manifying blib/man3/MIME::Field::ContType.3pm
>> Manifying blib/man3/MIME::Decoder::NBit.3pm
>> Manifying blib/man3/MIME::Entity.3pm
>> Manifying blib/man3/MIME::Parser::Filer.3pm
>> Manifying blib/man3/MIME::Head.3pm
>> Manifying blib/man3/MIME::Words.3pm
>> Manifying blib/man3/MIME::Field::ParamVal.3pm
>> Manifying blib/man3/MIME::Decoder::BinHex.3pm
>> Manifying blib/man3/MIME::Field::ConTraEnc.3pm
>> Manifying blib/man3/MIME::Tools.3pm
>> Manifying blib/man3/MIME::Decoder::Binary.3pm
>> Manifying blib/man3/MIME::Decoder.3pm
>> Manifying blib/man3/MIME::Decoder::UU.3pm
>> Manifying blib/man3/MIME::Decoder::Base64.3pm
>> Manifying blib/man3/MIME::Decoder::QuotedPrint.3pm
>> Manifying blib/man3/MIME::WordDecoder.3pm
>> Manifying blib/man3/MIME::Parser::Reader.3pm
>> Manifying blib/man3/MIME::Parser.3pm
>> + make test
>> PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
>> "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
>> t/02-kwalitee........skipped
>>         all skipped: Test::Kwalitee not installed; skipping
>> t/02-pod-coverage....skipped
>>         all skipped: Test::Pod::Coverage disabled.
TEST_POD_COVERAGE=1
>> if you want it.
>> t/02-pod.............ok
>> t/99-prepare.........ok
>> t/Body...............ok
>> t/Decoder............# Using gzip: 1
>> t/Decoder............ok 1/8Can't locate object method "seek" via
>>     
> package
>   
>> "File::Temp" at
>>
/usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Decoder/Gzip64.pm
>> line 103.
>> # Looks like you planned 8 tests but only ran 5.
>> # Looks like your test died just after 5.
>> t/Decoder............dubious
>>         Test returned status 255 (wstat 65280, 0xff00)
>> DIED. FAILED tests 6-8
>>         Failed 3/8 tests, 62.50% okay
>> t/Entity.............ok 1/30Can't locate object method "seek" via
>> package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <IN> line 22.
>> # Looks like you planned 30 tests but only ran 18.
>> # Looks like your test died just after 18.
>> t/Entity.............dubious
>>         Test returned status 255 (wstat 65280, 0xff00)
>> DIED. FAILED tests 19-30
>>         Failed 12/30 tests, 60.00% okay
>> t/Gauntlet...........ok
>> t/Head...............ok
>> t/Misc...............ok 1/14Can't call method "parts" on an undefined
>> value at t/Misc.t line 123.
>> # Looks like you planned 14 tests but only ran 12.
>> # Looks like your test died just after 12.
>> t/Misc...............dubious
>>         Test returned status 255 (wstat 65280, 0xff00)
>> DIED. FAILED tests 13-14
>>         Failed 2/14 tests, 85.71% okay
>> t/Parser.............Can't locate object method "seek" via package
>> "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <IN> line 22.
>> # Looks like your test died before it could output anything.
>> t/Parser.............dubious
>>         Test returned status 255 (wstat 65280, 0xff00)
>> DIED. FAILED tests 1-31
>>         Failed 31/31 tests, 0.00% okay
>> t/ParserEncoded......ok
>> t/ParserPreamble.....ok 1/2Can't locate object method "seek" via
>>     
> package
>   
>> "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <$fh> line 18.
>> # Looks like you planned 2 tests but only ran 1.
>> # Looks like your test died just after 1.
>> t/ParserPreamble.....dubious
>>         Test returned status 255 (wstat 65280, 0xff00)
>> DIED. FAILED test 2
>>         Failed 1/2 tests, 50.00% okay
>> t/Ref................NOK 5
>> #   Failed test 'testmsgs/multi-nested.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN4> line 22.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 7
>> #   Failed test 'testmsgs/uu-zeegee.ref, problem: Can't locate object
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN5> line 125.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 9
>> #   Failed test 'testmsgs/multi-2gifs.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN6> line 32.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 11
>> #   Failed test 'testmsgs/multi-igor.ref, problem: Can't locate
object
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN7> line 31.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 13
>> #   Failed test 'testmsgs/multi-nested3.ref, problem: Can't locate
>> object method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN8> line 22.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 15
>> #   Failed test 'testmsgs/ak-0696-nest.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN9> line 21.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 17
>> #   Failed test 'testmsgs/ak-0696-replace.ref, problem: Can't locate
>> object method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN10> line 21.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 19
>> #   Failed test 'testmsgs/ak-0696-none.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN11> line 21.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 21
>> #   Failed test 'testmsgs/bluedot-postcard.ref, problem: Can't locate
>> object method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN12> line 19.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 25
>> #   Failed test 'testmsgs/uu-junk.ref, problem: Can't locate object
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN15> line 39.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 27
>> #   Failed test 'testmsgs/multi-clen.ref, problem: Can't locate
object
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN16> line 15.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 29
>> #   Failed test 'testmsgs/multi-weirdspace.ref, problem: Can't locate
>> object method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN17> line 30.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 31
>> #   Failed test 'testmsgs/multi-simple.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN18> line 15.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 33
>> #   Failed test 'testmsgs/multi-nested2.ref, problem: Can't locate
>> object method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN19> line 22.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 35
>> #   Failed test 'testmsgs/multi-digest.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN20> line 18.
>> # '
>> #   at t/Ref.t line 89.
>> t/Ref................NOK 37
>> #   Failed test 'testmsgs/multi-2evil.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN21> line 32.
>> # '
>> #   at t/Ref.t line 89.
>>
>> #   Failed test 'testmsgs/multi-igor2.ref, problem: Can't locate
>>     
> object
>   
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN27> line 31.
>> # '
>> #   at t/Ref.t line 89.
>>
>> #   Failed test 'testmsgs/uu-junk-extracted.ref, problem: Can't
locate
>> object method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN28> line 39.
>> # '
>> #   at t/Ref.t line 89.
>>
>> #   Failed test 'testmsgs/dup-names.ref, problem: Can't locate object
>> method "seek" via package "File::Temp" at
>> /usr/src/redhat/BUILD/MIME-tools-5.425/blib/lib/MIME/Parser.pm line
>>     
> 816,
>   
>> <GEN29> line 27.
>> # '
>> #   at t/Ref.t line 89.
>> # Looks like you failed 19 tests of 50.
>> t/Ref................dubious
>>         Test returned status 19 (wstat 4864, 0x1300)
>> DIED. FAILED tests 5, 7, 9, 11, 13, 15, 17, 19, 21, 25, 27, 29, 31,
>>     
> 33,
>   
>> 35, 37, 45, 47, 49
>>         Failed 19/50 tests, 62.00% okay
>> t/Smtpsend...........ok
>> t/WordDecoder........ok
>> t/Words..............ok
>> Failed Test        Stat Wstat Total Fail  Failed  List of Failed
>>
>>     
>
------------------------------------------------------------------------
>   
>> -------
>> t/Decoder.t         255 65280     8    6  75.00%  6-8
>> t/Entity.t          255 65280    30   24  80.00%  19-30
>> t/Misc.t            255 65280    14    4  28.57%  13-14
>> t/Parser.t          255 65280    31   62 200.00%  1-31
>> t/ParserPreamble.t  255 65280     2    2 100.00%  2
>> t/Ref.t              19  4864    50   19  38.00%  5 7 9 11 13 15 17
19
>> 21 25 27
>>                                                   29 31 33 35 37 45
47
>> 49
>> 2 tests skipped.
>> Failed 6/17 test scripts, 64.71% okay. 68/321 subtests failed, 78.82%
>> okay.
>> make: *** [test_dynamic] Error 255
>> error: Bad exit status from /var/tmp/rpm-tmp.54342 (%build)
>>
>> Paul Hutchings
>> Network Administrator, MIRA Ltd.
>> Tel: 44 (0)24 7635 5378
>> Fax: 44 (0)24 7635 8378
>> mailto:paul.hutchings at mira.co.uk
>>
>>
>>   
>>     
>
> Jules
>
>   

Jules

- -- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.7.0 (Build 1012)
Comment: Use Thunderbird's Enigmail add-on to verify this message
Charset: ISO-8859-1

wj8DBQFHf89bEfZZRxQVtlQRAqr3AJ4/wgvhxhSnsaptkF6QsPmRN8lwRwCgnUeF
1fgtGACJSI9EYh0goTHFY1c=
=Y4BY
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 

-- 
MIRA Ltd

Watling Street, Nuneaton, Warwickshire, CV10 0TU, England.

Registered in England and Wales No. 402570
VAT Registration  GB 114 5409 96

The contents of this e-mail are confidential and are solely for the use of the intended recipient.
If you receive this e-mail in error, please delete it and notify us either by e-mail, telephone or fax.
You should not copy, forward or otherwise disclose the content of the e-mail as this is prohibited.




More information about the MailScanner mailing list