Ask a Question related to Ruby, Design and Development.
-
ara howard #1
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
-
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... -
#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: ... -
#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... -
#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: ... -
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... -
ts #2
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



Reply With Quote

