unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* guile and readline-5.1
@ 2006-03-10 10:22 Charles Ballard
  2006-03-14 22:25 ` Kevin Ryde
  0 siblings, 1 reply; 4+ messages in thread
From: Charles Ballard @ 2006-03-10 10:22 UTC (permalink / raw)
  Cc: emsley

Dear All,

I am a newbie to this list, so please forgive me if this is old hat.   
I did check the archives and did a google search on the subject.

I have been trying to get guile up on a macTel box.  I initially  
started with 1.8, but my libtool could not handle guile.c line 91, so  
dropped back to 1.6.7.  After the standard guile.c hack (array to  
pointer), and _SOCKLEN_T defines, I hit the usual editline vs  
readline library problem.  To get around this I downloaded 5.1 from  
the gnu site, which resolved all bar one of the issues.   
_rl_init_argument seems to have been replaced by _rl_reset_argument.  So

diff readline.c-orig readline.c
94a95,97
 > #if defined (RL_VERSION_MAJOR) && ( RL_VERSION_MAJOR > 4)
 > extern int _rl_reset_argument ();
 > #else
95a99
 > #endif
123c127,131
<   _rl_init_argument ();
---
 > #if defined (RL_VERSION_MAJOR) && ( RL_VERSION_MAJOR > 4)
 >   _rl_reset_argument ();
 > #else
 >   _rl_init_argument()
 > #endif

gets around the compilation at least.

Charles Ballard




_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: guile and readline-5.1
  2006-03-10 10:22 guile and readline-5.1 Charles Ballard
@ 2006-03-14 22:25 ` Kevin Ryde
  2006-03-15 13:50   ` Charles Ballard
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Ryde @ 2006-03-14 22:25 UTC (permalink / raw)
  Cc: bug-guile

Charles Ballard <C.C.Ballard@dl.ac.uk> writes:
>
> I downloaded 5.1 from
> the gnu site, which resolved all bar one of the issues.
> _rl_init_argument seems to have been replaced by _rl_reset_argument.

Looks like the code in question in guile is designed as a fallback for
ancient realine 2.1 and 2.2, and shouldn't be getting used at all with
readline 5.1.

Please see whether configure has detected rl_cleanup_after_signal(),
and put -DHAVE_RL_CLEANUP_AFTER_SIGNAL=1 into "DEFS" in the generated
Makefile.  The stuff in config.log should give a hint what went wrong
if that function wasn't detected, post the relevant part if so.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: guile and readline-5.1
  2006-03-14 22:25 ` Kevin Ryde
@ 2006-03-15 13:50   ` Charles Ballard
  2006-03-21  1:01     ` Kevin Ryde
  0 siblings, 1 reply; 4+ messages in thread
From: Charles Ballard @ 2006-03-15 13:50 UTC (permalink / raw)
  Cc: bug-guile

Perfectly correct, the configure test is against the BSD editline 
version of libreadline, as against the compilation against readline-5.1 
.  A little bit of hacking in the configure and 
HAVE_RL_CLEANUP_AFTER_SIGNAL was set (any chance of an AC_ARG_WITH 
readline prefix in the configure)

Thanks for clarifying things,

Charles Ballard

On Tuesday, March 14, 2006, at 10:25 PM, Kevin Ryde wrote:

> Charles Ballard <C.C.Ballard@dl.ac.uk> writes:
>>
>> I downloaded 5.1 from
>> the gnu site, which resolved all bar one of the issues.
>> _rl_init_argument seems to have been replaced by _rl_reset_argument.
>
> Looks like the code in question in guile is designed as a fallback for
> ancient realine 2.1 and 2.2, and shouldn't be getting used at all with
> readline 5.1.
>
> Please see whether configure has detected rl_cleanup_after_signal(),
> and put -DHAVE_RL_CLEANUP_AFTER_SIGNAL=1 into "DEFS" in the generated
> Makefile.  The stuff in config.log should give a hint what went wrong
> if that function wasn't detected, post the relevant part if so.
>



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: guile and readline-5.1
  2006-03-15 13:50   ` Charles Ballard
@ 2006-03-21  1:01     ` Kevin Ryde
  0 siblings, 0 replies; 4+ messages in thread
From: Kevin Ryde @ 2006-03-21  1:01 UTC (permalink / raw)
  Cc: bug-guile

Charles Ballard <C.C.Ballard@dl.ac.uk> writes:
>
> (any chance of an AC_ARG_WITH readline prefix in the configure)

Probably not.

But ripping out the old rl_cleanup_after_signal compatibility bit
would be a possibility.  If that would either then work straight away
with editline, or would fail in some cleaner way.


_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-03-21  1:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-10 10:22 guile and readline-5.1 Charles Ballard
2006-03-14 22:25 ` Kevin Ryde
2006-03-15 13:50   ` Charles Ballard
2006-03-21  1:01     ` Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).