cancel
Showing results for 
Search instead for 
Did you mean: 

Saprfc.so undefined symbol load error

Former Member
0 Kudos

Hi, i'm trying to get the Ruby rfc connetor (0.36) to work, i've spent all day clawing my way through step after step to get it to finally compile and install. When i run the test.rb I get the following:

<i>:~/lib/Ruby-saprfc-0.36/test$ ruby test.rbdirs: ["./ext/saprfc", "/usr/local/lib/site_ruby/1.8", "/usr/local/lib/site_ruby/1.8/i486-linux", "/usr/local/lib/site_ruby/1.8/i386-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i486-linux", "/usr/lib/ruby/1.8/i386-linux", "."]

/usr/local/lib/site_ruby/1.8/i486-linux/saprfc.so: /usr/local/lib/site_ruby/1.8/i486-linux/saprfc.so: undefined symbol: __throw - /usr/local/lib/site_ruby/1.8/i486-linux/saprfc.so (LoadError)

from /usr/local/lib/site_ruby/1.8/SAP/Rfc.rb:130

from test.rb:6:in `require'

from test.rb:6</i>

Any insite? Its the end of the day, and thought I would throw this out to anyone that might have a suggestion.

I should point out that most of my problems were trying to get information and downloads from SAP not necessarily this Ruby library until now.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Firstly = why not use sapnwrfc? it supersedes saprfc.

The error you have is showing missing symbols - this usually means that some sort of library that should have been linked in at compile time ha not been found. Can you show me the output from when you built the library?

Former Member
0 Kudos

Ok, i took your suggestion about sapnwrfc and I think it worked (see below). I thought we were too far behind for your nw release.

A couple questions:

What is this connection param: <i>tpname: wibble.rfcexec</i>

Also can we use all the connection params like in jco?

More specifically:

<i>jco.client.r3name

jco.client.group</i>

Anyway thanks for the help, very good work on this, i'm very enthused about this scripting progress.

test_connect output:

<i>

stderr initialized

Loaded suite test/test_connect

Started

W, [2007-05-18 13:51:25#17845] WARN -- : end of test 1

.W, [2007-05-18 13:51:25#17845] WARN -- : end of test 2

.W, [2007-05-18 13:51:27#17845] WARN -- : end of test 3.1

W, [2007-05-18 13:51:29#17845] WARN -- : end of test 3.2

W, [2007-05-18 13:51:30#17845] WARN -- : end of test 3.3

W, [2007-05-18 13:51:32#17845] WARN -- : end of test 3.4

.W, [2007-05-18 13:51:35#17845] WARN -- : end of test 4

.

Finished in 20.181342 seconds.

4 tests, 405 assertions, 0 failures, 0 errors

</i>

Former Member
0 Kudos

YOur connection test look fine, if you wanted to run the complete testsuite then all you need to do is run test/testsuite.rb.

For sapnwrfc as at version 0.16 (uploaded today) the complete list of accepted parameters (emulating what is described in the nw RFCSDK sapnwrfc.h file) are described here => http://www.piersharding.com/download/ruby/sapnwrfc/doc/files/lib/sapnwrfc/config_rb.html.

Piers Harding.

Answers (0)