On May 7, 2005, at 1:13 AM, Yukihiro Matsumoto wrote:

> Hi,
>
> In message "Re: [ ruby-Bugs-1883 ] Build fails on OSX Tiger 10.4"
>     on Sat, 7 May 2005 04:02:14 +0900, noreply / rubyforge.org writes:
>
> |Initial Comment:
> |Tried using 1.8.2 and "latest stable" - both give same message.
> |
> |
> |compiling readline
> |gcc -fno-common -g -O2 -pipe -fno-common -DREADLINE_21_OR_LATER  - 
> I. -I../.. -I/Users/jules/Downloads/ruby -I/Users/jules/Downloads/ 
> ruby/ext/readline -DHAVE_READLINE_READLINE_H - 
> DHAVE_READLINE_HISTORY_H  -c readline.c
> |readline.c: In function 'readline_attempted_completion_function':
> |readline.c:133: error: 'rl_attempted_completion_over' undeclared  
> (first use in this function)
>
> This means libreadline on Mac OSX Tiger has no  
> rl_attempted_completion_over
> variable.  Does someone know exact version of libreadline on Tiger?

I can't tell exactly, bit I can provide you with:

/*      $NetBSD: readline.h,v 1.11 2004/01/17 17:57:40 christos Exp  
$   */
$NetBSD: history.c,v 1.25 2003/10/18 23:48:42 christos Exp $
$NetBSD: tokenizer.c,v 1.14 2003/12/05 13:37:48 lukem Exp $
$NetBSD: readline.c,v 1.46 2004/02/27 14:52:18 christos Exp $

and:

526 % nm libreadline.dylib  | grep rl_att
a69a30c0 D _rl_attempted_completion_function
a69a30ac D _rl_attempted_completion_over

and:

558 % grep attempted readline.h
extern CPPFunction      *rl_attempted_completion_function;

so, it looks like it is actually available, but not declared in the  
header for some reason.

--
ryand-ruby / zenspider.com - Seattle.rb - http://www.zenspider.com/ 
seattle.rb
http://blog.zenspider.com/ - http://rubyforge.org/projects/ruby2c