{"action":"created","issue":{"url":"https://api.github.com/repos/red-data-tools/extpp/issues/3","repository_url":"https://api.github.com/repos/red-data-tools/extpp","labels_url":"https://api.github.com/repos/red-data-tools/extpp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/red-data-tools/extpp/issues/3/comments","events_url":"https://api.github.com/repos/red-data-tools/extpp/issues/3/events","html_url":"https://github.com/red-data-tools/extpp/issues/3","id":299015671,"number":3,"title":"Error when trying to reference module","user":{"login":"paulsuk","id":14930640,"avatar_url":"https://avatars2.githubusercontent.com/u/14930640?v=4","gravatar_id":"","url":"https://api.github.com/users/paulsuk","html_url":"https://github.com/paulsuk","followers_url":"https://api.github.com/users/paulsuk/followers","following_url":"https://api.github.com/users/paulsuk/following{/other_user}","gists_url":"https://api.github.com/users/paulsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/paulsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulsuk/subscriptions","organizations_url":"https://api.github.com/users/paulsuk/orgs","repos_url":"https://api.github.com/users/paulsuk/repos","events_url":"https://api.github.com/users/paulsuk/events{/privacy}","received_events_url":"https://api.github.com/users/paulsuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-21T15:32:26Z","updated_at":"2018-02-22T00:52:27Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm having two separate additional issues when I try to 'require' my extension\r\n\r\n1) when using your provided 'hello' example:\r\n```\r\n$ ruby extconf.rb;make;ruby -r ./hello -e 'p Hello.new(\"me\").greet'\r\nchecking --enable-debug-build option... no\r\nchecking g++ version... 9 (gnu++14)\r\ncreating Makefile\r\nlinking shared-object hello.bundle\r\n/Users/evichat2/Documents/Workspace/extpp_test/hello.bundle: [BUG] Segmentation fault at 0x00000000000438\r\nruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin17]\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\nDon't forget to include the above Crash Report log file in bug reports.\r\n\r\n-- Control frame information -----------------------------------------------\r\nc:0004 p:-17589875659002 s:0019 e:000018 TOP    [FINISH]\r\nc:0003 p:---- s:0017 e:000016 CFUNC  :require\r\nc:0002 p:0132 s:0013 e:000012 METHOD /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59 [FINISH]\r\nc:0001 p:0000 s:0002 E:001430 (none) [FINISH]\r\n\r\n-- Ruby level backtrace information ----------------------------------------\r\n/Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'\r\n/Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'\r\n\r\n-- Machine register context ------------------------------------------------\r\n rax: 0x0000000000000030 rbx: 0x0000000105f33ed0 rcx: 0x0000000000000000\r\n rdx: 0xfffffffffffffff0 rdi: 0x0000000000000030 rsi: 0x0000000000000000\r\n rbp: 0x00007ffeea1376a0 rsp: 0x00007ffeea1376a0  r8: 0x00000000bb40213f\r\n  r9: 0x0000000000000017 r10: 0x0000000080000000 r11: 0x00007ffbb4000000\r\n r12: 0x00007ffbb28da620 r13: 0x00007ffbb2904790 r14: 0x0000000000000005\r\n r15: 0x00007ffbb28e1998 rip: 0x00007fff3422384b rfl: 0x0000000000010246\r\n\r\n-- C level backtrace information -------------------------------------------\r\n0   libruby.2.3.0.dylib                 0x0000000105c72909 rb_vm_bugreport + 377\r\n1   libruby.2.3.0.dylib                 0x0000000105b14d54 rb_bug_context + 452\r\n2   libruby.2.3.0.dylib                 0x0000000105be7064 sigsegv + 68\r\n3   libsystem_platform.dylib            0x00007fff509b2f5a _sigtramp + 26\r\n4   Ruby                                0x00007fff3422384b ruby_xmalloc + 17\r\n5   ???                                 0x00007ffeea1376c0 0x0 + 140732825564864\r\n\r\n-- Other runtime information -----------------------------------------------\r\n\r\n* Loaded script: -e\r\n\r\n* Loaded features:\r\n\r\n    0 enumerator.so\r\n    1 thread.rb\r\n    2 rational.so\r\n    3 complex.so\r\n    4 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin17/enc/encdb.bundle\r\n    5 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin17/enc/trans/transdb.bundle\r\n    6 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/unicode_normalize.rb\r\n    7 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin17/rbconfig.rb\r\n    8 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/compatibility.rb\r\n    9 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/defaults.rb\r\n   10 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/deprecate.rb\r\n   11 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/errors.rb\r\n   12 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/version.rb\r\n   13 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/requirement.rb\r\n   14 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/platform.rb\r\n   15 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/basic_specification.rb\r\n   16 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/stub_specification.rb\r\n   17 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/util/list.rb\r\n   18 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin17/stringio.bundle\r\n   19 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/rfc2396_parser.rb\r\n   20 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/rfc3986_parser.rb\r\n   21 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/common.rb\r\n   22 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/generic.rb\r\n   23 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/ftp.rb\r\n   24 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/http.rb\r\n   25 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/https.rb\r\n   26 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/ldap.rb\r\n   27 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/ldaps.rb\r\n   28 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri/mailto.rb\r\n   29 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/uri.rb\r\n   30 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/specification.rb\r\n   31 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/exceptions.rb\r\n   32 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/dependency.rb\r\n   33 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_gem.rb\r\n   34 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/monitor.rb\r\n   35 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb\r\n   36 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems.rb\r\n   37 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/path_support.rb\r\n   38 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/bundler_version_finder.rb\r\n   39 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/util.rb\r\n   40 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/version.rb\r\n   41 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/core_ext/name_error.rb\r\n   42 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/levenshtein.rb\r\n   43 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/jaro_winkler.rb\r\n   44 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkable.rb\r\n   45 /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/delegate.rb\r\n   46 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb\r\n   47 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb\r\n   48 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/name_error_checkers.rb\r\n   49 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/method_name_checker.rb\r\n   50 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/spell_checkers/null_checker.rb\r\n   51 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean/formatter.rb\r\n   52 /Users/evichat2/.rvm/gems/ruby-2.3.0@global/gems/did_you_mean-1.0.0/lib/did_you_mean.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\nAbort trap: 6\r\n```\r\n\r\nI get this segmentation fault\r\n\r\n2) When I try my own example, in my own project directory, I get this issue:\r\n\r\n```\r\n$ ruby extconf.rb;make;irb\r\nchecking --enable-debug-build option... no\r\nchecking g++ version... 9 (gnu++14)\r\ncreating Makefile\r\ncompiling hello.cpp\r\ncompiling ruby_fasttext.cpp\r\nlinking shared-object hello.bundle\r\n2.3.0 :001 > require './hello'\r\nLoadError: dlopen(/Users/evichat2/Documents/Workspace/ruby_fasttext/hello.bundle, 9): Symbol not found: __ZN8fasttext10Dictionary3EOSE\r\n  Referenced from: /Users/evichat2/Documents/Workspace/ruby_fasttext/hello.bundle\r\n  Expected in: flat namespace\r\n in /Users/evichat2/Documents/Workspace/ruby_fasttext/hello.bundle - /Users/evichat2/Documents/Workspace/ruby_fasttext/hello.bundle\r\n\tfrom /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'\r\n\tfrom /Users/evichat2/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:59:in `require'\r\n\tfrom (irb):1\r\n\tfrom /Users/evichat2/.rvm/rubies/ruby-2.3.0/bin/irb:11:in `<main>'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/red-data-tools/extpp/issues/comments/367530154","html_url":"https://github.com/red-data-tools/extpp/issues/3#issuecomment-367530154","issue_url":"https://api.github.com/repos/red-data-tools/extpp/issues/3","id":367530154,"user":{"login":"kou","id":27350,"avatar_url":"https://avatars3.githubusercontent.com/u/27350?v=4","gravatar_id":"","url":"https://api.github.com/users/kou","html_url":"https://github.com/kou","followers_url":"https://api.github.com/users/kou/followers","following_url":"https://api.github.com/users/kou/following{/other_user}","gists_url":"https://api.github.com/users/kou/gists{/gist_id}","starred_url":"https://api.github.com/users/kou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kou/subscriptions","organizations_url":"https://api.github.com/users/kou/orgs","repos_url":"https://api.github.com/users/kou/repos","events_url":"https://api.github.com/users/kou/events{/privacy}","received_events_url":"https://api.github.com/users/kou/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T00:52:27Z","updated_at":"2018-02-22T00:52:27Z","author_association":"OWNER","body":"Can you try with `ruby extconf.rb --enable-debug-build`? It adds more debug information."}}
{"actor":{"display_login":"kou"}}