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: 28523
Status: resolved
Priority: 0/
Queue: Term-ReadLine-Gnu

People
Owner: Nobody in particular
Requestors: jleffler [...] earthlink.net
Cc:
AdminCc:

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



Subject: Term::ReadLine::Gnu 1.16 fails to compile on MacOS X 10.4.10 - mis-identifies library version
Date: Fri, 27 Jul 2007 22:24:57 -0700
To: bug-Term-ReadLine-Gnu [...] rt.cpan.org
From: Jonathan Leffler <jleffler [...] earthlink.net>
Hi, When compiling on MacOS X 10.4.10, the output I get is: Osiris JL: perl Makefile.PL Found `/usr/lib/libtermcap.dylib'. cc -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -DHAVE_STRING_H rlver.c -o rlver -L/usr/local/lib -lreadline -ltermcap It seems that you have the GNU Readline Library version EditLine wrapper. Writing Makefile for Term::ReadLine::Gnu Osiris JL: make -n Gnu.o cc -c -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -O3 -DVERSION=\"1.16\" -DXS_VERSION=\"1.16\" "-I/Users/jleffler/perl/v5.8.8/lib/5.8.8/darwin-2level/CORE" -DHAVE_STRING_H -DRL_READLINE_VERSION=0x0000 -DRL_VERSION_MAJOR= -DRL_VERSION_MINOR= Gnu.c Osiris JL: Note in the trial compile, the RL_VERSION_MAJOR and RL_VERSION_MINOR values are blank. This leads to a huge collection of compilation problems, starting with: Gnu.xs:72:23: error: operator '<' has no left operand Gnu.xs:107: error: static declaration of 'rl_already_prompted' follows non-static declaration /usr/include/readline/readline.h:112: error: previous declaration of 'rl_already_prompted' was here Gnu.xs:152:23: error: operator '>=' has no left operand Gnu.xs:200:23: error: operator '<' has no left operand The lines with missing operands seem to correspond to tests on RL_VERSION_MAJOR... I'm not sure what extra information you need to debug this - presumably, there should be a better way of identifying the version number, but I'm not sure what you need. If you need to see what's up on MacOS X, let me know what tests to run for you. (This is Perl 5.8.8, built by me a while ago. See 'perl -V' output after sig block.) -- Jonathan Leffler (jleffler@earthlink.net) #include <disclaimer.h> Guardian of DBD::Informix v2007.0226 -- http://dbi.perl.org/ Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Platform: osname=darwin, osvers=8.4.0, archname=darwin-2level uname='darwin osiris.local 8.4.0 darwin kernel version 8.4.0: tue jan 3 18:22:10 pst 2006; root:xnu-792.6.56.obj~1release_ppc power macintosh powerpc ' config_args='' 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-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include', optimize='-O3', cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include' ccversion='', gccversion='4.0.1 (Apple Computer, Inc. build 5247)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /usr/lib libs=-ldbm -ldl -lm -lc perllibs=-ldl -lm -lc libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO Built under darwin Compiled at Feb 15 2006 19:27:48 @INC: /Users/jleffler/perl/v5.8.8/lib/5.8.8/darwin-2level /Users/jleffler/perl/v5.8.8/lib/5.8.8 /Users/jleffler/perl/v5.8.8/lib/site_perl/5.8.8/darwin-2level /Users/jleffler/perl/v5.8.8/lib/site_perl/5.8.8 /Users/jleffler/perl/v5.8.8/lib/site_perl .
Subject: Re: [rt.cpan.org #28523] Term::ReadLine::Gnu 1.16 fails to compile on MacOS X 10.4.10 - mis-identifies library version
Date: Sat, 28 Jul 2007 16:43:33 +0900
To: bug-Term-ReadLine-Gnu [...] rt.cpan.org
From: "林宏雄" <hirooih [...] gmail.com>
Hi, Show quoted text
> It seems that you have the GNU Readline Library version EditLine wrapper.
You need to have the GNU Readline Library. -- Hiroo Hayashi
On 土曜日 7月 28 03:43:48 2007, hirooih@gmail.com wrote: Show quoted text
> Hi, >
> > It seems that you have the GNU Readline Library version EditLine
wrapper. Show quoted text
> > You need to have the GNU Readline Library.
Makefile.PL in Term::ReadLine::Gnu 1.17 now detects EditLine and causes fail. This is the best solution for this issue. thanks.