From: Eric Wong Date: 2009-12-29T13:30:27+09:00 Subject: Re: ERRORs trying to install ruby-ldap on CentOS Xeno Campanoli wrote: > misc.c: In function ‘rb_ldap_get_apiinfo’: > misc.c:56: warning: implicit declaration of function ‘RARRAY_LEN’ > misc.c:60: warning: implicit declaration of function ‘RARRAY_PTR’ > misc.c:60: error: subscripted value is neither array nor pointer > misc.c:61: warning: implicit declaration of function ‘RSTRING_LEN’ > misc.c:61: warning: implicit declaration of function ‘RSTRING_PTR’ Hi Xeno, it looks like the code was ported to work with Ruby 1.9 and didn't bother maintaining 1.8.5 (or 1.8.6?) compatibility. What happens when you add the following to misc.c? #ifndef RSTRING_PTR # define RSTRING_PTR(s) (RSTRING(s)->ptr) #endif #ifndef RSTRING_LEN # define RSTRING_LEN(s) (RSTRING(s)->len) #endif -- Eric Wong