reference to undefined symbol 'hu_SHA1Hash' in MAC

Hello

When I add below line Mac

 hu_SHA1Hash(_sha1Context, 20, SecretKey, _sbCtx);
   hu_SHA1Hash(_sha1Context, 4, now_bytes, _sbCtx);

get the error when running which is giveen below

qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/lib -Wl,-rpath-link,/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/usr/lib -Wl,-rpath-link,/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/usr/lib/qt4/lib -o o.le-v7-g/SafteyLink o.le-v7-g/.obj/HomeScreen.o o.le-v7-g/.obj/Login.o o.le-v7-g/.obj/UserDetail.o o.le-v7-g/.obj/Constant.o o.le-v7-g/.obj/applicationui.o o.le-v7-g/.obj/main.o o.le-v7-g/.obj/moc_HomeScreen.o o.le-v7-g/.obj/moc_Login.o o.le-v7-g/.obj/moc_UserDetail.o o.le-v7-g/.obj/moc_applicationui.o    -L/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/lib -L/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/usr/lib -L/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/usr/lib/qt4/lib -L/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6//usr/lib/qt4/lib -lbbsystem -lbbdata -lbbdevice -lbb -lbbcascades -lQtDeclarative -lQtScript -lQtSvg -lQtSql -lsqlite3 -lz -lQtXmlPatterns -lQtGui -lQtNetwork -lsocket -lQtCore -lm -lbps
/Users/shubhendusharma/Documents/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/ntoarm-ld: o.le-v7-g/.obj/Login.o: undefined reference to symbol 'hu_SHA1Hash'
/Users/shubhendusharma/Documents/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/ntoarm-ld: note: 'hu_SHA1Hash' is defined in DSO /Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/lib/libhuapi.so.5 so try adding it to the linker command line
/Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/lib/libhuapi.so.5: could not read symbols: Invalid operation
make[2]: Leaving directory `/Users/shubhendusharma/SafteyLink/arm'
cc: /Users/shubhendusharma/Documents/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/ntoarm-ld error 1
make[1]: Leaving directory `/Users/shubhendusharma/SafteyLink/arm'

Can I know what he's talking about and how to solve?

Here's how to interpret this error:

/Users/shubhendusharma/Documents/Momentics.app/host_10_2_0_15/darwin/x86/usr/bin/ntoarm-ld: note: 'hu_SHA1Hash' is defined in DSO /Users/shubhendusharma/Documents/Momentics.app/target_10_2_0_1155/qnx6/armle-v7/lib/libhuapi.so.5 so try adding it to the linker command line

Having said that the hu_SHA1Hash entry point is defined as a dynamic shared object (DSO) in an external library called libhuapi.s0.5

Thus, you must add the libhuapi.so shared library to your project so that the build process knows where.

Make sure that you have the directive '-lhuapi ' added to your .pro file something like this:

APP_NAME = TestRandom

CONFIG += qt warn_on cascades10

LIBS += -lhuapi -lbbsystem

include(config.pri)

In general to resolve a library bearing the name of, say, libFoo.so you need the - lFoo directive in the .pro project file.

Tags: BlackBerry Developers

