[SOLVED] GCC multilib: cannot find shared library

Hi,
I'm trying to compile a systemc program to a 32-bit executable on arch x86_64.  I'm using GCC multilib.  Program compiles fine, but I get the following error when trying to run.
/home/[myusername]/workspace/systemc_test/Debug/systemc_test: error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory
Compiler:
g++ -std=c++0x -DSC_INCLUDE_DYNAMIC_PROCESSES -I/usr/local/systemc/include -O0 -g3 -Wall -c -fmessage-length=0 -m32 -MMD -MP -MF"main.d" -MT"main.d" -o "main.o" "../main.cpp"
Linker:
g++ -L/usr/local/systemc/lib-linux -m32 -o "systemc_test" ./main.o -lsystemc
ls /usr/local/systemc/lib-linux/
libsystemc-2.3.1.so  libsystemc.a  libsystemc.la  libsystemc.so  pkgconfig
What am I doing wrong?  For the record, this works fine on Ubuntu (64-bit with multilib) using the same version of the systemc library, compiled and installed in exactly the same manner.
Thanks!
Last edited by kamz (2014-08-04 02:38:02)

You're correct -- doesn't find that path.
ldd systemc_test
linux-gate.so.1 (0xf77ac000)
    libsystemc-2.3.1.so => not found
    libstdc++.so.6 => /usr/lib32/libstdc++.so.6 (0xf768f000)
    libm.so.6 => /usr/lib32/libm.so.6 (0xf7643000)
    libgcc_s.so.1 => /usr/lib32/libgcc_s.so.1 (0xf7628000)
    libc.so.6 => /usr/lib32/libc.so.6 (0xf7465000)
    /lib/ld-linux.so.2 (0xf77ad000)
Adding /usr/local/systemc/lib-linux to LD_LIBRARY_PATH solves the problem.  I used a script under /etc/profile.d/ to set this at session start, so I now consider this solved.  Out of curiousity, is it possible to avoid having to do this?

