Skip to content

Installs, but fails to work on Mac OS X Yosemite #10

@zealot2007

Description

@zealot2007

ruby 2.1.2
net-snmp 0.2.5
libnetsnmp.25.dylib
snmpd version 5.6

Trace
$ ruby -e "require 'net-snmp'" --verbose
/Users/chenlei/.rvm/gems/ruby-2.1.2/gems/nice-ffi-0.4/lib/nice-ffi/library.rb:142: warning: shadowing outer local variable - args
/Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-inliner-0.2.4/lib/ffi-inliner/inliner.rb:3:in <module:Inliner>': Use RbConfig instead of obsolete and deprecated Config. /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-inliner-0.2.4/lib/ffi-inliner/inliner.rb:3:inmodule:Inliner': Use RbConfig instead of obsolete and deprecated Config.
/Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-inliner-0.2.4/lib/ffi-inliner/inliner.rb:9:in <module:Inliner>': Use RbConfig instead of obsolete and deprecated Config. /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-1.9.6/lib/ffi/library.rb:263: warning: method redefined; discarding old snmp_select_info /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-1.9.6/lib/ffi/library.rb:263: warning: method redefined; discarding old snmp_select_info /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-1.9.6/lib/ffi/library.rb:263: warning: method redefined; discarding old snmp_read /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-1.9.6/lib/ffi/library.rb:263: warning: method redefined; discarding old snmp_read /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-inliner-0.2.4/lib/ffi-inliner/inliner.rb:297: warning: File.exists? is a deprecated name, use File.exist? instead /Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-inliner-0.2.4/lib/ffi-inliner/inliner.rb:89:inldshared': Use RbConfig instead of obsolete and deprecated Config.
/Users/chenlei/.rvm/gems/ruby-2.1.2/gems/ffi-inliner-0.2.4/lib/ffi-inliner/inliner.rb:46: warning: File.exists? is a deprecated name, use File.exist? instead
/Users/chenlei/.rvm/gems/ruby-2.1.2/gems/net-snmp-0.2.3/lib/net/snmp/oid.rb:34: warning: method redefined; discarding old oid
dyld: lazy symbol binding failed: Symbol not found: _netsnmp_ds_set_boolean
Referenced from: /usr/lib/libnetsnmp.dylib
Expected in: flat namespace

dyld: Symbol not found: _netsnmp_ds_set_boolean
Referenced from: /usr/lib/libnetsnmp.dylib
Expected in: flat namespace

Trace/BPT trap: 5

I noticed that we have never attach_function :netsnmp_ds_set_boolean. It is just called in other methods. I google the issue, but no valid results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions