Git Product home page Git Product logo

ffi-otr's People

Contributors

mhanne avatar postmodern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mhanne

ffi-otr's Issues

dyld: Symbol not found

Hi,

I'm not sure whether my problem relates to libotr, ffi, or ffi-otr, so I figured you might at least direct me to the right place.

With this Gemfile

gem "ffi", "1.0.11"
gem "ffi-otr", :git => "git://github.com/sophsec/ffi-otr.git", :branch => "master"

and this code

require 'ffi/otr'

user_state = FFI::OTR.otrl_userstate_create
FFI::OTR.otrl_privkey_generate user_state, 'private_key.txt', 'myaccount', 'myprotocol'

I get the following error (using bundle exec ruby otr.rb)

dyld: lazy symbol binding failed: Symbol not found: _otrl_privkey_generate_FILEp
  Referenced from: /usr/local/lib/libotr.dylib
  Expected in: flat namespace

dyld: Symbol not found: _otrl_privkey_generate_FILEp
  Referenced from: /usr/local/lib/libotr.dylib
  Expected in: flat namespace

(the file private_key.txt is actually even created, but it's empty)

First, I installed libotr via homebrew and fiddled with LD_LIBRARY_PATH to get some output at all, but even when I used ./configure && make && install in libotr, I get the linking error above.

Is there some way to get around this? As a matter of fact, I'm wandering what you use the Ruby-libotr-binding for yourself :)

I appreciate any hints.

My configuration:

libotr-3.2.0
Darwin Kernel Version 11.2.0: [...]; root:xnu-1699.24.8~1/RELEASE_X86_64 x86_64
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0] (using rbenv)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.