Similar Messages

  • [SOLVED] Samba can't find shared library libsasl2.so.2

    Samba is installed but won't start. systemctl status smbd.service returns:
    smbd.service - Samba SMB/CIFS server
    Loaded: loaded (/usr/lib/systemd/system/smbd.service; enabled)
    Active: failed (Result: exit-code) since Wed 2013-05-22 10:17:03 EDT; 41min ago
    May 22 10:17:03 andydesktop systemd[1]: Starting Samba SMB/CIFS server...
    May 22 10:17:03 andydesktop smbd[1421]: /usr/bin/smbd: error while loading shared libraries: libsasl2.so.2: cannot open shared object file: No such file or directory
    May 22 10:17:03 andydesktop systemd[1]: smbd.service: control process exited, code=exited status=127
    May 22 10:17:03 andydesktop systemd[1]: Failed to start Samba SMB/CIFS server.
    May 22 10:17:03 andydesktop systemd[1]: Unit smbd.service entered failed state
    I have updated with pacman -Syu and installed libsasl. I tried enabling the testing repositories, but I don't think it found a newer version (not 100% sure about this but it is still broken). pacman -Qi libsasl returns:
    Name : libsasl
    Version : 2.1.26-2
    Description : Cyrus Simple Authentication Service Layer (SASL) Library
    Architecture : x86_64
    URL : http://cyrusimap.web.cmu.edu/
    Licenses : custom
    Groups : None
    Provides : None
    Depends On : openssl krb5
    Optional Deps : None
    Required By : cyrus-sasl libldap
    Optional For : None
    Conflicts With : cyrus-sasl-plugins
    Replaces : None
    Installed Size : 582.00 KiB
    Packager : Bartłomiej Piotrowski <[email protected]>
    Build Date : Sat 11 May 2013 02:33:27 AM EDT
    Install Date : Wed 22 May 2013 10:41:32 AM EDT
    Install Reason : Installed as a dependency for another package
    Install Script : No
    Validated By : Signature
    locate libsasl2 returns:
    /usr/lib/libsasl2.so
    /usr/lib/libsasl2.so.3
    /usr/lib/libsasl2.so.3.0.0
    Seems to me samba's looking for an older version of libsasl, but I'm not sure which one to downgrade to - or if that's even the right solution.
    I found some info in this topic but I still can't figure out how to get so.2: https://bbs.archlinux.org/viewtopic.php?pid=1272906 I did notice that my libsasl was built a day after the one in that thread; maybe they changed something?
    Any help is greatly appreciated! Thanks!
    Last edited by andybp85 (2013-05-22 17:00:11)

    karol wrote:/usr/bin/smbd is provided by samba, not smbclient.
    But smbd is linked to a lot of libs from smbclient. If one of those libs is linked to libsasl2.so.2, you would get this same error.
    Check it out, smbd isn't linked directly to libsasl at all. objdump -x /usr/bin/smbd | grep NEEDED

  • CANNOT FIND COMPUTER LIBRARY

    AFTER UPGRADE SOFTWARE OF APPLETV (2 GEN) CANNOT FIND COMPUTER LIBRARY...
    I FIND TO RESET IMPOSTATION WITHOUT SOLUTION...

    I had the same problem, following is what I did to solve my problem, hope it helps. I posted this on another thread.
    Just got my ATV3 talking to iTunes again, I can see my library and the airplay is working again.
    Here is what I did, I'm using a Win 7 pro system, not sure about Mac's but the problem could be related.
    The culprit was Bonjour, I went to control panel>administrative tools>services>Bonjour service, from there I right clicked and selected properties. Selected startup type then disabled, click apply, then set it back to automatic, apply again. Not sure if this helped but I then selected stop and restart several times (located upper left). Rebooted, started Itunes and ATV, there it was all back to normal.

  • I just downloaded itunes to my PC but cannot find the library page to start transporting music files

    I just downloaded itunes to my PC but cannot find the library page to start transporting music files  ?????

    I have music on a stick drive which I want to transport to itunes on my desktop PC running Vista.  I  downloaded itunes but cannot find a page on itunes to load the music onto..               When I put the stick into the USB port,   an AutoPlay box comes up which says Play   using .Windows Media Player..............Import  music, pictures, video  using Real Player.   Open folder to view files using Windows explorer      etc.....& set Auto Play Defaults in control Panel.                            By library page, I mean the page on itunes where the music would be transported to & listed by each name so I can listen to it.

  • I cannot find my library

    I have Pages Templates in the "My Templates" section. I would like ot delete some of them, but I cannot find the Library folder in my home folder. It is simply not visible in the finder window. This is quite perplexing. Any advice?

    In the Finder, hold down the option key and select Go > Library from the menu bar.

  • Cannot Import Shared Library

    I get the following errors for various functions.
    1.
    PREF0 PREF1 PICO_STATUS PREF2 PREF3 (ps5000aFlashLed)
    int16_t handle,
    int16_t start
    The following symbols are not defined:
    PICO_STATUS; int16_t;
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add preprocessor definitions. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    The following header file was not found in the specified header file or one of the referenced header files:
    - stdint.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
    2.
    The function cannot be imported into LabVIEW. This might be caused by one of the following problems:
    The function is not declared in the header file but is exported in the library.
    Check the header file to make sure it contains declarations of the function.
    Undefined symbols can prevent the wizard from recognizing functions and parameters. To correct this problem, check the header file to determine if you must add preprocessor definitions. Click the Back button to return to the previous page of the wizard to add a preprocessor definitionsl (for example, "NIAPI_stdcall = __stdcall" or "NIAPIDefined = 1").
    DYNLINK;PREF0;PREF1;PREF2;PREF3;WIN32;_USRDLL;__cplusplus;
    The following header file was not found in the specified header file or one of the referenced header files:
    - stdint.h
    To fix, click the Back button to go to the previous page and add the header file path to the Include Paths list.
    The attachment has the dll and .h file from which I am trying to import functions. As well as a screenshot of the error.
     I would sincerely appreiciate any help.
     

    Hi Lanom,
    My name is George and I work as an Applications Engineer at National Instruments. I’ve been looking into your problem with importing a shared library into LabVIEW.
    For error 1 you are trying to include stdint.h in your header files but you either do not have this file or the wizard cannot find this file. I have included the path to where I found the file below, if you find and add this file to the folder that contains the other header files and add that folder as an included path in the shared library import wizard this error should be fixed.
    C:\Program Files (x86)\National Instruments\CVI2013\include\ansi\stdint.h
    Error 2 is being caused by functions being undefined. You have 2 functions, “ps5000ApplyFix()” and “ps5000aConvertStreamingDataInternal()”, that have not been defined in the same way as your other functions and so cannot be imported. If you define these 2 in the same way you have defined the others this should be fixed. You also appear to have a duplicate of all of your functions included in the .dll that are not defined. If these functions with "-2" are not intentional re-create the .dll file without these functions and this error should be fixed. If these functions are intentional then they will also need to be defined like the others.
    Let me know if this fixes your problem and if you have any more questions with these steps or you have any other problems let me know and I will do my best to help.
    Regards,
    George

  • Urgent help needed as is duty free purchase cannot find my library

    I purchased 16Gb Touch and downloaded on wi fi ITunes account 64 songs last night - today Apple told me to update to latest version which I did and then said there was a a problem with Ipod and to restore which I did reluctantly - I now have no music on my Ipod and cannot find library or music on my ITunes - it says there are two downloads available but when I click to download it says ITunes store temporarily unavailable and has said that for over 24 hrs. I leave tomorrow and need to know this thing is working!! Thanks - perhaps advice on how to retrieve the music I have paid for!! Can't seem to get help by phone or email

    You didn't sync the iPod to back it up prior to updating/restoring? A must-do, for future reference.
    What you'll likely have to do is email iTunes customer service and ask to re-download these songs.
    http://www.apple.com/support/itunes/store/browser/
    It typically takes them 24-48 hours to respond to requests, so be patient if you haven't heard back from that yet. In the meantime, we should get the "iTunes store unavailable" message resolved, so that if/when the purchases are back in your download queue, you can download them again.
    What version of iTunes are you running? (Help > About iTunes)
    Also, what security software/firewalls do you have running on your PC?
    CG

  • [SOLVED] internal error Cannot find suitable emulator for x86_64

    Hi,
    After a reboot due to unrelated issues, virt-manager is not showing any of the VMs I had configured via qemu:
    I checked connection properties, and everything else is showing up correctly, like the networks and storage. I tried to create new VMs out of existing storage and got this message:
    Googling it suggested this happens when KVM module is not loaded. I modprobed kvm, kvm_intel and still got same result.
    Systemd gave me the following:
    % systemctl status libvirtd
    libvirtd.service - Virtualization daemon
    Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled)
    Active: active (running) since Sat 2013-06-08 08:55:19 IST; 29min ago
    Main PID: 1499 (libvirtd)
    CGroup: name=systemd:/system/libvirtd.service
    ├─ 834 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf
    ├─ 863 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/nat_static.conf
    ├─ 881 /sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/closed_dhcp.conf
    └─1499 /usr/bin/libvirtd -p /var/run/libvirtd.pid
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:07:48 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:20 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:20 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:35 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Jun 08 09:08:35 core libvirtd[1499]: internal error Cannot find suitable emulator for x86_64
    Googling that seems to indicate that this happens when virtualization is disabled by BIOS. But cpuinfo tells me that vm is supported:
    % grep vmx /proc/cpuinfo | uniq -c
    8 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
    Can anyone help me? Has anyone else faced a similar problem?
    Here are some version info:
    local/libvirt 1.0.6-1
    API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)
    local/qemu 1.4.2-1
    A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation.
    Of which, qemu got updated just today. I will try rolling back to older version and post and update.
    Ninja edit: Looks to be qemu. Just running qemu gives me this error:
    % qemu-system-x86_64
    qemu-system-x86_64: error while loading shared libraries: libiscsi.so.1: cannot open shared object file: No such file or directory
    EDIT: The resolution was
    pacman -S libiscsi libaio
    systemctl restart libvirtd
    EDIT2: Made subject line better searchable
    Last edited by railmaniac (2013-06-08 04:19:24)

    HI,
    First of all thanks a lot for this post. I am facing the same issue since yest.
    After reboot, my VMs gone missing and even virt-manager was not working (as shown in the screenshots which you have pasted in your post).
    Now after trying out the workout which you had mentioned, I am able to get the virt-manager working.
    But I am not sure if I can get back my missing VMs .
    I am new to linux. Kindly guide me on how I can get back those VMs.
    [root@skoduri lib64]# ls /etc/libvirt/qemu/
    networks  rhel6-vm2.xml  rhel6.xml
    [root@skoduri lib64]#
    [root@skoduri lib64]# ls /etc/libvirt/storage/
    autostart  default.xml  storage_1.xml
    [root@skoduri lib64]#
    [root@skoduri lib64]#
    Thanks,
    Soumya

  • Cannot find media library

    Hi All,
    I have recently a problem with my ATV that it cannot find my Media library. A restart of iTunes does fix the problem immediately. I'm just curious why I have this lately.
    Here is my setup:
    iMac (late 2012) using a Ethernet cable
    ATV 2n GEN using wireless, the ATV is in the same room as the wireless router. I never had any streaming issue.
    I do assume since a restart of iTunes fix it, it is a issue with iTunes or my iMac.
    Thanks,
    Edy

    Have you tried using spotlight to locate these files?  Some times EasyFind will do a superior search:
    https://itunes.apple.com/us/app/easyfind/id411673888?mt=12
    Ciao.

  • Linux Cannot Create Shared Library to call from Labview. Anyone have any ideas?

    Hi there.  A while back i created a shared library (.dll) to call in labview which works great.  Lately i have been using Linux more and more and was hoping to recompile the shared library for use in Linux Labview.  My first go I am getting the following error #error "Unknown Linux platform"   from the platdefines.h.   Evidently it does not like my system.  Using QT creator on linux mint 64 bit.   Anyone have any ideas on how i can get this working?
    thanks so much!

    I have a few version questions: What version of Windows was this DLL orignally created in? What version of LabVIEW are you using? What version of Linux are you using? 
    I think you will also find this previous discussion forum thread useful: http://forums.ni.com/t5/LabVIEW/Calling-DLL-on-LabVIEW-for-Linux/td-p/58322

  • 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.)

  • Itunes 11, can't find shared library

    Have to say.... so far I'm not very happy with itunes 11. A lot of what used to be intuitive is now cryptic.
    I guess along that line...
    I have a sizable library of music & vids on my main system that used to be easily accessible from my macbook's itunes. It simply showed up in the sidebar as a shared library. Nothing on the main system has changed. It's still set up for sharing....
    How can I get itunes on my macbook to do what it used to do... to display shared libraries??????
    Thanks.

    See Empty/corrupt library after upgrade/crash.
    tt2

  • Ipod cannot find my library since I moved it to an external hard drive

    Ipod classic 80gb - Windows XP - HP Notebook - ... I recently moved my itunes music folder (which is exclusively music ripped from my CD collection) to an external hard drive. It was taking up too much space on the C drive. I sorted it all into playlists and everything appeared fine. I attached the ipod and held control/shift so it would not sync. I opened preferences/advanced and clicked the change button and selected the new location of the library. Everything still fine. Music plays on computer, so it is time to sync the new playlists to my ipod. When I try I get the message that a new library is found and would I like to erase the ipod and sync the new library. The problem is that the library is now empty. Anybody any idea what has happened? I do notice when checking through Windows My Music that my music files on the external hard drive are MP4 .. is this the correct format for the ipod to find them? I am now totally unable to find that library in itunes. I have unchecked the automatic sync but will want to sync to get those playlists to the ipod. Thanks.

    iPods don't look for the library. iTunes does.
    I recently moved my itunes music folder
    Don't move your music folder.
    Let iTunes do it.
    Point iTunes prefs to the location where you wan tit.
    Then go to menu Advanced -> *Consolidate library*.
    This will copy the iTunes music folder to the location in iTunes prefs.

  • I cannot find my "library" of iTunes songs which were transferred from my iPod to my iPad. How can I find it?

    I have downloaded iTunes onto my iPad and see that many of my songs of have been transferred from my desktop iTunes library as well as my oops. but now I can no loner find the "library" and quite a few of the songs I has added to it via CDs I downloaded? How can I find that Library.?
    thanks  jimmydin43

    Refer to this article:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/HT1203

  • TA24640 my apple will not home share cannot find my  library

    my apple tv will not home share and will not find my library,everything else is working including you tube etc.

    Have you checked both devices are using the same network and that your firewall or security software aren't blocking iTunes.

