View Single Post
  #1  
Old 05-15-2009, 01:56 AM
priestjim priestjim is offline
Senior Member
 
Join Date: Mar 2009
Location: Athens, Greece
Posts: 60
Default Failure to compile ruby-lsapi on LS4.03/Ruby 1.9

Hi!

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
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.
__________________
Web hosting, Domain Names, VPS and Dedicated Servers in one of the most secure, reliable, fast and low-cost web hosting services in the European market.

:: dnHost Interactive Agency :: Supporting and providing Litespeed Web Server in all shared hosting and VPS servers since 2008 ::
Reply With Quote