[RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries

Linux linux at piard.de
Tue Apr 8 21:25:06 EDT 2008


Hi Reid,

thanks for your reply.

I build the gem and installed it but unfortunately I get the same errors.

I built it like this:
gem build rubywmq.gemspec
  Successfully built RubyGem
  Name: rubywmq
  Version: 0.3.0
  File: rubywmq-0.3.0.gem

[root at xyz trunk]# ls -la
total 128
drwxr-xr-x 7 root root  4096 2008-04-09 03:21 .
drwxr-xr-x 3 root root  4096 2008-04-09 03:20 ..
-rw-r--r-- 1 root root   151 2008-04-09 03:20 .document
drwxr-xr-x 3 root root  4096 2008-04-09 03:20 examples
drwxr-xr-x 5 root root  4096 2008-04-09 03:20 ext
drwxr-xr-x 3 root root  4096 2008-04-09 03:20 lib
-rw-r--r-- 1 root root   584 2008-04-09 03:20 LICENSE
-rw-r--r-- 1 root root   402 2008-04-09 03:20 Manifest.txt
-rw-r--r-- 1 root root   389 2008-04-09 03:20 .project
-rw-r--r-- 1 root root  2443 2008-04-09 03:20 README
-rw-r--r-- 1 root root 59392 2008-04-09 03:21 rubywmq-0.3.0.gem
-rw-r--r-- 1 root root  8153 2008-04-09 03:20 rubywmq-0.3.0-x86_64-linux.gem
-rw-r--r-- 1 root root  1027 2008-04-09 03:20 rubywmq.binary.gemspec
-rw-r--r-- 1 root root   761 2008-04-09 03:20 rubywmq.gemspec
drwxr-xr-x 6 root root  4096 2008-04-09 03:20 .svn
drwxr-xr-x 3 root root  4096 2008-04-09 03:20 tests

and installed it with 'gem install rubywmq-0.3.0.gem' and it was 
installed like expected.

ruby get_a.rb
get_a.rb:23:in `connect': WMQ::QueueManager#connect(). Failed to load MQ 
Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong ELF 
class: ELFCLASS32 (WMQ::WMQException)
        from get_a.rb:23


Did I do something wrong?



bye
Henry


Reid Morrison wrote:
>
> Hi Henry,
>
>  
>
> Several fixes were applied to trunk to address the 64 Bit Linux 
> distribution.
>
>  
>
> If possible, can you try building from trunk. If it works 
> successfully, I will put out a new gem with the latest updates.
>
>  
>
> To checkout the latest code:
>
> svn checkout svn://rubyforge.org/var/svn/rubywmq/trunk
>
>  
>
> Let me know if you would prefer a private email with a zip file 
> containing the sources or updated gem.
>
>  
>
> Regards
>
> Reid
>
>  
>
> *From:* rubywmq-misc-bounces at rubyforge.org 
> [mailto:rubywmq-misc-bounces at rubyforge.org] *On Behalf Of *linux linux
> *Sent:* Tuesday, April 08, 2008 2:18 PM
> *To:* rubywmq-misc at rubyforge.org
> *Subject:* Re: [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries
>
>  
>
> OK - I changed in wmq_mq_load.c for linux:
> #define MQ_LIBRARY_SERVER "libmqm_r.so"
> #define MQ_LIBRARY_CLIENT "lib/libmqic_r.so"
>
> to
>
> #define MQ_LIBRARY_SERVER "/op/mqm/lib/libmqm_r.so"
> #define MQ_LIBRARY_CLIENT "/opt/mqm/lib/libmqic_r.so"
>
> and re-compiled.
>
> But now this:
>
> 1) Error:
> test_1(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong 
> ELF class: ELFCLASS32
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   2) Error:
> test_1(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   3) Error:
> test_cics(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong 
> ELF class: ELFCLASS32
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   4) Error:
> test_cics(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   5) Error:
> test_dlh(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong 
> ELF class: ELFCLASS32
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   6) Error:
> test_dlh(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   7) Error:
> test_dynamic_buffer(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:/opt/mqm/lib/libmqm_r.so, rc=/opt/mqm/lib/libmqm_r.so: wrong 
> ELF class: ELFCLASS32
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>
> end so on.
>
>
>
> bye
> Henry
> ----- original message --------
>
> *Subject:* [RubyWMQ-Misc] rubywmq on 64bit system with 32 bit MQSeries
> *Sent:* Tue, 08 Apr 2008
> *From:* linux linux
>
> Hi al,,
>
> I would really appreciate any kind of help to get this run:
> uname -a
> 2.6.20.16 #1 SMP Wed Aug 22 12:05:00 CEST 2007 x86_64 x86_64 x86_64 
> GNU/Linux
>
> ruby test.rb
> Loaded suite test
> Started
> ****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E****** setup: start ******
> E****** teardown: start ******
> E
> Finished in 0.003259 seconds.
>
>   1) Error:
> test_1(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   2) Error:
> test_1(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   3) Error:
> test_cics(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   4) Error:
> test_cics(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   5) Error:
> test_dlh(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   6) Error:
> test_dlh(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   7) Error:
> test_dynamic_buffer(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>   8) Error:
> test_dynamic_buffer(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>   9) Error:
> test_exceptions(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  10) Error:
> test_exceptions(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  11) Error:
> test_execute(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  12) Error:
> test_execute(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  13) Error:
> test_ims(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  14) Error:
> test_ims(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  15) Error:
> test_mqsc(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  16) Error:
> test_mqsc(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  17) Error:
> test_multiple_headers(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  18) Error:
> test_multiple_headers(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  19) Error:
> test_put1(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  20) Error:
> test_put1(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  21) Error:
> test_q_name_hash(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  22) Error:
> test_q_name_hash(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  23) Error:
> test_queue_manager(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  24) Error:
> test_queue_manager(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  25) Error:
> test_rf_header(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  26) Error:
> test_rf_header(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  27) Error:
> test_rf_header_2(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  28) Error:
> test_rf_header_2(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  29) Error:
> test_transmission_header(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  30) Error:
> test_transmission_header(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
>  31) Error:
> test_xmit_multiple_headers(TestTest):
> WMQ::WMQException: WMQ::QueueManager#connect(). Failed to load MQ 
> Library:libmqm_r.so, rc=libmqm_r.so: cannot open shared object file: 
> No such file or directory
>     test.rb:12:in `connect'
>     test.rb:12:in `setup'
>
>  32) Error:
> test_xmit_multiple_headers(TestTest):
> NoMethodError: undefined method `close' for nil:NilClass
>     test.rb:33:in `teardown'
>
> 16 tests, 0 assertions, 0 failures, 32 errors
>
>
>
> Any suggestions?
>
>
> bye
> Henry
>
>
> --- original message end ----
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> RubyWMQ-Misc mailing list
> RubyWMQ-Misc at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rubywmq-misc
>   



More information about the RubyWMQ-Misc mailing list