Re: Mac OS X Lion - dyld: lazy symbol binding failed
Re: Mac OS X Lion - dyld: lazy symbol binding failed
- Subject: Re: Mac OS X Lion - dyld: lazy symbol binding failed
- From: Jack Howarth <email@hidden>
- Date: Mon, 10 Sep 2012 09:18:55 -0400
On Mon, Sep 10, 2012 at 05:24:49PM +0530, Rohitash wrote:
> Hi,
> Need some help regarding the cause of this below error :
> $ ./sqlplus /nolog
> dyld: lazy symbol binding failed: Symbol not found: _ocieiInitSrcOff
> Referenced from: rdbms/install/instantclient/libociei.dylib
> Expected in: flat namespace
>
> dyld: Symbol not found: _ocieiInitSrcOff
> Referenced from: rdbms/install/instantclient/libociei.dylib
> Expected in: flat namespace
>
> Trace/BPT trap: 5
>
>
> $ export DYLD_PRINT_APIS=1
> $ sqlplus /nolog
> _dyld_get_image_slide(0x102bf5000)
> dyld_register_image_state_change_handler(40, 1, 0x7fff88a97fb6)
> dlopen(libclntsh.dylib.11.1, 0x00000005
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=00000005>)
>
>
> dlsym(0x7fff62832288
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=62832288>,
> lfvinit)
> dladdr(0x1047f94e0, 0x7fff627d8248)
> dlopen(/ade/b/4272543511
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=4272543511>/oracle/work/instantclient_11_2/libsqlplusic.dylib,0x00000005
>
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=00000005>)
>
>
> _dyld_get_image_slide(0x102bf5000)
> dlclose(0x7fff62832288
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=62832288>)
>
>
> dlsym(0x7fc800404ae0, sqlplusicInit)
> dlopen(libclntsh.dylib.11.1, 0x00000005
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=00000005>)
>
>
> dlsym(0x7fff62832288
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=62832288>,
> lfvinit)
> dladdr(0x1047f94e0, 0x7fff627d7f48)
> dlopen(/ade/b/4272543511
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=4272543511>/oracle/work/instantclient_11_2/libociei.dylib,0x00000005
>
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=00000005>)
>
>
> dlclose(0x7fff62832288
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=62832288>)
>
>
> dlsym(0x7fc800405700
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=800405700>,
> ocieiInit)
> dyld: lazy symbol binding failed: Symbol not found: _ocieiInitSrcOff
> Referenced from:
> /ade/b/4272543511
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=4272543511>/oracle/work/instantclient_11_2/libociei.dylib
>
>
> Expected in: flat namespace
>
> $ nm -A libociei.dylib | grep _ocieiInitSrcOff
> libociei.dylib: 0000000000000770
> <https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=0000000000000770>
> T _ocieiInitSrcOff
>
> It looks like dlsym() is not able to find/load the lazy symbol , even
> though the symbol is clearly present in the library defined in the only
> .c file that goes inside the library.
>
> Appreciate your inputs if you have seen something similar .
>
> Thanks
Rohitash,
Did you try updating to Xcode 4.4.1? There was -undefined dynamic_lookup linker bug introduced in
Xcode 4.2 (radr://10466868), which was fixed in Xcode 4.4.0. Note that if you use the Command Line
Tools under Lion, Xcode 4.4.1 fixed an upgrade glitch which prevented Xcode 4.4.0 from updating to
the correct Command Line Tools on Lion. So you really want to be on Xcode 4.4.1 on Lion and make
sure that the Command Line Tools are upgraded to 4.4.1 if you use them.
Jack
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden