{"action":"opened","issue":{"url":"https://api.github.com/repos/reidmorrison/rubywmq/issues/16","repository_url":"https://api.github.com/repos/reidmorrison/rubywmq","labels_url":"https://api.github.com/repos/reidmorrison/rubywmq/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/reidmorrison/rubywmq/issues/16/comments","events_url":"https://api.github.com/repos/reidmorrison/rubywmq/issues/16/events","html_url":"https://github.com/reidmorrison/rubywmq/issues/16","id":146864503,"number":16,"title":"mac os support","user":{"login":"darkleaf","id":1124593,"avatar_url":"https://avatars.githubusercontent.com/u/1124593?v=3","gravatar_id":"","url":"https://api.github.com/users/darkleaf","html_url":"https://github.com/darkleaf","followers_url":"https://api.github.com/users/darkleaf/followers","following_url":"https://api.github.com/users/darkleaf/following{/other_user}","gists_url":"https://api.github.com/users/darkleaf/gists{/gist_id}","starred_url":"https://api.github.com/users/darkleaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkleaf/subscriptions","organizations_url":"https://api.github.com/users/darkleaf/orgs","repos_url":"https://api.github.com/users/darkleaf/repos","events_url":"https://api.github.com/users/darkleaf/events{/privacy}","received_events_url":"https://api.github.com/users/darkleaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-08T08:53:00Z","updated_at":"2016-04-08T08:53:00Z","closed_at":null,"body":"Hello!\r\nI use:\r\n```\r\nruby -v\r\nruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]\r\n\r\nuname -a\r\nDarwin iMac-Mihail.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root: xnu-2782.40.9 ~ 1 / RELEASE_X86_64 x86_64\r\n```\r\nBefore install, I copy rpm content to /opt.\r\n\r\nI was able to compile the extension, but it does not work.\r\nHere my dirty patch: https://github.com/darkleaf/rubywmq/commit/3ee243ade3bb9a70b1ce021f2c4856d6972b38da\r\n\r\nHere is the test code:\r\n```ruby\r\nrequire 'wmq'\r\n\r\nqmgr_options = {\r\n  transport_type: WMQ::MQXPT_TCP,\r\n  q_mgr_name: 'SOME_STRING',\r\n  channel_name: 'SOME_STRING',\r\n  connection_name: 'SOME_STRING'\r\n}\r\n\r\nqq_options = {\r\n  q_name: 'SOME_STRING',\r\n  out_q_name: 'SOME_STRING',\r\n  publish_data_q_name: 'SOME_STRING',\r\n  publish_event_q_name: 'SOME_STRING'\r\n}\r\n\r\nWMQ::QueueManager.connect(qmgr_options) do |qmgr|\r\n  qmgr.open_queue(q_name: qq_options[:q_name], :mode=>:browse) do |queue|\r\n    queue.each do |message|\r\n        p message\r\n    end\r\n  end\r\nend\r\n```\r\n\r\nThat is the output of the program:\r\n\r\n```\r\nruby test.rb \r\ntest.rb:18: [BUG] Segmentation fault at 0x000000d8c8c010\r\nruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0]\r\n\r\n-- Crash Report log information --------------------------------------------\r\n   See Crash Report log file under the one of following:\r\n     * ~/Library/Logs/CrashReporter\r\n     * /Library/Logs/CrashReporter\r\n     * ~/Library/Logs/DiagnosticReports\r\n     * /Library/Logs/DiagnosticReports\r\n   for more details.\r\n\r\n-- Control frame information -----------------------------------------------\r\nc:0003 p:---- s:0010 e:000009 CFUNC  :connect\r\nc:0002 p:0074 s:0006 E:0015f8 EVAL   test.rb:18 [FINISH]\r\nc:0001 p:0000 s:0002 E:000db8 TOP    [FINISH]\r\n\r\ntest.rb:18:in `<main>'\r\ntest.rb:18:in `connect'\r\n\r\n-- C level backtrace information -------------------------------------------\r\n0   ruby                                0x000000010666faab rb_vm_bugreport + 251\r\n1   ruby                                0x00000001064f5eb5 report_bug + 357\r\n2   ruby                                0x00000001064f61df rb_bug + 207\r\n3   ruby                                0x00000001065e2dff sigsegv + 207\r\n4   libsystem_platform.dylib            0x00007fff8b988f1a _sigtramp + 26\r\n5   libsystem_c.dylib                   0x00007fff8fbe8fb2 strlen + 18\r\n6   ???                                 0x00007fff59750bb0 0x0 + 140734694230960\r\n\r\n-- Other runtime information -----------------------------------------------\r\n\r\n* Loaded script: test.rb\r\n\r\n* Loaded features:\r\n\r\n    0 enumerator.so\r\n    1 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/enc/encdb.bundle\r\n    2 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/enc/trans/transdb.bundle\r\n    3 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/rbconfig.rb\r\n    4 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/compatibility.rb\r\n    5 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/defaults.rb\r\n    6 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/deprecate.rb\r\n    7 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/errors.rb\r\n    8 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/version.rb\r\n    9 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/requirement.rb\r\n   10 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/platform.rb\r\n   11 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/basic_specification.rb\r\n   12 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/stub_specification.rb\r\n   13 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/util/stringio.rb\r\n   14 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/specification.rb\r\n   15 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/exceptions.rb\r\n   16 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_gem.rb\r\n   17 thread.rb\r\n   18 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/x86_64-darwin13.0/thread.bundle\r\n   19 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/monitor.rb\r\n   20 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb\r\n   21 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems.rb\r\n   22 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/path_support.rb\r\n   23 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/dependency.rb\r\n   24 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubywmq-2.1.0/lib/wmq/version.rb\r\n   25 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubywmq-2.1.0/lib/wmq/constants.rb\r\n   26 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubywmq-2.1.0/lib/wmq/constants_admin.rb\r\n   27 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubywmq-2.1.0/lib/wmq/queue_manager.rb\r\n   28 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubywmq-2.1.0/lib/wmq/message.rb\r\n   29 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-13/2.1.0-static/rubywmq-2.1.0/wmq/wmq.bundle\r\n   30 /Users/m_kuzmin/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/rubywmq-2.1.0/lib/wmq.rb\r\n\r\n[NOTE]\r\nYou may have encountered a bug in the Ruby interpreter or extension libraries.\r\nBug reports are welcome.\r\nFor details: http://www.ruby-lang.org/bugreport.html\r\n\r\n[1]    37197 abort      ruby test.rb\r\n```\r\n\r\n\r\n\r\n"}}