Similar Questions

  • undefined reference to the symbol "_ZN2bb9ImageDataaSERKS0_".

    Has copied my Beta4 code in a new project of gold.  And got the following error message:

    undefined reference to the symbol "_ZN2bb9ImageDataaSERKS0_".

    Someone has just conclude what could be the cause?

    Looks like required libraries have changed into gold. Necessary to connect

    LIBS +=-lbb

    to make it work

  • ORA 12 c install error on openSuse: reference to the "__tls_get_addr@@GLIBC_2.3" undefined symbol

    Hello world

    I know that Oracle does not support the OpenSuSE, but all previous versions of the database has worked.

    With Oracle 12 c, the installation fails. I get the error below.

    No doubt someone has a useful idea?

    Yours, user8632123.

    NEWS: make f /home/oracle/base/rdbms/12.101/precomp/lib/ins_precomp.mk to reissue EXENAME = proc

    INFO: make [1]: Entering directory ' / home/oracle/base/rdbms/12.101/precomp/lib'

    INFO: Link /home/oracle/base/rdbms/12.101/precomp/lib/proc

    INFO: usr/lib64/gcc/x86_64-suse-linux/4.7/... /... /.. /.. (/ x86_64-SUSE-Linux/bin/LD: home/oracle/base/rdbms/12.101/lib//libnls12.a(lxhlang.o): reference to the "__tls_get_addr@@GLIBC_2.3" undefined symbol
    usr/lib64/GCC/x86_64-SUSE-Linux/4.7/... /... /.. /.. / x86_64-SUSE-Linux/bin/LD: Note: '__tls_get_addr@@GLIBC_2.3' is defined in OSR /lib64/ld-linux-x86-64.so.2 try so add to the linker command line
    /lib64/ld-linux-x86-64.so.2: could not read symbols: invalid operation

    INFO: collect2: error: ld returned 1 exit status

    INFO: / bin/chmod: can't access to ' / home/oracle/base/rdbms/12.101/precomp/lib/proc'
    INFO: no such file or directory

    INFO: make [1]: leaving directory ' / home/oracle/base/rdbms/12.101/precomp/lib'

    INFO: make [1]: * [/ home/oracle/base/rdbms/12.101/precomp/lib/proc] error 1

    NEWS: make: * [proc] error 2

    I use opensuse 12.3 and I have this error too.

    My solution is

    (1) backup (ORACLE_HOME) / lib/stubs, and then delete.

    (2) change RMAN_LINKLINE in the {ORACLE_HOME}/rdbms/lib/env_rdbms.mk file

    TO

    RMAN_LINKLINE = $(LINK) $(OPT) $(S0MAIN) $(SSKRMED) $(SKRMPT).

    $(LLIBDBTOOLS) $(LLIBCLIENT) $(LLIBSQL) $(LLIBPLSQL).

    $(LLIBSNLSRTL) $(LLIBUNLSRTL) $(LLIBNLSRTL).

    $(LLIBSLAX) $(LLIBPLSQL) $(LIBPLCN) $(LINKTTLIBS) - lons

    (3) all reissue them.

  • project link error - undefined symbol 'Random@16 '?

    Hello

    I get an error of link project - Undefined symbol 'Random@16' referenced in 'main.c '.

    There is no reference to where the error occurs, someone at - it a trick?

    Thank you!

    Hello-

    The Random function is defined in the programmers tool box.  "You need to add toolbox.fp (\toolslib\toolbox\toolbox.fp) to your project, or add it to your list of libraries loaded automatically thanks to the Library" customize the menu.

    NickB

    National Instruments

  • Error when packaging app for iOS - Undefined symbols for armv7 architecture

    First time trying to package an AS3 Air application for development.

    App works fine on Android and is available on the Google/Amazon etc. store. The version I try to package a all references to DONKEY I use removed for simplicity.

    I use Flash Builder 4.7, AIR v4.0 and developed on a PC in Windows 8.

    When you use fast packaging no error is thrown, but the app shows just a black screen on my test Ipad (v3).

    Using standard packaging, I get the following error at 57%:

    Error occurred during the application of packaging:

    For architecture armv7 httpd Undefined symbols:

    "__Z15abcOP_nullcheckIPN7avmplus6AbcEnvEEvPNS0_9MethodEnvET_", referenced from:

    _abcMethod_builtin_2_2_function public::global21.describeType in AOTBuildOutput - 3.o

    _abcMethod_builtin_3_3_function public::global21.describeTraits in AOTBuildOutput - 3.o

    _abcMethod_builtin_6_6_function public::global21.describeParams in AOTBuildOutput - 3.o

    _abcMethod_builtin_5_5_function public::global21.describeMetadata in AOTBuildOutput - 3.o

    _abcMethod_builtin_4_4_function public::global21.finish in AOTBuildOutput - 3.o

    _abcMethod_builtin_26_26_function public::Object$ ._dontEnumPrototype in AOTBuildOutput - 3.o

    _abcMethod_builtin_30_30_null IŠ¬:_init. in AOTBuildOutput - 3.o

    ...

    LD: symbol not found armv7 architecture

    Compilation failed during execution: ld64

    Any help you can offer would be very welcome.

    Please try with the latest version of the AIR 15 Download Adobe AIR beta 15 - Adobe Labs , as it contains many corrections of bugs for the new quick links Manager. Let us know if you still faces questions.

    -Nimisha

  • error link undefined symbol pilot agilent Ag34970

    Hello

    I use the Ag34970 driver

    I had errors of link project: undefined symbol...

    for all the fuction of this driver.

    the instrument is loaded, the .dll file is located in the project directory, the .h and .fp is added to the project.

    What is the problem?

    Thank you

    Hello

    You should check the .fp is properly connected.

    Got to tool > menu editing, select the instrument and click View Info...

    If the file is empty, this means that the public service is not attached to a program file. It should contain a .obj file, .lib or .c

    See here how CVI seeks the program file driver Intsrument and set the file to a suitable location.

    Constantin

  • ___Cvi_toolbox_smart_type_default_types undefined symbol

    Hello

    I have a project that was built to be modified using CVI Version 9.1.0 (Build 427).

    I need to change and want to use the latest version of the CVI.

    The build will fail with a linker error:

    Undefined symbol '___cvi_toolbox_smart_type_default_types' referenced in "toolbox.obj".

    I assume that one of the functions of Toolbox that I used has been changed or depeciated, but which?

    Does anyone know what this error is associacted with? I'd rather not search funtion of all programmers Toolbox in my project.

    Kind regards

    John

    You can get these types of errors of link if the toolbox.obj in your project or your CVI environment (ADE) is from a newer version of the CVI the CVI ADE you use to compile the project. Verify the path of the toolbox.obj file in your project / ADE and make sure it is the same version of the CVI.

  • Link error: Undefined symbol '_profi_get_cntrl_info' referenced in 'main.c '.

    Hello.

    I am trying to solve my problem of error connecting for a few days, but I can't find the right answer. I have already searched the forum and read some threads with "undefined symbol link error", but they are not fitting to my problem.

    What I'm trying to do: I want to communicate with my Softing profibus card. I includes all the header files in my source code and also I have included both .lib for the project files. But the mentioned error will not leave.

    It is curiously when I choose "Go to definition" in the context menu, CVI is the good statement in the right header file.

    Who can help? What's wrong?

    Best regards

    der_Ben

    Hey,.

    one of the LIB provides this function, Yes.

    But now I got it. I checked the Options 'building' and change the 'default calling convention' to '__cdecl' (should be default) '__stdcall' and now everything works fine with this function.

    I would like to say thanks for your advice =)

    Concerning

    Ben

  • Undefined symbol ' _Timeout_Config

    Hey, I'm working on a real-time acquition program and I have several problems:

    10 mistakes of project link

    Undefined symbol '_DIG_DB_Config@20' referenced in "acq #3.c.

    Undefined symbol '_Timeout_Config@8' referenced in "acq #3.c.

    Undefined symbol '_DIG_DB_HalfReady@12' referenced in "acq #3.c.

    Undefined symbol '_Align_DMA_Buffer@24' referenced in "acq #3.c.

    Undefined symbol '_WriteToDigitalLine@24' referenced in "acq #3.c.

    Undefined symbol '_DIG_DB_Transfer@16' referenced in "acq #3.c.

    Undefined symbol '_DIG_Grp_Config@20' referenced in "acq #3.c.

    Undefined symbol '_DIG_Block_Clear@8' referenced in "acq #3.c.

    Undefined symbol '_DIG_Block_In@16' referenced in "acq #3.c.

    Undefined symbol '_DIG_Grp_Mode@28' referenced in "acq #3.c.


  • I get Undefined symbol '_Ivi_QueryInstrStatus@4' referenced in & quot; hp34401a

    I use CVI7.1 and when I try to compile my app, I get 57 errors of link all Undefined symbol referenced in "hp34401a.c".related to the DVM hp34401.a I use.

    I've updated PKI 3.3 and now I'm able to compile without error

  • Reference to undefined entity 'nbsp '?

    Hi all

    I'm trying to parse an XML file, but I'm "reference to undefined entity «nbsp»» I use the dom parser to parse the XML file but unfortunately have this error at the line of "document Document = builder.parse (inputstream); There is a way to avoid the "nbsp".

    Thank you

    What I had in mind was, if you generate the document, instead of writing '' just write' ' instead.

    If the document has already been generated, this approach is meaningless. Instead, you can do something like this (untested):

    static final byte[] NBSP = " ".getBytes(); // default encoding okstatic final byte[] A0 = " ".getBytes(); // ditto
    
    InputStream fix_nbsp(InputStream in) {    byte[] input = IOUtilities.streamToBytes(in);    NoCopyByteArrayOutputStream bos = new NoCopyByteArrayOutputStream();    int i = 0;    int j = indexOf(input, NBSP, 0);    while (j >= 0) {        bos.write(input, i, j - i);        bos.write(A0, 0, A0.length);        i = j + NBSP.length;        j = indexOf(input, NBSP, i);    }    bos.write(input, i, input.length - i);    return new ByteArrayInputStream(bos.getByteArray(), 0, bos.size());}
    
    /** * Find the first occurrence of a pattern of bytes in a byte * array. * @param input the array to search. * @param pattern the pattern to look for. * @param offset the index at which to start the search. * @return the index at which pattern begins in input, *   or -1 if the pattern was not found. */int indexOf(byte[] input, byte[] pattern, int offset) {    // left as an exercise for the reader. :-)}
    

    Then analyze the stream returned by fix_nbsp instead of the original stream. (Don't forget to close the original stream, though!)

  • MuseJSAssert:Error calls the function selection: TypeError: cannot get the "init" reference to undefined property or no, I am a beginner and not able to solve this problem with my website, please help...

    Everytime I open my site I get this error "MuseJSAssert: Errot calling function selection: TypeError: cannot get the"init"reference to undefined property or null" and I was a newbie am not able to solve this problem.

    error.png

    I did take all measures please help.

    Hello

    Can try you it on another browser that the problem does not come up on top of our end.?

    Kind regards

    Akshay

  • / usr/lib/VMware/bin/VMware: symbol lookup error: /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8: undefined symbol: EVP_ecdsa

    Hello

    After a few package update/install vmware (7.0.1 build 227600 x86_64) has stopped working.  When you try to start, I get an error:

    / usr/lib/VMware/bin/VMware: symbol lookup error: /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8: undefined symbol: EVP_ecdsa

    ameeba 06:38 & gt; md5sum /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8

    8ee5d0ab909cbf5604ab025f836f5cc0 /usr/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8

    System is Fedora Core 11 with all updates with a few multimedia tools and the rpmfusion Nvidia drivers.

    ameeba 06:41 & gt; less /tmp/vmware-pasi/setup-9349.log

    Mar 15 06:41:15.938: app-140707592353520 | Journal for VMware Workstation pid = 9349 version = 7.0.1 build = build-227600 option = output

    Mar 15 06:41:15.938: app-140707592353520 | The process is 64-bit.

    Mar 15 06:41:15.938: app-140707592353520 | Host codepage = UTF-8 encoding = UTF-8

    Mar 15 06:41:15.938: app-140707592353520 | Login to /tmp/vmware-pasi/setup-9349.log

    Mar 15 06:41:16.077: app-140707592353520 | Mark modconf initialized interface

    Mar 15 06:41:16.077: app-140707592353520 | modconf initialized library

    Vmware reinstalling did not help.

    Any ideas?

    -Pasi-

    We can suspect that your libcrypto.so were captured earlier a comes with vmware, try: export LD_LIBRARY_PATH=/usr/lib/vmware/lib/libcrypto.so.0.9.8 & vmware & command line

  • generation of native extension iOS fails to "Undefined symbols for armv7 architecture."

    I'm going to build a set of native extensions for iOS with 3.4 Air, but when I try to compile a test whose DONKEY actionscript project I get the following error:

    For architecture armv7 httpd Undefined symbols:

    "_null", referenced from:

    _g_com_adobe_air_fre_fmap in extensionglue.o

    (maybe you meant: _sqlite3_bind_null, __ZN7avmplus20BitmapDataJPEGWriter14jpeg_null_charEP18jpeg_common_structPc, __ZN7CString16s_nullTerminatorE, __ZN7avmplus7AvmCore24decrementAtomRegion_nullEPii, _null_name, __ZN7avmplus20BitmapDataJPEGWriter9jpeg_nullEP18jpeg_common_struct, _sqlite3_result_null, __ZN7UString16s_nullTerminatorE, _null_name1)

    LD: symbol not found armv7 architecture

    Compilation failed during execution: ld64

    My DONKEY is targeting iOS 5.1, and I forced Xcode to build the static library for armv7 (setting 'Valid Architectures' to 'armv7' and 'Building only of Active Architecture' to 'Yes')

    Tried to use Flash Builder 4.6 and 4.7 Beta with the same results.

    Does anyone have advice on build parameters for ENA in Xcode, or have experienced this problem before? See you soon.

    Hello

    We were able to understand the question and it will be fixed in the next version.

    For now, a possible workaround is to systematically use the finalizer function in the DONKEY. For example, the following steps should be followed:

    (1) in the native code to ANE, a new function, with the signing of FREFinalizer() must be written. Refer to http://help.adobe.com/en_US/air/extensions/WSb464b1207c184b14-53a8419b 129382b 5758 - 8000.html for the prototype. It could contain also a minimal code or simply a return statement. for example.

    Sub minimalFinalizerFunction(void * extData)

    {

    return;

    }

    (2) in the extension.xml, include this line after the tag:

    minimalFinalizerFunction

    (3) repackage your ALBUM using the new .to and extension.xml.

  • Inserting a symbol of command Mac in a document

    OK, this should be so simple but it makes my head.

    Basically, I prepare an indesign document - specifically a map sheet of index for call center workers who use a Mac platform.

    For the life of me I can not understand how to insert different symbols for the keyboard commands for example (2318 Unicode for the symbol of the order) or 2325 for Option.

    Worse still, I use a Mac - and whenever I copy and paste the symbol from another application, e.g. TextEdit after dragging it from the character palette it still does not appear.

    When I would expect symbols, I see are these boxes with a cross in the middle (picture below).

    Screen Shot 2013-06-25 at 12.17.30 AM.png

    INDD file was created using CS5.5 on a Windows machine, and when these boxes make their appearance - police is listed as Segoe UI symbol (specific font a MS Office). Cannot find a replacement either policy, and my google-fu is letting me to find the answer to this.

    Any help to achieve this properly appreciated.

    You must choose a font that has the character (glyph) you want to use. It's easy on a Mac if you use the following steps:

    (1) in system preferences > language & text > input methods, turn on the keyboard Viewer & character (at the top of the list).

    (2) open the Viewer from characters in the menulet at the top of your screen:

    (3) in the viewer of characters, Unicode and select the Unicode value:

    (4) select one of the variants fonts on the right and watch the police with this glyph:

    (5) back to InDesign and open the glyphs Panel (Type > glyphs). In the menu, select the font, in this case charcoal CY. In the glyphs for this font menu, select symbols. Double-click to insert the symbol.

    (6) in order to reuse the glyph, include it in a set of glyphs.

Maybe you are looking for