relocation error: nimage_c.so: undefined symbol: str2cstr

Discussion in 'Ruby' started by ara howard, Oct 27, 2003.

  1. ara howard

    ara howard Guest

    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'
    ===============================================================================
     
    ara howard, Oct 27, 2003
    #1
    1. Advertising

  2. ara howard

    ts Guest

    >>>>> "a" == ara howard <> writes:

    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%


    --

    Guy Decoux
     
    ts, Oct 28, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tkevans
    Replies:
    0
    Views:
    2,658
    tkevans
    Feb 11, 2009
  2. Replies:
    9
    Views:
    716
    Christopher Bazley
    Jan 30, 2010
  3. Replies:
    1
    Views:
    186
    Timothy Hunter
    Jul 19, 2006
  4. Replies:
    0
    Views:
    386
  5. Replies:
    2
    Views:
    457
    Sherm Pendley
    Apr 19, 2006
Loading...

Share This Page