relocation error: nimage_c.so: undefined symbol: str2cstr

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default relocation error: nimage_c.so: undefined symbol: str2cstr

    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 :: [url]http://www.ngdc.noaa.gov/stp/[/url]
    | NGDC :: [url]http://www.ngdc.noaa.gov/[/url]
    | NESDIS :: [url]http://www.nesdis.noaa.gov/[/url]
    | NOAA :: [url]http://www.noaa.gov/[/url]
    | US DOC :: [url]http://www.commerce.gov/[/url]
    |
    | 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 Guest

  2. Similar Questions and Discussions

    1. Undefined symbol?
      Hey there, Wasn't sure which mailing list to send this to but maybe someone can point me in the right direction. When perl is invoked (presumably...
    2. #24664 [Opn->Csd]: relocation error: symbol not found: ap_pass_brigade
      ID: 24664 Updated by: sniper@php.net Reported By: a dot polli at mir dot it -Status: Open +Status: ...
    3. #24664 [Fbk->Opn]: relocation error: symbol not found: ap_pass_brigade
      ID: 24664 User updated by: a dot polli at mir dot it Reported By: a dot polli at mir dot it -Status: Feedback...
    4. #24664 [Opn->Fbk]: relocation error: symbol not found: ap_pass_brigade
      ID: 24664 Updated by: sniper@php.net Reported By: a dot polli at mir dot it -Status: Open +Status: ...
    5. ld 0711-317 ERROR: Undefined Symbol
      Running xlf on AIX compiling Fortran code which links to some C routines. Getting loader ld 0711-317 ERROR: Undefined Symbol message on all the C...
  3. #2

    Default Re: relocation error: nimage_c.so: undefined symbol: str2cstr

    >>>>> "a" == ara howard <ahoward@fsl.noaa.gov> 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 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139