Skip Menu |

This queue is for tickets about the Term-ReadLine-Gnu CPAN distribution.

Maintainer(s)' notes

When you report a bug, please provide the following information;

- output of
	perl -V
	perl Makefile.PL verbose
	make test TEST_VERBOSE=1
	perl -Mblib t/00checkver.t
	echo $TERM
- terminal emulator which you are using
- compiler which is used to compile the GNU Readline Library (libreadline.a) if you can know.
Read INSTALL in the distribution for more details.

Report information
The Basics
Id: 6896
Status: resolved
Priority: 0/
Queue: Term-ReadLine-Gnu

People
Owner: Nobody in particular
Requestors: eamon [...] eamondaly.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.14
Fixed in: (no value)



Subject: t/history fails on RedHat Enterprise ES
Default RedHat install, rebuilt perl. $ perl -v This is perl, v5.8.4 built for i686-linux $ uname -a Linux office 2.4.21-15.0.3.ELsmp #1 SMP Tue Jun 29 18:04:47 EDT 2004 i686 i686 i386 GNU/Linux Running install for module Term::ReadLine::Gnu Running make for H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz Checksum for /home/edaly/.cpan/sources/authors/id/H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz ok Term-ReadLine-Gnu-1.14/ Term-ReadLine-Gnu-1.14/eg/ Term-ReadLine-Gnu-1.14/eg/fileman Term-ReadLine-Gnu-1.14/eg/perlsh Term-ReadLine-Gnu-1.14/eg/pftp Term-ReadLine-Gnu-1.14/eg/ptksh+ Term-ReadLine-Gnu-1.14/Gnu/ Term-ReadLine-Gnu-1.14/Gnu/euc_jp.pm Term-ReadLine-Gnu-1.14/Gnu/XS.pm Term-ReadLine-Gnu-1.14/Gnu.pm Term-ReadLine-Gnu-1.14/Gnu.xs Term-ReadLine-Gnu-1.14/INSTALL Term-ReadLine-Gnu-1.14/Makefile.PL Term-ReadLine-Gnu-1.14/MANIFEST Term-ReadLine-Gnu-1.14/ppport.h Term-ReadLine-Gnu-1.14/README Term-ReadLine-Gnu-1.14/t/ Term-ReadLine-Gnu-1.14/t/button.pl Term-ReadLine-Gnu-1.14/t/callback.t Term-ReadLine-Gnu-1.14/t/comptest/ Term-ReadLine-Gnu-1.14/t/comptest/0123 Term-ReadLine-Gnu-1.14/t/comptest/012345 Term-ReadLine-Gnu-1.14/t/comptest/023456 Term-ReadLine-Gnu-1.14/t/comptest/a_b Term-ReadLine-Gnu-1.14/t/comptest/README Term-ReadLine-Gnu-1.14/t/history.t Term-ReadLine-Gnu-1.14/t/inputrc Term-ReadLine-Gnu-1.14/t/readline.t Term-ReadLine-Gnu-1.14/typemap CPAN.pm: Going to build H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz Found `/usr/lib/libtermcap.a'. cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DHAVE_STRING_H rlver.c -o rlver -L/usr/local/lib -lreadline -ltermcap It seems that you have the GNU Readline Library version 4.3. Checking if your kit is complete... Looks good Writing Makefile for Term::ReadLine::Gnu cp Gnu.pm blib/lib/Term/ReadLine/Gnu.pm cp Gnu/euc_jp.pm blib/lib/Term/ReadLine/Gnu/euc_jp.pm cp Gnu/XS.pm blib/lib/Term/ReadLine/Gnu/XS.pm AutoSplitting blib/lib/Term/ReadLine/Gnu/XS.pm (blib/lib/auto/Term/ReadLine/Gnu/XS) /usr/local/bin/perl /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.4/ExtUtils/typemap -typemap typemap Gnu.xs > Gnu.xsc && mv Gnu.xsc Gnu.c cc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.14\" -DXS_VERSION=\"1.14\" -fpic "-I/usr/local/lib/perl5/5.8.4/i686-linux/CORE" -DHAVE_STRING_H Gnu.c Running Mkbootstrap for Term::ReadLine::Gnu () chmod 644 Gnu.bs rm -f blib/arch/auto/Term/ReadLine/Gnu/Gnu.so LD_RUN_PATH="/usr/lib:/lib" cc -shared -L/usr/local/lib Gnu.o -o blib/arch/auto/Term/ReadLine/Gnu/Gnu.so -lreadline -ltermcap chmod 755 blib/arch/auto/Term/ReadLine/Gnu/Gnu.so cp Gnu.bs blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs chmod 644 blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs Manifying blib/man3/Term::ReadLine::Gnu.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/callback....ok 4/7 skipped: since Tk is not installed. t/history.....FAILED tests 73-74 Failed 2/82 tests, 97.56% okay t/readline....ok Try `/usr/local/bin/perl -Mblib t/readline.t verbose', if you will. t/readline....dubious Test returned status 0 (wstat 11, 0xb) after all the subtests completed successfully Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/history.t 82 2 2.44% 73-74 t/readline.t 0 11 104 0 0.00% ?? 4 subtests skipped. Failed 2/3 test scripts, 33.33% okay. 2/193 subtests failed, 98.96% okay. make: *** [test_dynamic] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
From: Hiroo Hayashi
read README file. Make sure GNU History library is installed. Hope this helps. [guest - Thu Jul 8 11:33:38 2004]: Show quoted text
> Default RedHat install, rebuilt perl. > > $ perl -v > This is perl, v5.8.4 built for i686-linux > > $ uname -a > Linux office 2.4.21-15.0.3.ELsmp #1 SMP Tue Jun 29 18:04:47 EDT 2004 > i686 i686 i386 GNU/Linux > > Running install for module Term::ReadLine::Gnu > Running make for H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz > Checksum for /home/edaly/.cpan/sources/authors/id/H/HA/HAYASHI/Term- > ReadLine-Gnu-1.14.tar.gz ok > Term-ReadLine-Gnu-1.14/ > Term-ReadLine-Gnu-1.14/eg/ > Term-ReadLine-Gnu-1.14/eg/fileman > Term-ReadLine-Gnu-1.14/eg/perlsh > Term-ReadLine-Gnu-1.14/eg/pftp > Term-ReadLine-Gnu-1.14/eg/ptksh+ > Term-ReadLine-Gnu-1.14/Gnu/ > Term-ReadLine-Gnu-1.14/Gnu/euc_jp.pm > Term-ReadLine-Gnu-1.14/Gnu/XS.pm > Term-ReadLine-Gnu-1.14/Gnu.pm > Term-ReadLine-Gnu-1.14/Gnu.xs > Term-ReadLine-Gnu-1.14/INSTALL > Term-ReadLine-Gnu-1.14/Makefile.PL > Term-ReadLine-Gnu-1.14/MANIFEST > Term-ReadLine-Gnu-1.14/ppport.h > Term-ReadLine-Gnu-1.14/README > Term-ReadLine-Gnu-1.14/t/ > Term-ReadLine-Gnu-1.14/t/button.pl > Term-ReadLine-Gnu-1.14/t/callback.t > Term-ReadLine-Gnu-1.14/t/comptest/ > Term-ReadLine-Gnu-1.14/t/comptest/0123 > Term-ReadLine-Gnu-1.14/t/comptest/012345 > Term-ReadLine-Gnu-1.14/t/comptest/023456 > Term-ReadLine-Gnu-1.14/t/comptest/a_b > Term-ReadLine-Gnu-1.14/t/comptest/README > Term-ReadLine-Gnu-1.14/t/history.t > Term-ReadLine-Gnu-1.14/t/inputrc > Term-ReadLine-Gnu-1.14/t/readline.t > Term-ReadLine-Gnu-1.14/typemap > > CPAN.pm: Going to build H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz > > Found `/usr/lib/libtermcap.a'. > cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DHAVE_STRING_H rlver.c > -o rlver -L/usr/local/lib -lreadline -ltermcap > It seems that you have the GNU Readline Library version 4.3. > Checking if your kit is complete... > Looks good > Writing Makefile for Term::ReadLine::Gnu > cp Gnu.pm blib/lib/Term/ReadLine/Gnu.pm > cp Gnu/euc_jp.pm blib/lib/Term/ReadLine/Gnu/euc_jp.pm > cp Gnu/XS.pm blib/lib/Term/ReadLine/Gnu/XS.pm > AutoSplitting blib/lib/Term/ReadLine/Gnu/XS.pm > (blib/lib/auto/Term/ReadLine/Gnu/XS) > /usr/local/bin/perl /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp > -typemap /usr/local/lib/perl5/5.8.4/ExtUtils/typemap -typemap > typemap Gnu.xs > Gnu.xsc && mv Gnu.xsc Gnu.c > cc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.14
\" Show quoted text
> -DXS_VERSION=\"1.14\" -fpic "-I/usr/local/lib/perl5/5.8.4/i686- > linux/CORE" -DHAVE_STRING_H Gnu.c > Running Mkbootstrap for Term::ReadLine::Gnu () > chmod 644 Gnu.bs > rm -f blib/arch/auto/Term/ReadLine/Gnu/Gnu.so > LD_RUN_PATH="/usr/lib:/lib" cc -shared -L/usr/local/lib Gnu.o -o > blib/arch/auto/Term/ReadLine/Gnu/Gnu.so -lreadline -ltermcap > chmod 755 blib/arch/auto/Term/ReadLine/Gnu/Gnu.so > cp Gnu.bs blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs > chmod 644 blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs > Manifying blib/man3/Term::ReadLine::Gnu.3 > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/callback....ok > 4/7 skipped: since Tk is not installed. > t/history.....FAILED tests 73-74 > Failed 2/82 tests, 97.56% okay > t/readline....ok Try `/usr/local/bin/perl -Mblib t/readline.t > verbose', if you will. > t/readline....dubious > Test returned status 0 (wstat 11, 0xb) > after all the subtests completed successfully > Failed Test Stat Wstat Total Fail Failed List of Failed > ---------------------------------------------------------------------
---------- Show quoted text
> t/history.t 82 2 2.44% 73-74 > t/readline.t 0 11 104 0 0.00% ?? > 4 subtests skipped. > Failed 2/3 test scripts, 33.33% okay. 2/193 subtests failed, 98.96% > okay. > make: *** [test_dynamic] Error 2 > /usr/bin/make test -- NOT OK > Running make install > make test had returned bad status, won't install without force
[guest - Thu Jul 8 11:33:38 2004]: Show quoted text
> Default RedHat install, rebuilt perl. > > $ perl -v > This is perl, v5.8.4 built for i686-linux > > $ uname -a > Linux office 2.4.21-15.0.3.ELsmp #1 SMP Tue Jun 29 18:04:47 EDT 2004 > i686 i686 i386 GNU/Linux > > Running install for module Term::ReadLine::Gnu > Running make for H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz > Checksum for /home/edaly/.cpan/sources/authors/id/H/HA/HAYASHI/Term- > ReadLine-Gnu-1.14.tar.gz ok > Term-ReadLine-Gnu-1.14/ > Term-ReadLine-Gnu-1.14/eg/ > Term-ReadLine-Gnu-1.14/eg/fileman > Term-ReadLine-Gnu-1.14/eg/perlsh > Term-ReadLine-Gnu-1.14/eg/pftp > Term-ReadLine-Gnu-1.14/eg/ptksh+ > Term-ReadLine-Gnu-1.14/Gnu/ > Term-ReadLine-Gnu-1.14/Gnu/euc_jp.pm > Term-ReadLine-Gnu-1.14/Gnu/XS.pm > Term-ReadLine-Gnu-1.14/Gnu.pm > Term-ReadLine-Gnu-1.14/Gnu.xs > Term-ReadLine-Gnu-1.14/INSTALL > Term-ReadLine-Gnu-1.14/Makefile.PL > Term-ReadLine-Gnu-1.14/MANIFEST > Term-ReadLine-Gnu-1.14/ppport.h > Term-ReadLine-Gnu-1.14/README > Term-ReadLine-Gnu-1.14/t/ > Term-ReadLine-Gnu-1.14/t/button.pl > Term-ReadLine-Gnu-1.14/t/callback.t > Term-ReadLine-Gnu-1.14/t/comptest/ > Term-ReadLine-Gnu-1.14/t/comptest/0123 > Term-ReadLine-Gnu-1.14/t/comptest/012345 > Term-ReadLine-Gnu-1.14/t/comptest/023456 > Term-ReadLine-Gnu-1.14/t/comptest/a_b > Term-ReadLine-Gnu-1.14/t/comptest/README > Term-ReadLine-Gnu-1.14/t/history.t > Term-ReadLine-Gnu-1.14/t/inputrc > Term-ReadLine-Gnu-1.14/t/readline.t > Term-ReadLine-Gnu-1.14/typemap > > CPAN.pm: Going to build H/HA/HAYASHI/Term-ReadLine-Gnu-1.14.tar.gz > > Found `/usr/lib/libtermcap.a'. > cc -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -DHAVE_STRING_H rlver.c > -o rlver -L/usr/local/lib -lreadline -ltermcap > It seems that you have the GNU Readline Library version 4.3. > Checking if your kit is complete... > Looks good > Writing Makefile for Term::ReadLine::Gnu > cp Gnu.pm blib/lib/Term/ReadLine/Gnu.pm > cp Gnu/euc_jp.pm blib/lib/Term/ReadLine/Gnu/euc_jp.pm > cp Gnu/XS.pm blib/lib/Term/ReadLine/Gnu/XS.pm > AutoSplitting blib/lib/Term/ReadLine/Gnu/XS.pm > (blib/lib/auto/Term/ReadLine/Gnu/XS) > /usr/local/bin/perl /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp > -typemap /usr/local/lib/perl5/5.8.4/ExtUtils/typemap -typemap > typemap Gnu.xs > Gnu.xsc && mv Gnu.xsc Gnu.c > cc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -DVERSION=\"1.14
\" Show quoted text
> -DXS_VERSION=\"1.14\" -fpic "-I/usr/local/lib/perl5/5.8.4/i686- > linux/CORE" -DHAVE_STRING_H Gnu.c > Running Mkbootstrap for Term::ReadLine::Gnu () > chmod 644 Gnu.bs > rm -f blib/arch/auto/Term/ReadLine/Gnu/Gnu.so > LD_RUN_PATH="/usr/lib:/lib" cc -shared -L/usr/local/lib Gnu.o -o > blib/arch/auto/Term/ReadLine/Gnu/Gnu.so -lreadline -ltermcap > chmod 755 blib/arch/auto/Term/ReadLine/Gnu/Gnu.so > cp Gnu.bs blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs > chmod 644 blib/arch/auto/Term/ReadLine/Gnu/Gnu.bs > Manifying blib/man3/Term::ReadLine::Gnu.3 > /usr/bin/make -- OK > Running make test > PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/callback....ok > 4/7 skipped: since Tk is not installed. > t/history.....FAILED tests 73-74 > Failed 2/82 tests, 97.56% okay > t/readline....ok Try `/usr/local/bin/perl -Mblib t/readline.t > verbose', if you will. > t/readline....dubious > Test returned status 0 (wstat 11, 0xb) > after all the subtests completed successfully > Failed Test Stat Wstat Total Fail Failed List of Failed > ---------------------------------------------------------------------
---------- Show quoted text
> t/history.t 82 2 2.44% 73-74 > t/readline.t 0 11 104 0 0.00% ?? > 4 subtests skipped. > Failed 2/3 test scripts, 33.33% okay. 2/193 subtests failed, 98.96% > okay. > make: *** [test_dynamic] Error 2 > /usr/bin/make test -- NOT OK > Running make install > make test had returned bad status, won't install without force
Sorry for my late reply. I missed your report. Here is the failed test in t/history.t. # The following 2 test may fail with readline-4.3 with some locale # setting. It comes from bug of the Readline Library. I sent a patch # to the maintainer. `LANG=C make test' should work. # !?red?: line including `red' ($text, $cindex) = $t->get_history_event($string, 4); $res = $cindex == 10 && $text eq 'blue red'; ok; #print "$cindex,$text\n"; # "!?blu": line including `blu' ($text, $cindex) = $t->get_history_event($string, 12, '"'); $res = $cindex == 16 && $text eq 'blue red'; ok; #print "$cindex,$text\n"; Try `LANG=C make test' or try readline-5.0.