You are not logged in.
I am trying to install the perl package Term::Readline::Gnu from CPAN (not the Arch package perl-term-readline, which seems to install OK). I get a segmentation fault as soon as the package is called in a script. For example, below is the output from one of the package test scripts:
me@mycomputer:~/Desktop/Term-ReadLine-Gnu-1.16$ perl t/callback.t
1..7
ok 1 loading
Segmentation fault
I am running Arch64 and keep it updated. Any thoughts?
me@mycomputer:~$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
Platform:
osname=linux, osvers=2.6.25-arch, archname=x86_64-linux-thread-multi
uname='linux workstation64 2.6.25-arch #1 smp preempt sat jun 14 17:44:19 cest 2008 x86_64 intel(r) core(tm)2 quad cpu @ 2.40ghz genuineintel gnulinux '
config_args='-des -Dusethreads -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -Dprefix=/usr -Dinstallprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl/5.10.0 -Dsitearch=/usr/lib/perl5/site_perl/5.10.0 -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dotherlibdirs=/usr/lib/perl5/current:/usr/lib/perl5/site_perl/current -Dscriptdir=/usr/bin/perlbin/core -Dsitescript=/usr/bin/perlbin/site -Dvendorscript=/usr/bin/perlbin/vendor -Dman1ext=1perl -Dman3ext=3perl -Dcccdlflags='-fPIC''
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='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-march=x86-64 -mtune=generic -O2 -pipe',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.3.1 20080626 (prerelease)', 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='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.8.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.8'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -march=x86-64 -mtune=generic -O2 -pipe -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Jun 30 2008 20:30:50
@INC:
/usr/lib/perl5/site_perl/5.10.0
/usr/share/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib/perl5/core_perl
/usr/share/perl5/core_perl
/usr/lib/perl5/current
/usr/lib/perl5/site_perl/current
.
Offline
I had this problem many months ago. The problem was I had the termcap-compat package installed. Term::Readline::Gnu automatically detects the library file provided by termcap-compat and links to it. Yet the library provided is just a fake version of an old library (hence 'compat') and doesn't work how Term::Readline::Gnu expects. Then, catastrophic failure!
Remove termcap-compat and all should be well. I think you can even reinstall it afterwards but I chose not to, out of vengeance!
Offline
Thanks very much--worked perfectly.
Offline
I just wanted to let you know that you can use pacpan to automatically create pacman packages from CPAN modules (in case you're installing them manually), e.g.
pacpan Term::ReadLine::Gnu
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline