Hi!
I am trying to compile the LSAPI Ruby support package but it fails with this error:
Tried compiling with both GCC 3.4.3 and GCC 4.1 to no avail. This happens both when trying to install through gem or manually.
I am trying to compile the LSAPI Ruby support package but it fails with this error:
Code:
---> ext
---> ext/lsapi
make
gcc -I. -I/usr/local/include/ruby-1.9.1/i686-linux -I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I/root/ruby-lsapi-3.4/ext/lsapi -D_FILE_OFFSET_BITS=64 -fPIC -O2 -g -Wall -Wno-parentheses -o lsruby.o -c lsruby.c
In file included from lsruby.c:3:
/usr/local/include/ruby-1.9.1/ruby/backward/util.h:2:2: warning: #warning use "ruby/util.h" instead of bare "util.h"
lsruby.c: In function `lsapi_write':
lsruby.c:248: error: structure has no member named `ptr'
lsruby.c:248: error: structure has no member named `len'
lsruby.c: In function `lsapi_puts_ary':
lsruby.c:301: error: structure has no member named `len'
lsruby.c:303: error: structure has no member named `ptr'
lsruby.c:304: warning: implicit declaration of function `rb_inspecting_p'
lsruby.c: In function `lsapi_puts':
lsruby.c:332: warning: implicit declaration of function `rb_protect_inspect'
lsruby.c:340: error: structure has no member named `ptr'
lsruby.c:340: error: structure has no member named `len'
lsruby.c: In function `lsapi_gets':
lsruby.c:404: error: structure has no member named `len'
lsruby.c: In function `lsapi_read':
lsruby.c:449: error: structure has no member named `len'
make: *** [lsruby.o] Error 1