Maybe you are looking for

  • Getting jbo-26080 from BC4J Tester

    I just created a master-detail relationship in Jdev 3.2 BC4J. I want to test the relationship in the Tester. I am able to insert one detail record for the master. When I am trying to insert the second detail record I am getting the following error me

  • Error message in BAPI_REQUISITION_CHANGE

    Hi  gurus . I've got an error message : Runtime Errors         CALL_FUNCTION_UC_STRUCT Exception              CX_SY_DYN_CALL_ILLEGAL_TYPE   The reason for the exception is:   In the function "BAPI_REQUISITION_CHANGE", the STRUCTURE parameter    "REQU

  • Problem with protected access

    I'm studying for the JCP exam. I've come across a question: True or false: If class Y extends class X, the two classes are in different packages, and class X has a protected method called abby(), then any instance of Y may call the abby() method of a

  • PORDCH01 IDOC

    Hello, Pls let me know if anyone knows how to implement below functionality. Below scenario happens in same SAP system/same company code and between Customer (buyer side - MM Module) and Vendor (Supplier side - SD Module) 1) Purchase order in custome

  • Can't get beyond the spinning beach ball when I open mail

    I am running 10.3.9 and when I launch Mail, it opens about a dozen different mail messages and the beach ball starts spinning. After a few force quits and disk utility repair permissions, I am stuck. Please help! Thanks! Brian