I'm having a strange first-time problem building my new Server-Control distribution from CPAN on Fedora.

To reproduce this, I first run this reset script to remove Server- Control from my .cpan and system:

   #!/bin/bash
   /bin/rm -fR /home/swartz/.cpan/Metadata
   /bin/rm -fR /home/swartz/.cpan/build/Server-Control-*
/bin/rm -fR /home/swartz/.cpan/sources/authors/id/J/JS/JSWARTZ/ Server-Control-* sudo /bin/rm -fR /usr/local/lib/perl5/site_perl/5.8.8/Server/ {Control,Control.pm}

Then:

   swartz> cpan

   cpan shell -- CPAN exploration and modules installation (v1.94)
   ReadLine support enabled

   cpan[1]> install Server::Control
   CPAN: Storable loaded ok (v2.15)
   Going to read '/home/swartz/.cpan/sources/authors/01mailrc.txt.gz'
   ... [usual output]
   Server-Control-0.04/
   Server-Control-0.04/bin/
   Server-Control-0.04/bin/apachectlp
   ... [usual output]
   Server-Control-0.04/xt/release/Apache.t
   Server-Control-0.04/xt/release/apachectlp.t
   Server-Control-0.04/xt/release/Util.t
Use of uninitialized value in join or string at /usr/local/lib/ perl5/5.8.8/i686-linux/File/Spec/Unix.pm line 86. Use of uninitialized value in pattern match (m//) at /usr/local/ lib/perl5/5.8.8/i686-linux/File/Spec/Unix.pm line 267. Use of uninitialized value in join or string at /usr/local/lib/ perl5/5.8.8/i686-linux/File/Spec/Unix.pm line 86. Use of uninitialized value in pattern match (m//) at /usr/local/ lib/perl5/5.8.8/i686-linux/File/Spec/Unix.pm line 267.
   ... [*** These warnings repeat 49 times in total]
Use of uninitialized value in join or string at /usr/local/lib/ perl5/5.8.8/i686-linux/File/Spec/Unix.pm line 86. Use of uninitialized value in pattern match (m//) at /usr/local/ lib/perl5/5.8.8/i686-linux/File/Spec/Unix.pm line 267.
   CPAN: File::Temp loaded ok (v0.21)

     CPAN.pm: Going to build J/JS/JSWARTZ/Server-Control-0.04.tar.gz

   Warning: No success on command[/usr/local/bin/perl Makefile.PL]
     JSWARTZ/Server-Control-0.04.tar.gz
     /usr/local/bin/perl Makefile.PL -- NOT OK
   Running make test
     Make had some problems, won't test
   Running make install
     Make had some problems, won't install
   Failed during this command:
JSWARTZ/Server-Control-0.04.tar.gz : writemakefile NO '/ usr/local/bin/perl Makefile.PL' returned status -1

   cpan[2]> force make Server::Control
   Running make for module 'Server::Control'
   Running make for J/JS/JSWARTZ/Server-Control-0.04.tar.gz

     CPAN.pm: Going to build J/JS/JSWARTZ/Server-Control-0.04.tar.gz

   Warning: No success on command[/usr/local/bin/perl Makefile.PL]
     JSWARTZ/Server-Control-0.04.tar.gz
     /usr/local/bin/perl Makefile.PL -- NOT OK
   Failed during this command:
JSWARTZ/Server-Control-0.04.tar.gz : writemakefile NO '/ usr/local/bin/perl Makefile.PL' returned status -1

If I quit CPAN and manually run perl Makefile.PL as the same user, OR if I quit CPAN, enter CPAN again, and run "make Server::Control", it works fine:

   cpan[9]> Lockfile removed.
   swartz> cd /home/swartz/.cpan/build/Server-Control-0.04-vyj2Uz
   swartz> /usr/local/bin/perl Makefile.PL
   Cannot determine perl version info from lib/Server/Control.pm
   *** Module::AutoInstall version 1.03
   *** Checking for Perl dependencies...
   [Core Features]
   - Capture::Tiny               ...loaded. (0.06)
   - File::Path                  ...loaded. (2.07)
   - Getopt::Long                ...loaded. (2.38)
   - Guard                       ...loaded. (1.021 >= 0.5)
   - HTTP::Server::Simple        ...loaded. (0.38 >= 0.28)
   - Net::Server                 ...loaded. (0.97)
   - POSIX                       ...loaded. (1.09)
   - Test::Class                 ...loaded. (0.31)
   - Test::Log::Dispatch         ...loaded. (0.02)
   - Test::Most                  ...loaded. (0.21)
   - Apache::ConfigParser        ...loaded. (1.01 >= 1.01)
   - File::Slurp                 ...loaded. (9999.13 >= 9999.13)
   - File::Spec::Functions       ...loaded. (3.3)
   - File::Temp                  ...loaded. (0.21)
   - File::Which                 ...loaded. (0.05)
   - Hash::MoreUtils             ...loaded. (0.01)
   - IO::Socket                  ...loaded. (1.31)
   - IPC::System::Simple         ...loaded. (1.18 >= 1.18)
   - List::MoreUtils             ...loaded. (0.22 >= 0.13)
   - Log::Any::Adapter::Dispatch ...loaded. (0.03 >= 0.03)
   - Moose                       ...loaded. (0.79 >= 0.66)
   - Pod::Usage                  ...loaded. (1.33)
   - Proc::ProcessTable          ...loaded. (0.44 >= 0.42)
   - Time::HiRes                 ...loaded. (1.86)
   *** Module::AutoInstall configuration finished.
   Writing Makefile for Server::Control

I can get this to reproduce most (though not all) of the time by repeating the reset script and the install. But I can only get this to happen on my Fedora 6 box, not on my mac.

Has anyone seen this before? Where are all the warnings coming from?

I've pasted my Perl version and Makefile.PL below, and I've put the full CPAN session with all debug output at:

    http://openswartz.com/perl/tmp/server-control.txt

Thanks for any help!
Jon

-----

   swartz> perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
     Platform:
       osname=linux, osvers=2.6.27.2-xenu, archname=i686-linux
uname='linux corp.code30.net 2.6.27.2-xenu #1 smp mon oct 20 21:19:45 edt 2008 i686 i686 i386 gnulinux '
       config_args='-des'
       hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
       use64bitint=undef use64bitall=undef uselongdouble=undef
       usemymalloc=n, bincompat5005=undef
     Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -Wdeclaration- after-statement -I/usr/local/include -D_LARGE FILE_SOURCE - D_FILE_OFFSET_BITS=64',
       optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after- statement -I/usr/local/include' ccversion='', gccversion='4.1.1 20061011 (Red Hat 4.1.1-30)', gccosandvers=''
       intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
       alignbytes=4, prototype=define
     Linker and Libraries:
       ld='cc', ldflags =' -L/usr/local/lib'
       libpth=/usr/local/lib /lib /usr/lib
       libs=-lnsl -lgdbm -ldl -lm -lcrypt -lutil -lc
       perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.5.so, so=so, useshrplib=false, libperl=libperl.a
       gnulibc_version='2.5'
     Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,- E'
       cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


   Characteristics of this binary (from libperl):
     Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
     Built under linux
     Compiled at Jun  2 2009 14:33:48
     %ENV:
       PERL_AUTOINSTALL="--alldeps"
     @INC:
       /usr/local/lib/perl5/5.8.8/i686-linux
       /usr/local/lib/perl5/5.8.8
       /usr/local/lib/perl5/site_perl/5.8.8/i686-linux
       /usr/local/lib/perl5/site_perl/5.8.8
       /usr/local/lib/perl5/site_perl
       .

-----

use inc::Module::Install;

name 'Server-Control';
abstract 'Flexible apachectl style control for servers';
all_from 'lib/Server/Control.pm';
author 'Jonathan Swartz <[email protected]>';

perl_version '5.006';

build_requires 'Capture::Tiny'        => 0;
build_requires 'File::Path'           => 0;
build_requires 'Getopt::Long'         => 0;
build_requires 'Guard'                => 0.5;
build_requires 'HTTP::Server::Simple' => 0.28;
build_requires 'Net::Server'          => 0;
build_requires 'POSIX'                => 0;
build_requires 'Test::Class'          => 0;
build_requires 'Test::Log::Dispatch'  => 0;
build_requires 'Test::Most'           => 0;

requires 'Apache::ConfigParser'        => '1.01';
requires 'File::Slurp'                 => '9999.13';
requires 'File::Spec::Functions'       => 0;
requires 'File::Temp'                  => 0;
requires 'File::Which'                 => 0;
requires 'Hash::MoreUtils'             => 0;
requires 'IO::Socket'                  => 0;
requires 'IPC::System::Simple'         => '1.18';
requires 'List::MoreUtils'             => '0.13';
requires 'Log::Any::Adapter::Dispatch' => '0.03';
requires 'Moose'                       => '0.66';
requires 'Pod::Usage'                  => 0;
requires 'Proc::ProcessTable'          => '0.42';
requires 'Time::HiRes'                 => 0;

recommends 'Unix::Lsof'                => '0.0.9';

install_script 'bin/apachectlp';

no_index directory => 'lib/Server/Control/t';
no_index package => 'Server::Control::Util';

extra_tests;

license 'perl';

auto_install;

WriteAll;

-----

cpan[7]> o debug all
Options set for debugging (131071):
    CPAN          (1)
    Index         (2)
    InfoObj       (4)
    Author        (8)
    Distribution  (16)
    Bundle        (32)
    Module        (64)
    CacheMgr      (128)
    Complete      (256)
    FTP           (512)
    Shell         (1024)
    Eval          (2048)
    HandleConfig  (4096)
    Tarzip        (8192)
    Version       (16384)
    Queue         (32768)
    FirstTime     (65536)


Reply via email to