Mitchell Hashimoto
2010-Oct-08 07:00 UTC
[libvirt-users] Mac OS X: dyld: lazy symbol binding failed
I'm using the Ruby/FFI libvirt library and getting this consistently on Mac OS X: ruby-1.9.2-p0 > FFI::Libvirt.virInitialize dyld: lazy symbol binding failed: Symbol not found: _virThreadInitialize Referenced from: /usr/local/lib/libvirt.dylib Expected in: flat namespace dyld: Symbol not found: _virThreadInitialize Referenced from: /usr/local/lib/libvirt.dylib Expected in: flat namespace Trace/BPT trap I exported DYLD_PRINT_LIBRARIES and it shows that libvirt.dylib is loaded in the process space, but the above still occurs. When I statically link into a C program it works fine, however. Anyone have any idea what could be causing this? If this doesn't get a response, I'll post it to the dev list, since its perhaps relevant to them as well. Thanks, Mitchell
Justin Clift
2010-Oct-08 07:35 UTC
[libvirt-users] Mac OS X: dyld: lazy symbol binding failed
On 10/08/2010 06:00 PM, Mitchell Hashimoto wrote:> I'm using the Ruby/FFI libvirt library and getting this consistently > on Mac OS X: > > ruby-1.9.2-p0> FFI::Libvirt.virInitialize > dyld: lazy symbol binding failed: Symbol not found: _virThreadInitialize > Referenced from: /usr/local/lib/libvirt.dylib > Expected in: flat namespace > > dyld: Symbol not found: _virThreadInitialize > Referenced from: /usr/local/lib/libvirt.dylib > Expected in: flat namespace > > Trace/BPT trap > > I exported DYLD_PRINT_LIBRARIES and it shows that libvirt.dylib is > loaded in the process space, but the above still occurs. When I > statically link into a C program it works fine, however. Anyone have > any idea what could be causing this? > > If this doesn't get a response, I'll post it to the dev list, since > its perhaps relevant to them as well.Hi Mitchell, Which build of libvirt do you have on the OSX box? Asking because some work has been happening recently to get libvirt into the Homebrew packaging (on OSX). The version added yesterday (0.8.4-6) is the latest one, so I'm thinking it might be worth trying that if you're using an older version? Regards and best wishes, Justin Clift
Seemingly Similar Threads
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
- MySQL rake db:migrate gives me dyld: lazy symbol binding failed: Symbol not found: _mysql_init
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
- [LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range