relocation error: nimage_c.so: undefined symbol: str2cstr

A

ara howard

rubyists-

i've compiled the ruby narray and nimage packages and am attempting to run one
of the demo programs but keep getting these types of errors:

ruby: relocation error:
/data/ruby-1.8.0//lib/ruby/site_ruby/1.8/i686-linux/nimage_c.so: undefined
symbol: str2cstr

now, it's been while since i did any ruby/c bindings, but shouldn't this
symbol be available in any running ruby program? an ldd of the lib shows

libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40020000)
libdl.so.2 => /lib/libdl.so.2 (0x400f6000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x400f9000)
libm.so.6 => /lib/i686/libm.so.6 (0x40126000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

so it would seem that it is, in fact, expecte that str2cstr should be found
withing the libs loaded by ruby itself. has this method vanished or something?

-a

ps. please cc me at the address below on any reply as our news server is down...


--

ATTN: please update you address books with address below!

===============================================================================
| EMAIL :: Ara.T.Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| ADDRESS :: E/GC2 325 Broadway, Boulder, CO 80305-3328
| STP :: http://www.ngdc.noaa.gov/stp/
| NGDC :: http://www.ngdc.noaa.gov/
| NESDIS :: http://www.nesdis.noaa.gov/
| NOAA :: http://www.noaa.gov/
| US DOC :: http://www.commerce.gov/
|
| The difference between art and science is that science is what we
| understand well enough to explain to a computer.
| Art is everything else.
| -- Donald Knuth, "Discover"
|
| /bin/sh -c 'for l in ruby perl;do $l -e "print \"\x3a\x2d\x29\x0a\"";done'
===============================================================================
 
T

ts

a> ruby: relocation error:
a> /data/ruby-1.8.0//lib/ruby/site_ruby/1.8/i686-linux/nimage_c.so: undefined
a> symbol: str2cstr

svg% grep str2cstr ruby/ruby-1.6.8/*.h
ruby/ruby-1.6.8/ruby.h:char *rb_str2cstr _((VALUE,int*));
ruby/ruby-1.6.8/ruby.h:#define str2cstr(x,l) rb_str2cstr((VALUE)(x),(l))
ruby/ruby-1.6.8/ruby.h:#define STR2CSTR(x) rb_str2cstr((VALUE)(x),0)
svg%

svg% grep str2cstr ruby/ruby-1.8.0/*.h
ruby/ruby-1.8.0/ruby.h:char *rb_str2cstr _((VALUE,long*));
ruby/ruby-1.8.0/ruby.h:#define STR2CSTR(x) rb_str2cstr((VALUE)(x),0)
svg%
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top