Bugs: Browse | Submit New | Admin

[#28565] STR2CSTR has been removed in Ruby 1.9.2

Date:
2010-09-14 20:39
Priority:
3
Submitted By:
Timothy Palpant (timpalpant)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
STR2CSTR has been removed in Ruby 1.9.2

Detailed description
The rb-gsl library makes use of STR2CSTR, which has been removed in 1.9.2, causing the library to fail like the following
at runtime:

dyld: lazy symbol binding failed: Symbol not found: _STR2CSTR
  Referenced from: /opt/local/lib/ruby1.9/site_ruby/1.9.1/x86_64-darwin10/rb_gsl.bundle
  Expected in: flat namespace

dyld: Symbol not found: _STR2CSTR
  Referenced from: /opt/local/lib/ruby1.9/site_ruby/1.9.1/x86_64-darwin10/rb_gsl.bundle
  Expected in: flat namespace

Trace/BPT trap


As per: http://www.ruby-forum.com/topic/215406, this function call should be replaced with StringValuePtr, although
I have not tested the fix.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2010-09-29 04:55
Sender: Yoshiki Tsunesada

Thank you for the report.
I fixed it in the new release 1.14.4.
Date: 2010-09-14 20:55
Sender: Timothy Palpant

Actually, I just tested the "fix" by checking out the
code from SVN, doing a
"Replace All" on the string "STR2CSTR" with
"StringValuePtr" and recompiling. It
seems to fix the problem.

Also, the problem can be easily reproduced by running the example:
interp/demo.rb (which is how I found it)

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item