Broken MailScanner? / CPAN? / Perl ? install on Fedora Core 8 x64

Glenn Steen glenn.steen at gmail.com
Fri Nov 30 15:51:25 GMT 2007


On 30/11/2007, Scott B. Anderson <sbanderson at impromed.com> wrote:
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Oliver Falk
> Sent: Thursday, November 29, 2007 9:46 AM
> To: MailScanner discussion
> Subject: Re: Broken MailScanner? / CPAN? / Perl ? install on Fedora Core 8 x64
>
> On 11/29/2007 04:40 PM, Scott B. Anderson wrote:
> I can't figure out where the install.sh script is breaking and CPAN itself is installed and updated to the current > version. Note: I've installed a lot of the Perl modules/applications by hand using cpan and that seems to work fine. For reference, this is an 8 CPU server with 4 GB ram running FC8 with (as of yesterday) all updates installed. My first thought was that multithreaded compilation (make -j5) was causing the problem so I made it single threaded but the same error occurs. Here's the first couple pages of the output from install.sh:
> >
> > Good. You have the patch command.
> ...
> > Setting Perl5 search path
> >
> > I think your system will build architecture-dependent modules for x86_64
> >
> > Rebuilding all the Perl RPMs for your version of Perl
> >
> > Oh good, module ExtUtils::MakeMaker version 6.32 is already installed.
> >
> > Oh good, module Net::CIDR version 0.11 is already installed.
> >
> > Attempting to build and install perl-IO-stringy-2.108-1
> > Installing perl-IO-stringy-2.108-1.src.rpm
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.23822
> > + umask 022
> > + cd /usr/src/redhat/BUILD
> > + LANG=C
> > + export LANG
> > + unset DISPLAY
> > + cd /usr/src/redhat/BUILD
> > + rm -rf IO-stringy-2.108
> > + /bin/gzip -dc /usr/src/redhat/SOURCES/IO-stringy-2.108.tar.gz
> > + tar -xf -
> > + STATUS=0
> > + '[' 0 -ne 0 ']'
> > + cd IO-stringy-2.108
> > ++ /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.23822
> > + umask 022
> > + cd /usr/src/redhat/BUILD
> > + cd IO-stringy-2.108
> > + LANG=C
> > + export LANG
> > + unset DISPLAY
> > + CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'
> > + perl Makefile.PL PREFIX=/var/tmp/perl-IO-stringy-root/usr
> > Checking if your kit is complete...
> > Looks good
> > Writing Makefile for IO-stringy
> > + make
> > cp lib/IO/Lines.pm blib/lib/IO/Lines.pm
> > cp lib/IO/ScalarArray.pm blib/lib/IO/ScalarArray.pm
> > cp lib/IO/Stringy.pm blib/lib/IO/Stringy.pm
> > cp lib/IO/Wrap.pm blib/lib/IO/Wrap.pm
> > cp lib/IO/Scalar.pm.html blib/lib/IO/Scalar.pm.html
> > cp lib/IO/AtomicFile.pm blib/lib/IO/AtomicFile.pm
> > cp lib/IO/InnerFile.pm blib/lib/IO/InnerFile.pm
> > cp lib/IO/Scalar.pm blib/lib/IO/Scalar.pm
> > cp lib/IO/WrapTie.pm blib/lib/IO/WrapTie.pm
> > Manifying blib/man3/IO::Lines.3pm
> > Manifying blib/man3/IO::Stringy.3pm
> > Manifying blib/man3/IO::ScalarArray.3pm
> > Manifying blib/man3/IO::Wrap.3pm
> > Manifying blib/man3/IO::AtomicFile.3pm
> > Manifying blib/man3/IO::InnerFile.3pm
> > Manifying blib/man3/IO::Scalar.3pm
> > Manifying blib/man3/IO::WrapTie.3pm
> > + make test
> > PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> > t/IO_Lines............ok
> > t/IO_Scalar...........ok
> > t/IO_ScalarArray......ok
> > t/IO_WrapTie..........ok
> > t/simple..............ok
> > t/two.................ok
> > All tests successful.
> > Files=6, Tests=116,  0 wallclock secs ( 0.03 usr  0.03 sys +  0.22 cusr  0.16 csys =  0.44 CPU)
> > Result: PASS
> > + exit 0
> > Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.36679
> > + umask 022
> > + cd /usr/src/redhat/BUILD
> > + cd IO-stringy-2.108
> > + LANG=C
> > + export LANG
> > + unset DISPLAY
> > + rm -rf /var/tmp/perl-IO-stringy-root
> > ++ perl -V:installarchlib
> > + eval 'installarchlib='\''/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi'\'';'
> > ++ installarchlib=/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
> > + mkdir -p /var/tmp/perl-IO-stringy-root//usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
> > + make install
> > Manifying blib/man3/IO::Lines.3pm
> > Manifying blib/man3/IO::Stringy.3pm
> > Manifying blib/man3/IO::ScalarArray.3pm
> > Manifying blib/man3/IO::Wrap.3pm
> > Manifying blib/man3/IO::AtomicFile.3pm
> > Manifying blib/man3/IO::InnerFile.3pm
> > Manifying blib/man3/IO::Scalar.3pm
> > Manifying blib/man3/IO::WrapTie.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/InnerFile.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/Lines.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/Scalar.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/Wrap.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/WrapTie.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/Scalar.pm.html
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/ScalarArray.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/Stringy.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8/IO/AtomicFile.pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::ScalarArray.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::InnerFile.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::WrapTie.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::Scalar.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::Lines.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::AtomicFile.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::Wrap.3pm
> > Installing /var/tmp/perl-IO-stringy-root/usr/share/man/man3/IO::Stringy.3pm
> > Writing /var/tmp/perl-IO-stringy-root/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/IO-stringy/.packlist
> > Appending installation info to /var/tmp/perl-IO-stringy-root/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
> > + '[' -x /usr/lib/rpm/brp-compress ']'
> > + /usr/lib/rpm/brp-compress
> > + find /var/tmp/perl-IO-stringy-root/usr -type f -print
> > + sed 's@^/var/tmp/perl-IO-stringy-root@@g'
> > + grep -v perllocal.pod
> > + grep -v '\.packlist'
> > ++ cat IO-stringy-2.108-filelist
> > + '[' '/usr/share/man/man3/IO::InnerFile.3pm.gz
> > /usr/share/man/man3/IO::AtomicFile.3pm.gz
> > /usr/share/man/man3/IO::Scalar.3pm.gz
> > /usr/share/man/man3/IO::ScalarArray.3pm.gz
> > /usr/share/man/man3/IO::Lines.3pm.gz
> > /usr/share/man/man3/IO::Stringy.3pm.gz
> > /usr/share/man/man3/IO::WrapTie.3pm.gz
> > /usr/share/man/man3/IO::Wrap.3pm.gz
> > /usr/lib/perl5/site_perl/5.8.8/IO/InnerFile.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/Lines.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/Scalar.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/Wrap.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/WrapTie.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/Scalar.pm.html
> > /usr/lib/perl5/site_perl/5.8.8/IO/ScalarArray.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/Stringy.pm
> > /usr/lib/perl5/site_perl/5.8.8/IO/AtomicFile.pmX' = X ']'
> > + /usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/IO-stringy-2.108
> > find: debug: No such file or directory                  // <-- Is this the issue ?
> >  + /usr/lib/rpm/check-buildroot
> > /var/tmp/perl-IO-stringy-root/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod:C<installed into: /var/tmp/perl-IO-stringy-root/usr/lib/perl5/site_perl/5.8.8>
> > Found '/var/tmp/perl-IO-stringy-root' in installed files; aborting
> > error: Bad exit status from /var/tmp/rpm-tmp.36679 (%install)
> >
> >
> > RPM build errors:
> >     Bad exit status from /var/tmp/rpm-tmp.36679 (%install)
> >
> >
> >
> > Missing file /usr/src/redhat/RPMS/noarch/perl-IO-stringy-2.108-1.noarch.rpm.
> > Maybe it did not build correctly?
> >
> > Attempting to build and install perl-MIME-Base64-3.07-1
> > Installing perl-MIME-Base64-3.07-1.src.rpm
> > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.74655
> > ...
> >
> > And so forth.  I think the line: find: debug: No such file or directory is where it is blowing up, but I can't (my skills are limited) find the reference to 'debug' and I've installed 'debug' type perl modules but none of them seem to have what the script is looking for. Any help tracking this down would be greatly appreciated. FWIW I'm fairly sure I could install each and every CPAN module manually and install.sh would have little to do but simply install MailScanner.
>
> Try setting strict=false instead of strict=true in
> /usr/lib/rpm/find-debuginfo.sh.
>
> -of
> --
>
> I did this and still receive the exact same build error. Thanks for showing me 'where' the install.sh script was failing. Now to fix it, I think is a problem with RPM_BUILD_DIR either not being set or the script is attempting to write tmp files in a location that doesn't exist. Suggestions on how or where to go from here are greatly appreciated.
>
> Thanks in advance.
>
> Scott
Isn't this the same problem newer Mandriva releases have/had? That
they've moved from having /usr/src/RPM to /usr/src/rpm ... So if you
create a link like
ln -s /usr/src/rpm /usr/src/RPM
... you will "work around" the problem... while waiting for the fix to
arrive...?:-).

I might be completely confused though:-).

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list