Loading shared library failed: Reports fatal: libgcc_s.so.1 : open failed

Hi,
I am developing a shared library in solaris. While loading the shared library it reports "ld.so.1: tn-tipc-config-bin: fatal: libgcc_s.so.1: open failed: No such file or directory". I noticed that libgcc_so.1 is available at /usr/sfw/lib. But this library is missing in some solaris build/install configuration. I want my library to loaded in any solaris system. So I want to reduce dependency over libgcc_s.so.1. By looking at the objdump of my shared library, I found that references to
__register_frame_info and __deregister_frame_info which are provided by libgcc_s.so.1. Looks like these references are added by gccfss compiler since I dont call these functions in my code. Please suggest a method to remove reference for these functions.
Thanks
Shankar

If you don't want to bring libraries your app depends on with you, the only choice you have is linking statically. It is a very bad idea to manually "detach" compiler-supplied library from the application unless you know exactly what you are doing. Even if your library does not call anything directly, initialization routines inserted by compiler may need routines from that library (just as an example).

Similar Messages

  • CRIO Fails to Load Shared Library

    All,
    I'm getting an odd error every other time I tried to load my code onto a cRIO in the dev environment.
    Deploying NI_AALPro.lvlib:Linear Fit (LS).viNI_AALPro.lvlib:Linear Fit (LS).vi loaded with errors on the target and was closed.
    LabVIEW:  Failed to load shared library lvanlys.*:LinFit_head:C on RT target device.
    This VI works the first time, and then fails to run the second time you hit run.
    If I reboot the device this corrects the problem, but I have to say this bug costs me quite a lot of time.
    Regards,
    Ken 

    xkenneth,
    Did that solve your problem? If so, is it reproducible with a small project?
    Verne D. // LabVIEW & SignalExpress Product Support Engineer // National Instruments

  • Failed to load shared library

    I am getting a "Failed to load shared library myDLL.dll:myFunction:C on RT Target Device" error when attempting to deploy a VI which contains a call to myDLL on a RT PXI.  If I open the VI with the Call Library Function Node and simply reselect myDLL within the Library name or Path box and save the VI, it will then deploy without error.  This continues to work until I start changing the VI at which point I attempt to deploy the VI again and get the failed to load error.  Once again I open the VI, reselect myDLL, save, and the failed to deploy error goes away.
    Does anyone have any ideas about whats going on here?
    Thanks in advance
    Kevin C.

    Hi Bob,
    Thanks for responding.  I am running LabVIEW 8.5 and running on an 8106 Embedded Controller.  Unfortunately, I cannot post my DLL however, I did some troubleshooting and found that the issue seems to be that myDLL calls another one of my DLLs which doesn't seem to be loaded onto the RT box.  If I deploy and run a VI which calls this second DLL and then run my original VI, it deploys without issue.  I guess I can understand why it didn't work in first place, since the 2nd DLL is not called from any VI and only called from myDLL, however I don't understand why simply opening the VI which contains the call to myDLL and reselecting it fixes the problem.  Also I have run the DLL thru the 8.5 DLL checker and it says that the DLL is OK, in fact the DLL checker new that myDLL had a dependency on the second DLL.  Is there something that I can do other than pre-deploy the second DLL to the RT box to get around this issue?
    Thanks again,
    Kevin C.     

  • Failed to load shared library on RT target device.

    I am using 7030 RT target. When I use Call Library Function Node with specified DLL library the application is working properly on Windows target. When I try to download the application on RT target PCI 7030 I get the following error messages: Failed to download useDLL.vi. Failed to load shared library EasyDLL.dll on RT target device. Because the application (attached to the question) is distributed with NI product I would suppose it is written OK. I would like to know what restrictions are imposed on DLL libraries which should be targeted on PCI 7030 RT target. Why the application useDLL.vi with EasyDLL.dll can't be loaded on PCI 7030? Does it mean that Call Library Function Nodes are not compatibel with PCI
    7030 target?! Thank you for any explanation.
    Attachments:
    useDLL.vi ‏15 KB
    EasyDLL.dll ‏80 KB

    OK I downloaded your files and tried them with a PXI real time controller and the error you mentioned happened for me as well. After digging for awhile, here's the best explanation I could find:
    1 - useDLL is calling other DLLs that are failing to download
    2 - useDLL is accessing some of the Win API that is not supported by the RT OS.
    Read more about this at:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000...
    ~cheers,
    Darin G

  • RealTime - Failed to load shared library

    Hi everyone,
    I'm working with the cRIO 9074 system and programmed a ANC application with LabView. Yesterday I tested my application the first time but it didn't work as expected. Because of my testing- and developing-place are different I have to carry the cRIO-System and my laptop between them. So I just disconneted the powersupply and the networkcable. Then 10min later I tried testing again but I got an error. Today in the morning I got the same error like yesterday, which is the following one:
    "Failed to load shared library AdaptivFilter. Ensure that the library is present on the RT target. Use MAX [...]"
    I reinstalled the NI software (more than once) how I was adviced with MAX but it didn't fix the problem, maybe the AdaptivFilters-library was not included.
    In the project-explorer a library called "NI_AdaptivFilter.lvlib" is included and I also found the path of the file on my harddrive.
    It drives my nuts that it worked and than 10min later it doesn't.
    I hope you could help me, thanks.
    Schue
    Attachments:
    project_explorer.PNG ‏71 KB
    Unbenannt.PNG ‏57 KB

    Hi Bob,
    Thanks for responding.  I am running LabVIEW 8.5 and running on an 8106 Embedded Controller.  Unfortunately, I cannot post my DLL however, I did some troubleshooting and found that the issue seems to be that myDLL calls another one of my DLLs which doesn't seem to be loaded onto the RT box.  If I deploy and run a VI which calls this second DLL and then run my original VI, it deploys without issue.  I guess I can understand why it didn't work in first place, since the 2nd DLL is not called from any VI and only called from myDLL, however I don't understand why simply opening the VI which contains the call to myDLL and reselecting it fixes the problem.  Also I have run the DLL thru the 8.5 DLL checker and it says that the DLL is OK, in fact the DLL checker new that myDLL had a dependency on the second DLL.  Is there something that I can do other than pre-deploy the second DLL to the RT box to get around this issue?
    Thanks again,
    Kevin C.     

  • LabVIEW: Failed to load shared library nisysrpc.out

    Errored were detected in the target log when connecting to the target:
    LabVIEW:Failed to load shared library nisysrpc.out.Ensure that the library is present to the RT target. Use MAX to install NI software or FTP to transfer custom libraries on the target .
    labview 2012
    sbrio 9636
    已解决!
    转到解答。
    附件:
    Shared Library.jpg ‏3797 KB

    这个错误是因为RT系统启动部署时缺失库文件或者加载库文件失败导致的。
    库文件加载失败原因有很多,而且就算把库文件重新添加进去可能也不能解决问题。建议你重装sbRIO 9636的RT系统,RT重装系统很快,10分钟就能完成。
    在MAX里面远程系统下找到你的9636,右键选择格式化。格式化完成后展开9636,右键软件选择更改删除软件,此时把软件再重新装进去就可以了。

  • DAC - Error loading shared library [pmwrtrel.dll] in the dynamic lib mgr

    Hi,
    While executing ETL load on a Windows 32-bit machine with DAC v10.1.3.4.1, we were able to execute 24 tasks out of 317 successfully. Then it fails with the following error message:
    PRE-SESS> TM_6232 Error loading shared library [pmwrtrel.dll] in the dynamic library manager. The error is [Database driver event...Error occurred loading library [pmwrtrel.dll]. System error encountered is 127. Error text is The specified procedure could not be found. .].
    PRE-SESS> CMN_1761 Timestamp Event: [Mon Mar 29 19:04:05 2010]
    PRE-SESS> WRT_8236 Error getting pre session writer object for target [W_ETL_RUN_S]
    MANAGER> PETL_24027 Pre-session task completed successfully. : (Mon Mar 29 19:04:05 2010)
    DIRECTOR> PETL_24006 Starting data movement.
    MAPPING> TM_6660 Total Buffer Pool size is 12582912 bytes and Block size is 128000 bytes.
    READER_1_1_1> DBG_21437 Reader: Source is a file-based source.
    READER_1_1_1> FR_3118 source [SQ_FILE_DUAL] code page: [7-bit ASCII]
    READER_1_1_1> FR_3071 Maximum Line sequential buffer length is 1026.
    READER_1_1_1> BLKR_16003 Initialization completed successfully.
    WRITER_1_*_1> CMN_1761 Timestamp Event: [Mon Mar 29 19:04:05 2010]
    WRITER_1_*_1> TM_6232 Error loading shared library [pmwrtrel.dll] in the dynamic library manager. The error is [Database driver event...Error occurred loading library [pmwrtrel.dll]. System error encountered is 127. Error text is The specified procedure could not be found. .].
    MANAGER> PETL_24031
    ***** RUN INFO FOR TGT LOAD ORDER GROUP [1], CONCURRENT SET [1] *****
    Thread [READER_1_1_1] created for [the read stage] of partition point [SQ_FILE_DUAL] has completed. The total run time was insufficient for any meaningful statistics.
    Thread [TRANSF_1_1_1] created for [the transformation stage] of partition point [SQ_FILE_DUAL] has completed. The total run time was insufficient for any meaningful statistics.
    Thread [WRITER_1_*_1] created for [the write stage] of partition point [W_ETL_RUN_S] has completed. The total run time was insufficient for any meaningful statistics.
    MAPPING> CMN_1793 The index cache size that would hold [7340064] rows in the lookup table for [MPLT_GET_ETL_PROC_WID.LKP_ETL_PROC_WID], in memory, is [29555310648557682] bytes
    MAPPING> CMN_1792 The data cache size that would hold [7340064] rows in the lookup table for [MPLT_GET_ETL_PROC_WID.LKP_ETL_PROC_WID], in memory, is [12948046503805036] bytes
    MANAGER> PETL_24005 Starting post-session tasks. : (Mon Mar 29 19:04:05 2010)
    MANAGER> PETL_24029 Post-session task completed successfully. : (Mon Mar 29 19:04:05 2010)
    MAPPING> TM_6018 The session completed with [0] row transformation errors.
    MANAGER> PETL_24002 Parallel Pipeline Engine finished.
    DIRECTOR> PETL_24013 Session run completed with failure.
    DIRECTOR> TM_6022
    SESSION LOAD SUMMARY
    ================================================
    DIRECTOR> TM_6252 Source Load Summary.
    DIRECTOR> CMN_1740 Table: [SQ_FILE_DUAL] (Instance Name: [SQ_FILE_DUAL])
         Output Rows [0], Affected Rows [0], Applied Rows [0], Rejected Rows [0]
    DIRECTOR> TM_6253 Target Load Summary.
    DIRECTOR> CMN_1740 Table: [W_ETL_RUN_S] (Instance Name: [W_ETL_RUN_S])
         Output Rows [0], Affected Rows [0], Applied Rows [0], Rejected Rows [0]
    DIRECTOR> TM_6023
    ===================================================
    DIRECTOR> TM_6020 Session [SIL_InsertRowInRunTable] completed at [Mon Mar 29 19:04:06 2010].
    Kindly someone tell us how to resolve this issue.
    Regards,
    Vishnu

    what BIA version are you on?
    perhaps you have to install a informatica fix or a DAC patch

  • [SOLVED] Error while loading shared library libboost_system

    $ xx
    cnf-lookup: error while loading shared libraries: libboost_system.so.1.55.0: cannot open shared object file: No such file or directory
    bash: xx: command not found
    Current version of libboost_system.so.1.56.0
    How do I figure out which package/command is looking for the previous version of libboost_system?
    Edit: I have the command-not-found interface from pkgfile installed.  That explains the xx above.
    Last edited by fschiff (2014-09-08 00:10:33)

    pactree --reverse boost-libs
    told me that AUR package command-not-found was dependent on this.
    I removed command-not-found (which I don't really need after putting in the pkgfile bash "command-not-found" hook)  The AUR command-not-found more than likely did not work.
    I think I discovered this a while back, but couldn't make the connection of what was going on.  Still confused but happily arching away.

  • Ld.so.1: sqlplus: fatal: libm.so.2: open failed: No such file or directory

    Hi,
    I m getting the below error while connecting to sqlplus:-
    sqlplus
    ld.so.1: sqlplus: fatal: libm.so.2: open failed: No such file or directory
    Killed
    regards,
    Bhatia

    Bhatia,
    Did you source the env file before running sqlplus? If yes, please issue the following:
    $ cd $ORACLE_HOME/bin
    $ relink utilitiesMake sure that sqlplus is relinked successfully and try it again.

  • 2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed

    Hi all -
    I apologize in advance if this question has been asked and answered. I looked around and didn't see anything.
    I'm installing J2SDK1.4.2 on Solaris 8. I've installed it on two other boxes without incident, but this one is giving me trouble. Maybe I'm missing a package? Here is the error:
    Creating j2sdk1.4.2/lib/tools.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files lib/tools.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Creating j2sdk1.4.2/jre/lib/rt.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files jre/lib/rt.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Creating j2sdk1.4.2/jre/lib/jsse.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files jre/lib/jsse.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Creating j2sdk1.4.2/jre/lib/charsets.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files jre/lib/charsets.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Creating j2sdk1.4.2/jre/lib/ext/localedata.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files jre/lib/ext/localedata.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Creating j2sdk1.4.2/jre/lib/plugin.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files jre/lib/plugin.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    Creating j2sdk1.4.2/jre/javaws/javaws.jar
    ld.so.1: j2sdk1.4.2/lib/unpack: fatal: libCrun.so.1: open failed: No such file or directory
    Killed
    Failed to unpack jar files jre/javaws/javaws.jar. Please refer
    to the Troubleshooting section of the Installation
    Instructions on the download page for more information.
    ERROR: Installation failed. Please refer to the Troubleshooting Section of the Installation Instructions on the download page
    I didn't see any troubleshooting page on the installation instructions!!! HELP.
    Thanks...
    Rebecca

    NEVERMIND.
    I'm a moron...just call me Dora...everyday is apparently a new day. The box was missing SUNWlibC (which should have been apparent to me by the fact that the file it was complaining about was libCrun.so.1...
    TGIF.

  • Can't load shared library, libgpg-error missing?

    Right, so this morning I decided to try out Cinnamon. I booted into Arch, logged into GNOME, installed cinnamon from the repositories, and did a system upgrade. I then rebooted. I select Arch Linux from GRUB, everything is working fine, but GDM won't load. And there are some strange error messages I've never seen before on the screen. Hmm. So, apparently, the journal service failed to start:
    /dev/sda1: recovering journal
    /dev/sda1: clean, 260391/7782400 files, 2855892/31099729 blocks
    [ 2.896956] systemd[1]: Failed to start Trigger Flushing of Journal to Persistent Storage.
    [ 2.902798] systemd[1]: Failed to start Trigger Flushing of Journal to Persistent Storage.
    [ 2.903928] systemd[1]: Failed to start Journal Service.
    [ 2.904007] systemd[1]: Dependency failed for Trigger Flushing of Journal to Persistent Storage.
    [ 2.904798] systemd[1]: Failed to start Journal Service.
    [ 3.092906] microcode: failed to load file amd-ucode/microcode_amd_fam15h.bin
    So, I figure I need to do a bit of troubleshooting, and I need to disable GDM, since it doesn't want to start. So I boot into my installation media, arch-chroot into my newly mounted partition, and try to disable GDM with systemctl disable gdm.service. Well, apparently, systemctl is having trouble loading a shared library, because it then spits out this error message:
    systemctl: error while loading shared libraries: /usr/lib/libgpg-error.so.0: file too short
    So, I think perhaps that a library has magically gone missing and I try to reinstall it, but to no avail:
    pacman -Sv libgpg
    pacman: error while loading shared libraries: /usr/lib/libgpg-error.so.0: file too short
    I'm very confused at this point, I haven't the slightest idea what I did. Sorry about the lack of logs, I haven't found anything about this from Google or these forums. I have no idea what logs would be relevant here, as I have no idea what's going on. Any help, or suggestions on which logs may be relevant, would be highly appreciated. Thanks!

    oops.  Two follow ups, first it seems you got that before my edit to at the -l flag to the second ls, I was curious if you still had the package in your cache, whether it was the right version, and whether it was the right size (poor man's checksum (1)).  It's there, and it's the right version, but I'm curious on the size too.
    The second follow up was that I hadn't accounted for the symlink, so the second command should really be as follows
    ls -l /usr/lib/libpgp-error.so.0.10.0
    as pacman says it's too short, I'm curious *how* short.  Is it an empty file, or does it look like the right size which would indicate other corruption, or is it just short.
    EDIT (1):  I suppose while were at it we may as well get a real checksum.  Here's mine on the package cache file, yours *should* match
    $ md5sum /var/cache/pacman/pkg/libgpg-error-1.12-1-x86_64.pkg.tar.xz
    602a18784e9916e1a4d13b10de6074aa /var/cache/pacman/pkg/libgpg-error-1.12-1-x86_64.pkg.tar.xz
    If yours matches that, the cause of this problem may remain a mystery, but the solution could be to reinstall that package.  I suspect this will be the solution regardless though.  And if you have a live media it might be easiest to just use pacman from the live system with your system as a target, and reinstall libgpg-error.  If you don't have a live media, then you *might* have to uncompress the package manually.
    Last edited by Trilby (2013-07-08 19:19:52)

  • 64 bit JVM Crash  when loading shared library

    I wrote a simple code to test loading of 64 bit shared library in linux. My JVM crashes on System.loadLibrary method.
    JAVA CODE
    import java.awt.Dimension;
    import javax.swing.JFrame;
    public class TestJNI extends JFrame{
            public native void init();
            static{
                    System.loadLibrary("testJNI");
            public static void main(String ...args){
                    TestJNI test = new TestJNI();
                    test.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    test.setSize(new Dimension(500,500));
                    test.setVisible(true);
                    System.out.println("Before init");
                    //test.init();
                    System.out.println("After init");
    } Header file created using javah
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class TestJNI */
    #ifndef _Included_TestJNI
    #define _Included_TestJNI
    #ifdef __cplusplus
    extern "C" {
    #endif
    #undef TestJNI_FOCUS_TRAVERSABLE_UNKNOWN
    #define TestJNI_FOCUS_TRAVERSABLE_UNKNOWN 0L
    #undef TestJNI_FOCUS_TRAVERSABLE_DEFAULT
    #define TestJNI_FOCUS_TRAVERSABLE_DEFAULT 1L
    #undef TestJNI_FOCUS_TRAVERSABLE_SET
    #define TestJNI_FOCUS_TRAVERSABLE_SET 2L
    #undef TestJNI_TOP_ALIGNMENT
    #define TestJNI_TOP_ALIGNMENT 0.0f
    #undef TestJNI_CENTER_ALIGNMENT
    #define TestJNI_CENTER_ALIGNMENT 0.5f
    #undef TestJNI_BOTTOM_ALIGNMENT
    #define TestJNI_BOTTOM_ALIGNMENT 1.0f
    #undef TestJNI_LEFT_ALIGNMENT
    #define TestJNI_LEFT_ALIGNMENT 0.0f
    #undef TestJNI_RIGHT_ALIGNMENT
    #define TestJNI_RIGHT_ALIGNMENT 1.0f
    #undef TestJNI_serialVersionUID
    #define TestJNI_serialVersionUID -7644114512714619750LL
    #undef TestJNI_serialVersionUID
    #define TestJNI_serialVersionUID 4613797578919906343LL
    #undef TestJNI_INCLUDE_SELF
    #define TestJNI_INCLUDE_SELF 1L
    #undef TestJNI_SEARCH_HEAVYWEIGHTS
    #define TestJNI_SEARCH_HEAVYWEIGHTS 1L
    #undef TestJNI_OPENED
    #define TestJNI_OPENED 1L
    #undef TestJNI_serialVersionUID
    #define TestJNI_serialVersionUID 4497834738069338734LL
    #undef TestJNI_DEFAULT_CURSOR
    #define TestJNI_DEFAULT_CURSOR 0L
    #undef TestJNI_CROSSHAIR_CURSOR
    #define TestJNI_CROSSHAIR_CURSOR 1L
    #undef TestJNI_TEXT_CURSOR
    #define TestJNI_TEXT_CURSOR 2L
    #undef TestJNI_WAIT_CURSOR
    #define TestJNI_WAIT_CURSOR 3L
    #undef TestJNI_SW_RESIZE_CURSOR
    #define TestJNI_SW_RESIZE_CURSOR 4L
    #undef TestJNI_SE_RESIZE_CURSOR
    #define TestJNI_SE_RESIZE_CURSOR 5L
    #undef TestJNI_NW_RESIZE_CURSOR
    #define TestJNI_NW_RESIZE_CURSOR 6L
    #undef TestJNI_NE_RESIZE_CURSOR
    #define TestJNI_NE_RESIZE_CURSOR 7L
    #undef TestJNI_N_RESIZE_CURSOR
    #define TestJNI_N_RESIZE_CURSOR 8L
    #undef TestJNI_S_RESIZE_CURSOR
    #define TestJNI_S_RESIZE_CURSOR 9L
    #undef TestJNI_W_RESIZE_CURSOR
    #define TestJNI_W_RESIZE_CURSOR 10L
    #undef TestJNI_E_RESIZE_CURSOR
    #define TestJNI_E_RESIZE_CURSOR 11L
    #undef TestJNI_HAND_CURSOR
    #define TestJNI_HAND_CURSOR 12L
    #undef TestJNI_MOVE_CURSOR
    #define TestJNI_MOVE_CURSOR 13L
    #undef TestJNI_NORMAL
    #define TestJNI_NORMAL 0L
    #undef TestJNI_ICONIFIED
    #define TestJNI_ICONIFIED 1L
    #undef TestJNI_MAXIMIZED_HORIZ
    #define TestJNI_MAXIMIZED_HORIZ 2L
    #undef TestJNI_MAXIMIZED_VERT
    #define TestJNI_MAXIMIZED_VERT 4L
    #undef TestJNI_MAXIMIZED_BOTH
    #define TestJNI_MAXIMIZED_BOTH 6L
    #undef TestJNI_serialVersionUID
    #define TestJNI_serialVersionUID 2673458971256075116LL
    #undef TestJNI_EXIT_ON_CLOSE
    #define TestJNI_EXIT_ON_CLOSE 3L
    * Class:     TestJNI
    * Method:    init
    * Signature: ()V
    JNIEXPORT void JNICALL Java_TestJNI_init
      (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endifC code TestJNI.c
    #include "TestJNI.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_TestJNI_init
      (JNIEnv *env, jobject ob){
      printf("TESTING JNI CALL");
    }gcc options are as follows to get the shared library:
    gcc -fPIC -pthread -g -Wall -D_REENTRANT -I/vobs/3p/jdk1.6.0_10/linux/include/linux -I/vobs/3p/jdk1.6.0_10/linux/include/ -c TestJNI.c -o TestJNI.o
    gcc -z defs -pthread -D_REENTRANT -Wl,-soname,libnative.so -shared -o libtestJNI.so TestJNI.o -lcAny help is appreciated. I am not sure what i am doing wrong here.
    Running the same code on a 32 bit jvm with a 32 bit shared library works.

    Hi,
    I was also having a problem under 64 bit, Now I am certain that if ur Java code makes a call to the DLL, make sure that DLL is compiled under 64 bit compiler and not 32 bit compiler. This is the mistake I made and the JVM was throwing unsatisfied link error. Now this DLL (compiled under 64 bit) could call a 32 bit dll, I dont think that should be a problem.
    Hope it helps.
    Subu

  • ITunes 10.5 does not load shared library files

    Since today's update to iTunes 10.5 from 10.4.1. iTunes can no longer access the shared music library I have on my iomega NAS disk. It sees the disk and lists it as a shared library, but when I click on the library it goes into an endless loading cycle. In the past it might take a minute or so to load the library, but since the update, iTunes never actually does load it.
    There is no error message, not even an operation time-out. I can't see anything rrelevant in the console. It just goes on for ever trying to load the shared library.
    It was loading the shsred library just fine until this evening when the update downloaded.
    Any ideas?

    I'm having the same problem with a Buffalo Linkstation LS-WTGL/R1-V3 NAS and iTunes 10.5 on both Mac OS X 10.6.8 and Windows XP.
    It's not quite an endless loop, though. It takes about 20 seconds, then the song listing flashes briefly on the screen but goes immediately to the local Music listing in the Library. If I right-click on the NAS's entry and choose "Open in a New Window", the window opens, shows the barber pole throbber for about 20 seconds, then closes, again going back to the local Music listing.
    There's about 117GB in the iTunes Music folder on the NAS.
    This worked fine under iTunes 10.4.x.

  • How can I load shared library in my application ?

    Hi,
    I am using J2EE application deployed on Oracle 10g application server(Linux version). I have a shared library used to access a third party software. Now my application needs to access this shared library in order to access the third party software.
    So how do I acces this shared library ???
    I have already put the path in LD_LIBRARY_PATH environment variable, but still I get following error
    05/03/11 16:06:15 java.lang.UnsatisfiedLinkError: /app/oracle/product/mid904/lib/libScansJni.so: libscans.so: cannot open shared object file: No such file or directory
    05/03/11 16:06:15 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    05/03/11 16:06:15 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
    05/03/11 16:06:15 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
    05/03/11 16:06:15 at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    05/03/11 16:06:15 at java.lang.System.loadLibrary(System.java:834)
    Could anybody please help ??
    Thanks
    -- Nilesh.

    LD_LIBRARY_PATH doesn't always work well on linux. Try copying the library to /usr/lib and then refreshing the cache by issuing "ldconfig -v" and verify that your library has been catalogued. If your library needs to be located in another path, you may have to edit "/etc/ld.so.conf" prior to running ldconfig.

  • Cannot load shared library from Java on AIX

    I am working on a 64-bit AIX5.2 machine. I created a hello world program using JNI. When I run it, System.loadLibrary() does not find my shared library. After looking into it for several hours, I realized it might be something to do with my 32 bit mode build. The reason I am building as 32 bit is because I thought it would work on both 32 and 64 bit platforms.
    This is how I compile my C++ file and build the shared library:
    xlC_r -brtl -q32 -c -I"." -I"/usr/java5_64/include" -c NativeHello.cpp -o NativeHello.o
    xlC_r -brtl -G -q32 -o libNativeHello.so NativeHello.o
    When I run my HelloWorld java program, it gives this error:
    java.lang.UnsatisfiedLinkError: NativeHello (A file or directory in the path name does not exist.)
    However, when I change the build lines to use -q64 instead of -q32, my hello world program works just fine.
    So I am suspecting that Java is not expecting my shared library that was compiled as 32 bit.
    How can I correct this problem? Is there any flag that I might be missing? Or do I need to build separate libraries for 32 bit and 64 bit environment?
    Thanks for your help in advance.

    This is not a java problem.
    It is a VM problem.
    So for the VM (vendor and version) that you are using it requires certain things.
    It might be that the VM doesn't load 32 at all. Or that you have to do something different when you compile it.
    A forum that is specific to your VM might be more productive (this site tends to be strongly solaris/linux/windows.)

Maybe you are looking for

  • Problem with a display lighting

    Problem with a display lightring. What is it and how can I solve it? Thanks! Mikhail

  • Why is EXIT_SAPMM06E_017 triggered more done once por a PO line?

    Hi experts!! We have some code placed in EXIT_SAPMM06E_017 within a project. This code reads documents associated to the material in the PO line and writtes ( associates)  these documents to the PO line. We wanted this exit to trigger only once when

  • HELP! I have the "Warning: SUID ArDA" issue and now my Mac is in trouble. Can't ignore as the usual ArDA issue.

    I did a verify and repair disk and this was prompted on my screen. Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired. Open error 1: "Operation not permit

  • Filters in OWB

    Hi, Could anyone direct me to any document (or any simple guide really) on how to supply filter conditions in OWB specifically for when you want to filter DATE data types. Thanks, _lilim                                                                

  • 'Numbers' Effect Crashes Ae CC

    Hi all, I'm getting the following error message: After Effects error: crash occurred while invoking effect plug-in "Numbers". whenever I use the effect text > Numbers (i'm just applying to a solid for now). Which is followed by a crash. I've used thi