[PLUG] CPAN weirdness

cmoore at lunchbox.hellyeah.org cmoore at lunchbox.hellyeah.org
Sun Jun 23 14:57:55 PDT 2002


	Can anyone think of a reason why a module wont build automatically
with CPAN but by hand it works just fine?


<xterm-paste>

lunchbox:~# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.59_54)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Term::ReadKey
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz

... status messages

TermReadKey-2.20/ppport.h
TermReadKey-2.20/ReadKey.xs
Removing previously used /root/.cpan/build/TermReadKey-2.20

  CPAN.pm: Going to build J/JS/JSTOWE/TermReadKey-2.20.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Term::ReadKey
    -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible


* Now by hand *
lunchbox:~/.cpan/build/TermReadKey-2.20# perl Makefile.PL && make && make
test
Writing Makefile for Term::ReadKey
cp ReadKey.pm blib/lib/Term/ReadKey.pm
AutoSplitting blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey)
/usr/bin/perl -I/usr/share/perl/5.6.1 genchars.pl

... lots of messages ...

PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -w test.pl
1 .. 8
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
lunchbox:~/.cpan/build/TermReadKey-2.20# make install
Installing /usr/local/lib/perl/5.6.1/auto/Term/ReadKey/ReadKey.bs
Installing /usr/local/lib/perl/5.6.1/auto/Term/ReadKey/ReadKey.so
Files found in blib/arch: installing files in blib/lib into architecture
dependent library tree

.. etc ..

</xterm-paste>

	The module loads fine with a test script.  It just refuses to
build via CPAN.  Any ideas?  Below my sig is the full cut and paste from
the xterm in case I left something vital out.  It's pretty big so I
apologise in advance if it makes your eyes bleed or your machine to
execute instruction HCF.

	This doesn't just happen with Term::ReadKey by the way.  I just
used it as an example because it has no module dependencies that I haven't
already met.

	Also, the machine is running Debian 3.0 x86, kernel 2.4.18-bf2.4, 
gcc 2.95.4 20011002, GNU make 3.79.1, and perl 5.6.1.

-cm
--
Clint Moore
cmoore at hellyeah.org



---

lunchbox:~# perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.59_54)
ReadLine support available (try 'install Bundle::CPAN')

cpan> install Term::ReadKey
Going to read /root/.cpan/sources/authors/01mailrc.txt.gz
Going to read /root/.cpan/sources/modules/02packages.details.txt.gz
  Database was generated on Sun, 23 Jun 2002 19:10:28 GMT
  HTTP::Date not available

  There's a new CPAN.pm version (v1.61) available!
  [Current version is v1.59_54]
  You might want to try
    install Bundle::CPAN
    reload cpan
  without quitting the current session. It should be a seamless upgrade
  while we are running...

Going to read /root/.cpan/sources/modules/03modlist.data.gz
Running install for module Term::ReadKey
Running make for J/JS/JSTOWE/TermReadKey-2.20.tar.gz

  CPAN: MD5 security checks disabled because MD5 not installed.
  Please consider installing the MD5 module.

Scanning cache /root/.cpan/build for sizes
TermReadKey-2.20/
TermReadKey-2.20/genchars.pl
TermReadKey-2.20/README
TermReadKey-2.20/MANIFEST
TermReadKey-2.20/test.pl
TermReadKey-2.20/ReadKey.pm
TermReadKey-2.20/Makefile.PL
TermReadKey-2.20/Configure.pm
TermReadKey-2.20/ppport.h
TermReadKey-2.20/ReadKey.xs
Removing previously used /root/.cpan/build/TermReadKey-2.20

  CPAN.pm: Going to build J/JS/JSTOWE/TermReadKey-2.20.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for Term::ReadKey
    -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

cpan> quit
Lockfile removed.
ls
lunchbox:~# ls
lunchbox:~# cd .cpan/
lunchbox:~/.cpan# ls
Bundle  build  sources
lunchbox:~/.cpan# cd build/
lunchbox:~/.cpan/build# ls
Archive-Tar-0.22    Compress-Zlib-1.16         Test-Simple-0.45
Bundle-libnet-1.00  Term-ReadLine-Perl-1.0203  libnet-1.12
CPAN-1.61           TermReadKey-2.20           libwww-perl-5.65
CPAN-WAIT-0.27      Test-Harness-2.26
lunchbox:~/.cpan/build# cd TermReadKey-2.20/
lunchbox:~/.cpan/build/TermReadKey-2.20# ls
Configure.pm  Makefile     README      ReadKey.xs   ppport.h
MANIFEST      Makefile.PL  ReadKey.pm  genchars.pl  test.pl
lunchbox:~/.cpan/build/TermReadKey-2.20# perl Makefile.PL 
Writing Makefile for Term::ReadKey
lunchbox:~/.cpan/build/TermReadKey-2.20# make
cp ReadKey.pm blib/lib/Term/ReadKey.pm
AutoSplitting blib/lib/Term/ReadKey.pm (blib/lib/auto/Term/ReadKey)
/usr/bin/perl -I/usr/share/perl/5.6.1 genchars.pl

Writing termio/termios section of cchars.h... Done.
Checking for sgtty...
        Sgtty NOT found.
Writing sgtty section of cchars.h... Done.
/usr/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1
/usr/share/perl/5.6.
1/ExtUtils/xsubpp -noprototypes -typemap
/usr/share/perl/5.6.1/ExtUtils/typemap 
ReadKey.xs > ReadKey.xsc && mv ReadKey.xsc ReadKey.c
cc -c  -DDEBIAN -fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D
_FILE_OFFSET_BITS=64 -O2   -DVERSION=\"2.20\" -DXS_VERSION=\"2.20\" -fPIC
-I/usr
/lib/perl/5.6.1/CORE  ReadKey.c
Running Mkbootstrap for Term::ReadKey ()
chmod 644 ReadKey.bs
rm -f blib/arch/auto/Term/ReadKey/ReadKey.so
LD_RUN_PATH="" cc  -shared -L/usr/local/lib ReadKey.o  -o
blib/arch/auto/Term/Re
adKey/ReadKey.so     
chmod 755 blib/arch/auto/Term/ReadKey/ReadKey.so
cp ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs
chmod 644 blib/arch/auto/Term/ReadKey/ReadKey.bs
Manifying blib/man3/Term::ReadKey.3pm
lunchbox:~/.cpan/build/TermReadKey-2.20# apt-cache search sgtty
lunchbox:~/.cpan/build/TermReadKey-2.20# make test
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl/5.6.1 -I/
usr/share/perl/5.6.1 -w test.pl
1 .. 8
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
lunchbox:~/.cpan/build/TermReadKey-2.20# make install
Installing /usr/local/lib/perl/5.6.1/auto/Term/ReadKey/ReadKey.bs
Installing /usr/local/lib/perl/5.6.1/auto/Term/ReadKey/ReadKey.so
Files found in blib/arch: installing files in blib/lib into architecture
depende
nt library tree
Installing /usr/local/lib/perl/5.6.1/auto/Term/ReadKey/autosplit.ix
Installing /usr/local/lib/perl/5.6.1/Term/ReadKey.pm
Installing /usr/local/man/man3/Term::ReadKey.3pm
Writing /usr/local/lib/perl/5.6.1/auto/Term/ReadKey/.packlist
Appending installation info to /usr/local/lib/perl/5.6.1/perllocal.pod






More information about the PLUG mailing list