• CPAN general build error (or fail during "install Module::ScanDeps")

    From hans.schou@gmail.com@21:1/5 to All on Wed Mar 25 03:13:52 2020
    Hi

    What steps to do when CPAN report an error?

    1. cpan[1]> clean
    2. rm -rf ~/.cpan
    3. https://www.cpan.org/misc/cpan-faq.html#How_report_bug_module

    The right answer might be: Read what the error message is and solve the problem.
    I think I have tried that but there must be something generally wrong with my cpan installation. I even tried removing (rename) ~/.cpan without luck.

    So my first question is: Where do I start learning to fix cpan build errors?

    Second question if the first question does not solve it: Module::ScanDeps

    cpan[1]> install Test::Requires
    Running install for module 'Test::Requires'
    Running make for T/TO/TOKUHIROM/Test-Requires-0.10.tar.gz
    Has already been unwrapped into directory /root/.cpan/build/Test-Requires-0.10-fsacgn
    Has already been made
    Running make test
    Has already been tested successfully
    Running make install
    Already done

    cpan[2]> install Module::ScanDeps
    ...
    Test Summary Report
    -------------------
    t/0-pod.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/13-static_prefork_test.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    t/5-pluggable_fake.t (Wstat: 512 Tests: 0 Failed: 0)
    Non-zero exit status: 2
    Parse errors: No plan found in TAP output
    Files=18, Tests=2795, 3 wallclock secs ( 0.22 usr 0.01 sys + 1.86 cusr 0.27 csys = 2.36 CPU)
    Result: FAIL
    Failed 3/18 test programs. 0/2795 subtests failed.
    make: *** [test_dynamic] Error 255
    RSCHUPP/Module-ScanDeps-1.27.tar.gz
    one dependency not OK (Test::Requires); additionally test harness failed
    /usr/bin/make test -- NOT OK
    //hint// to see the cpan-testers results for installing this module, try:
    reports RSCHUPP/Module-ScanDeps-1.27.tar.gz
    Running make install
    make test had returned bad status, won't install without force
    Failed during this command:
    RSCHUPP/Module-ScanDeps-1.27.tar.gz : make_test NO one dependency not OK (Test::Requires); additionally test harness failed

    best regards

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to hans.schou@gmail.com on Wed Mar 25 19:59:33 2020
    In article <c0c6546e-c970-4fe3-b73e-450d986ffe45@googlegroups.com>,
    <hans.schou@gmail.com> wrote:
    What steps to do when CPAN report an error?

    What versions?
    $ perl -V
    $ perl -MCPAN -le 'print $CPAN::VERSION'

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hans.schou@gmail.com@21:1/5 to All on Wed Mar 25 14:13:09 2020
    onsdag den 25. marts 2020 kl. 20.59.34 UTC+1 skrev John D Groenveld:
    In article <c0c6546e-c970-4fe3-b73e-450d986ffe45@googlegroups.com>,
    <hans.schou@gmail.com> wrote:
    What steps to do when CPAN report an error?

    What versions?
    $ perl -V
    $ perl -MCPAN -le 'print $CPAN::VERSION'

    # perl -MCPAN -le 'print $CPAN::VERSION'
    1.9800

    # perl -V
    Summary of my perl5 (revision 5 version 16 subversion 3) configuration:

    Platform:
    osname=linux, osvers=3.10.0-862.2.3.el7.x86_64, archname=x86_64-linux-thread-multi
    uname='linux x86-038.build.eng.bos.redhat.com 3.10.0-862.2.3.el7.x86_64 #1 smp mon apr 30 12:37:51 edt 2018 x86_64 x86_64 x86_64 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Dccdlflags=-Wl,--enable-new-dtags -Dlddlflags=-shared -O2 -g -pipe -
    Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro -DDEBUGGING=-g -Dversion=5.16.3 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red
    Hat, Inc. -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl5 -Dsitearch=/usr/local/lib64/perl5 -Dprivlib=/usr/share/perl5 -Dvendorlib=/usr/share/perl5/vendor_perl -Darchlib=/usr/lib64/perl5 -Dvendorarch=/usr/lib64/
    perl5/vendor_perl -Darchname=x86_64-linux-thread-multi -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64 -Duseshrplib -Dusethreads -Duseithreads -Dusedtrace=/usr/bin/dtrace -Duselargefiles -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -
    Dman3ext=3pm -Duseperlio -Dinstallusrbinperl=n -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto -Ud_endservent_r_proto -Ud_
    setservent_r_proto -Dscriptdir=/usr/bin -Dusesitecustomize'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=define, usemultiplicity=define
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
    Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.5 20150623 (Red Hat 4.8.5-34)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=8, prototype=define
    Linker and Libraries:
    ld='gcc', ldflags =' -fstack-protector'
    libpth=/usr/local/lib64 /lib64 /usr/lib64
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.17'
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,--enable-new-dtags -Wl,-rpath,/usr/lib64/perl5/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -Wl,-z,relro '


    Characteristics of this binary (from libperl):
    Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
    PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT
    PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
    USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
    USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
    USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
    USE_REENTRANT_API USE_SITECUSTOMIZE
    Locally applied patches:
    Fedora Patch1: Removes date check, Fedora/RHEL specific
    Fedora Patch3: support for libdir64
    Fedora Patch4: use libresolv instead of libbind
    Fedora Patch5: USE_MM_LD_RUN_PATH
    Fedora Patch6: Skip hostname tests, due to builders not being network capable
    Fedora Patch7: Dont run one io test due to random builder failures
    Fedora Patch9: Fix find2perl to translate ? glob properly (RT#113054)
    Fedora Patch10: Fix broken atof (RT#109318)
    Fedora Patch13: Clear $@ before "do" I/O error (RT#113730)
    Fedora Patch14: Do not truncate syscall() return value to 32 bits (RT#113980)
    Fedora Patch15: Override the Pod::Simple::parse_file (CPANRT#77530)
    Fedora Patch16: Do not leak with attribute on my variable (RT#114764)
    Fedora Patch17: Allow operator after numeric keyword argument (RT#105924)
    Fedora Patch18: Extend stack in File::Glob::glob, (RT#114984)
    Fedora Patch19: Do not crash when vivifying $|
    Fedora Patch20: Fix misparsing of maketext strings (CVE-2012-6329)
    Fedora Patch21: Add NAME headings to CPAN modules (CPANRT#73396)
    Fedora Patch22: Fix leaking tied hashes (RT#107000) [1]
    Fedora Patch23: Fix leaking tied hashes (RT#107000) [2]
    Fedora Patch24: Fix leaking tied hashes (RT#107000) [3]
    Fedora Patch25: Fix dead lock in PerlIO after fork from thread (RT#106212)
    Fedora Patch26: Make regexp safe in a signal handler (RT#114878)
    Fedora Patch27: Update h2ph(1) documentation (RT#117647)
    Fedora Patch28: Update pod2html(1) documentation (RT#117623)
    Fedora Patch29: Document Math::BigInt::CalcEmu requires Math::BigInt (CPAN RT#85015)
    RHEL Patch30: Use stronger algorithm needed for FIPS in t/op/crypt.t (RT#121591)
    RHEL Patch31: Make *DBM_File desctructors thread-safe (RT#61912)
    RHEL Patch32: Use stronger algorithm needed for FIPS in t/op/taint.t (RT#123338)
    RHEL Patch33: Remove CPU-speed-sensitive test in Benchmark test
    RHEL Patch34: Make File::Glob work with threads again
    RHEL Patch35: Fix CRLF conversion in ASCII FTP upload (CPAN RT#41642)
    RHEL Patch36: Do not leak the temp utf8 copy of namepv (CPAN RT#123786)
    RHEL Patch37: Fix duplicating PerlIO::encoding when spawning threads (RT#31923)
    RHEL Patch38: Add SSL support to Net::SMTP (CPAN RT#93823) [1]
    RHEL Patch39: Add SSL support to Net::SMTP (CPAN RT#93823) [2]
    RHEL Patch40: Add SSL support to Net::SMTP (CPAN RT#93823) [3]
    RHEL Patch41: Add SSL support to Net::SMTP (CPAN RT#93823) [4]
    RHEL Patch42: Do not overload ".." in Math::BigInt (CPAN RT#80182)
    Built under linux
    Compiled at Jun 13 2018 07:46:41
    %ENV:
    PERL5LIB=":/progs/fks/udv/perlmod"
    @INC:
    /progs/fks/udv/perlmod
    /usr/local/lib64/perl5
    /usr/local/share/perl5
    /usr/lib64/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib64/perl5
    /usr/share/perl5
    .

    Thanks!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to hans.schou@gmail.com on Thu Mar 26 02:26:50 2020
    In article <a8b60d66-e556-4a2d-bce9-c88516012e26@googlegroups.com>,
    <hans.schou@gmail.com> wrote:
    # perl -MCPAN -le 'print $CPAN::VERSION'
    1.9800

    # perl -V
    Summary of my perl5 (revision 5 version 16 subversion 3) configuration:

    Does Module::ScanDeps build manually?
    $ wget https://cpan.metacpan.org/authors/id/R/RS/RSCHUPP/Module-ScanDeps-1.27.tar.gz
    $ gzip -dc Module-ScanDeps-1.27.tar.gz | tar xf -
    $ cd Module-ScanDeps-1.27
    $ perl Makefile.PL
    $ make test

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hans.schou@gmail.com@21:1/5 to All on Thu Mar 26 00:39:31 2020
    torsdag den 26. marts 2020 kl. 03.26.51 UTC+1 skrev John D Groenveld:

    Does Module::ScanDeps build manually?

    Yes!

    Actually my goal was to install PDF-API2-Simple and ScanDeps was just one of the errors. Now I have manually insatlled:

    CPAN-Meta-2.150010
    File-Remove-1.58
    Module-Install-1.19
    Module-ScanDeps-1.27
    PDF-API2-2.037
    PDF-API2-Simple-1.1.4

    as some of these gave errors during make and PDF-API2-Simple is working now.

    So what is the conclusion?
    "If the cpan program fails, install manually"

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From John D Groenveld@21:1/5 to hans.schou@gmail.com on Thu Mar 26 12:09:57 2020
    In article <69fdd50e-b6fb-4474-a548-74c039b813e8@googlegroups.com>,
    <hans.schou@gmail.com> wrote:
    So what is the conclusion?
    "If the cpan program fails, install manually"

    I could not reproduce your issue with a more modern Perl and CPAN.
    You might try upgrading CPAN and its dependencies: <URL:https://metacpan.org/pod/distribution/CPAN/scripts/cpan>
    # cpan -O

    John
    groenveld@acm.org

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)