[solved] C++ shared library requests 3.4.11 when I only have 4.2?

Hi all,
I use Eclipse CDT and have a project consisting of an executable which calls on .so dynamic libraries for functionality. My executable can also compile into a Matlab mex-file, so that I can do mathematical analysis on the results.
This has been working pretty well for about a year, but recently Matlab refused to call any of my dynamic libraries, with the following error message:-
/home/LinuxProg/Matlab/bin/glnxa64/../../sys/os/glnxa64/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./libs/inAD.so)
The exact same code (except for the matlab wrapper) works externally to matlab. Confusingly, if I compile the executable and dynamic libraries with -O0 instead of my normal -O2/3, it works fine.
My idea is that its perhaps due to some mismatch between gcc versions, as that's what was updated recently I think, but it has run properly a few times before this started becoming an issue, after the latest gcc update to 4.4.2.
Anyway, that's the situation, does anyone have any idea what's may create such an issue? Suggestions on things I can try are appreciated as well.
EDIT: Sigh, spend a week cracking your head on an issue and you find the answer 10 minutes AFTER posting a question on the boards... I worked around the issue by moving matlab's built-in gcc out of the way and symlinking the system gcc.
Last edited by ngoonee (2009-12-15 09:07:46)

Just to add, I just installed Matlab 2010b, and had to troubleshoot this again (gcc is at 4.5 here).
Going to $MATLABROOT/sys/os/glnxa64 and moving libstdc++* and libgcc_s* out of the way (no need to link, it'll automatically look for system versions) is just part of the puzzle.
Additionally you have to go to $MATLABROOT/bin/glnxa64 and move libdc1394.so.22* out of the way. Without that, I was getting an error about:-
??? Invalid MEX-file
'xxx.mexa64':
libraw1394.so.8: cannot open shared
object file: No such file or directory.

Similar Messages

  • [Solved] overall shared library issues

    Hey, I'm having some trouble. I recently borked my system and did a reinstall. I made a list of packages before I reinstalled and after reinstalling, I intalled everything from that list. However, When I did so, I forgot to enable multilib first. Now I constantly get "libXYZ.so.I was not found, no such file or directory." Is there an easy way to fix this?
    Last edited by herrflockig (2012-10-16 01:35:38)

    Alright so I wrote this little script to check for missing files in all of my packages, and nothing shows up.
    #!/bin/bash
    pacman -Qdq |
    while read package
    do
    for file in $(pkgfile -l $package | cut -f2)
    do
    if [ ! -f $file ] && [ ! -d $file ] && [ ! -L $file ]
    then
    echo $file
    fi
    done
    done
    So none of these shared libraries are actually missing. Here's a specific example: winetricks throws this error at me when I try to install vcrun2010:
    err:module:load_builtin_dll failed to load .so lib for builtin L"msxml3.dll": libxml2.so.2: cannot open shared object file: No such file or directory
    But I know for a fact the libxml2.so.2 exists in /usr/lib/ and libxml2 is installed and up to date.
    This is just one example this happens with several programs and with different shared object files each time. Any suggestions? Should I just reinstall again but properly this time?
    Last edited by herrflockig (2012-10-15 12:13:38)

  • Automatic transfer of Shared Library: does it "catch-up" when Mac back on?

    I setup this feature and it works great, although it seems that both computers must be on and iTunes running for it to work.
    Now, if the Mac (or PC) that "subscribes" to the main Mac's library (where I purchase music) was turned off, does it "catch-up' and transfers all purchases that have been made since it was last turned on?

    Hi,
    See if these Links for Home Sharing add any light to the problem
    Understanding
    http://support.apple.com/kb/HT3819
    Troubleshooting
    http://support.apple.com/kb/TS2972
    How to
    http://support.apple.com/kb/HT2688

  • "Look for libraries to share" does not appear in the Shared pane under preferences.  I'm trying to see my fiances shared library.  She can see mine. I have selected share entire library.  Help please!

    Cannot see my fiance's library but she can see mine.  Checked all appropriate boxes to share entire library.  Help syays to check under Shared which does not even appear anywhere.  It also said to check the "Look for share libraries" under shared pane which also does not exit in that pane. I am Windows 7 and she is Macbook.  Thanks

    I'm using an Airport Extreme, and I'm not aware of UPnP settings in the Airport Utility.
    On the Mac, I set up a Parallels Vista instance in bridged mode and verified that I can see the other Vista PC share folders, so I know that the Vista PC has been set up correctly.
    Additionally, as mentioned before, I switched DNS Servers several times, but settled on an alternative Rogers DNS to avoid their awful failed lookup ad page (64.71.255.202 if anyone needs it).
    I also tried adding the Vista PC IP to my Mac hosts file, which oddly showed the Mac on the Vista side, but nothing on the Mac side.
    I also goofed around in the smb.conf file with some settings, but alas, nada.
    The only thing that might explain why the Airport Express network (Vista, XP) provided me with shares in the sidebar and not my own Airport Extreme network (just Vista) could be that it's a master browser issue. I saw a couple of posts about this.
    If the Vista machine is the master browser, nothing will show in the sidebar, but if XP or a Mac is the master browser, then the sidebar will show shares. I don't have a way to verify this as I'm not sure how to force one machine to be a master browser over another. I'm suspicious if this will do anything as I've found other posts saying exactly the opposite scenario.
    Is there anyone out there that has had a network, possibly with Airport Extreme, one Mac (Leopard), one Vista PC, and Vista share is showing in the Finder sidebar?

  • How do I turn home sharing on for my Apple TV if I only have a iPad any my remote is dead

    How CEO you turn on home sharing in your Apple TV if you can't turn Apple TV on

    Setup Apple TV with iPad
    1. Setup Apple TV
    (a) Connect cables and power cord
    (b) Turn on TV and select Input
    (c) Configure Apple TV e.g. Language, network
    2. Setup Home Sharing on iPad
    Settings>Music/Video>Home Sharing
    3. Setup Home Sharing on Apple TV
    Settings>Computer>Turn on Home Sharing. Enter Apple ID and Password
    4. Pair Apple TV with Remote Control
    General>Remotes>Pair Apple Remote

  • Library is 3.07 GB but I only have 95 photos!

    So I've gone through and deleted all of the photos on my iPhone, but there was still over 2 GB of photos on it. I don't know what to do here, and I really need some extra space on my phone.

    Why does my iOS device say I have more photos than I can find?

  • Itunes is telling me that my iphone is synced with another itunes library, how is this possible if i only have one computer?

    The "manually sync music" box is unchecked and it wont let me check it without deleting the music currently on my iphone.

    That is true.
    You can either manually mange or sync, not both.
    If you change from one to the other, then it will erase the current content and replace with the content now selected.

  • Deleting the  Shared library in oc4j instance of Oracle Application Server

    Hi Friends,
    I am using Oracle Application Server (10.1.3.4.0). I have some system level shared libraries. When i am deploying the application in home instance the application is deploying fine, but when i create an another instance using the default group i am getting two more system level shared libraries that are not present in the home instance. Because of this two shared libraries i am not able to deploy the application.
    Is there a way to delete the system level shared libraries. If so provide the related information. If there is any other alternative solution provide me that also. This is very urgent to me. Please help me in resolving this issue.
    Thank You,
    Ravi kumar.

    Hi Shail,
    i referred the link you have sent it was helpful to me, but the thing is while deleting the shared library apache.webservices it is saying the shared library is in use. When we brought down the Application Server and try to run the removeSharedLibrary command we got other error.
    Error: "Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    Is the way which i have done is correct ?? Please reply me.
    Thank You,
    Ravi kumar.

  • Homesharing won't drag and drop songs onto a shared library

    Homesharing won't drag and drop songs onto a shared library. Both computers are authorized and both have "homesharing" turned on. Any help?

    Rather than dragging and dropping, try this.
    In the computer you're moving music to, select the home shared library you're moving music from, as per the following screenshot:
    Select the songs you want to transfer. Now click the "Import" button down in the the bottom-right-hand corner of the screen, as per the following screenshot:

  • ATV Shared Library Disconnects - only reconnects if i restart Itunes on ser

    Help! I have recently tried to set up an all apple house, have itunes library running on macmini server shared (not via home sharing, but just via sharing) so that MacBook Pro, Apple TV etc can connect to the server library. Seemed to work fine, but recently the ATV "looses" the shared library. When i go into "Computers" I can see the shared library greyed out. If I click on it it only gives the option to disconnect, even though none of the shared folders are visable via the menus. If i close itunes on the server and then open it again it seems to reset the connection and the shared library is again available on the ATV, or if i disconnect and then reconnect as a new shared library it works but i dont want to have to do this every time i want to use the ATV - does anyone know why this is happening or have any ideas how to fix it? Thanks in advance for any advice (this is all new to me!!!!

    I know that the shared computer you are trying to listen the music on must be on iTunes.  It makes no sense, however, if the OTHER computer which hosts the library also has to remain on all the time.  If that's necessary why not just listen to the host computer?
    c

  • Exceptions not caught in shared library when compiled under Sun Studio 9

    I realize it's a fairly old version of Sun Studio, however if at all possibly we'd like to avoid updating to the latest.
    Sun Studio 9, version reports
    version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.6 2004/07/15
    version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.6 2004/07/15
    uname -a
    SunOS sunblade 5.9 Generic_118558-27 sun4u sparc SUNW,Sun-Blade-100
    The problem is within our shared library a function calls another method within a try/catch block. This method then sometimes throws an exception which does have a matching catch block. On all other systems (Windows, AIX, HP-UX, Linux) the code works, the exception is caught and handled. On Solaris with Sun Studio 9 though, the exception is ignored and instead triggers an abort and core dump.
    Stack Trace:
    ffffffff7daa871c lwpkill (6, 0, ffffffff7fffd9c0, ffffffff7d3064d4, 2, ffffffff7fffd9ec) + 8
    ffffffff7da3e4b8 abort (ffffffff7d40dac8, ffffffff7d40cc38, ffffffff7d411e78, 10604c, 2, ffffffff7d40dac8) + 100
    ffffffff7d3064d4 __1cH__CimplRdefault_terminate6F_v_ (ffffffff7d40dac8, ffffffff7d40cc38, ffffffff7d411e78, 10604c, 104e40, ffffffff7d3064d0) + 4
    ffffffff7d3062b4 __1cH__CimplMex_terminate6F_v_ (ffffffff7d40de40, 0, 0, ffffffff7d40de40, ffffffff7d40c978, 1) + 24
    ffffffff7d306f04 exthrow_body (ffffffff7d40de40, 0, 0, 105af4, 52, ffffffff7d40e2e8) + 84
    ffffffff7d306e58 __1cG__CrunIex_throw6Fpvpkn0AQstatic_type_info_pF1_v_v_ (ffffffff7d40dec8, ffffffff7f0dea78, ffffffff7ecb6b28, ffffffff7d40de40, 0, ffffffff7d40de40) + 3c
    ffffffff7ecb6d90 __1cLIGExceptionFThrow6FnQenumIGErrorCodes_pkcxxp2x_v_ (fffffffffffff3e3, 0, 0, 0, ffffffff7f1187da, a0) + 80
    ffffffff7ecb6e78 __1cOThrowException6FnQenumIGErrorCodes_pkcxxp1x_v_ (fffffffffffff3e3, 0, 0, 0, ffffffff7f1187da, a0) + 30
    ffffffff7f083304 __1cSIGRasterProcessingNVerifyPalette6FpnMIGRasterPage_nTenumIGContrastModes__v_ (1001f3c10, 0, 0, 0, 0, 0) + b4
    ffffffff7f083760 __1cSIGRasterProcessingOInvertContrast6FpnMIGRasterPage_nTenumIGContrastModes_nTenumIGColorChannels_pnPtagAT_RECTANGLE__v_ (1001f3c10, 0, 0, ffffffff7fffe1a8, 0, 0) + 20
    ffffffff7f039a2c iIG_IP_contrast_invert (1001f3c10, 100162b10, 0, 0, 0, 0) + 104
    ffffffff7f039ba0 iIG_IP_contrast_invert_masked (1001f3c10, 100162b10, 0, 0, 0, 0) + 80
    000000010000b4e0 ipcontrast_invert_notify (10014d000, 10014d, 0, 100000, 100162000, 100162) + 48
    Try/catch block:
         try
              <Triggering function>
         catch(const IGException& ige)
              <Handling Code>
    The code which throws the exception is a static method of IGException which has a basic throw line:
         throw IGException(...);
    Source code is compiled with the following flags, none of which I could find any info to suggest affect this:
    CC -c -Xt -xCC -misalign -xarch=v9 -O
    Linking of the shared object is then done via the following, again nothing obvious that could cause issues. mapfile is an empty file.
    ld -o <outputfilename> -G -z textoff -M mapfile -z noversion -64 -h <outputfilename> <object files> -L/opt/SUNWspro/lib/v9 -lCrun -lX11 -lc -lm
    I did read somewhere mentioning to make sure to use RTLD_GLOBAL if using dlopen on the .so, but the test app is using ld to link the library.
    Does anyone have any ideas why with the Sun Studio 9 compiler these exceptions are not being caught? Based on the fact they are caught on all other compilers, i'm guessing this issue is with the compiler.
    Also, as a test it seems that if the shared object is not built as a 64-bit object, then everything works. The issue only seems to occur when it is a 64-bit object. Likely an issue with the 64-bit compiling?
    Edited by: 837682 on Feb 17, 2011 9:23 AM

    As the other poster pointed out, you need to link the shared library using CC, not ld. I should have noticed that error in the original post.
    Try using CC instead of ld in your link command. The CC command causes additional files to be linked into the shared library that are required for proper operation, and particularly for exception handling. I think that is the actual source of your problem.
    You should not use -L options that point into the compiler installation area, and when you use CC to link, you don't need to.
    I'm surprised that you seem to have a copy of libCrun.so.1 in the compiler installation area -- that should not be the case. The the only versions of libCrun should be static libraries libCrun.a. You almost never want to link with a static version of a system library, and absolutely never when building a shared library. The file /opt/SUNWspro/lib/libCrun.so.1 ought to be a symbolic link pointing to /usr/lib/libCrun.so.1, but if that were the case, the version command would have the same output.
    By any chance, did you install your compiler by copying it from another installation? If you do that, you need to use tar, not cp, to ensure that symbolic links are preserved.

  • Application Launch Failures after Update: shared library error

    Soon after installing the latest Security and Operating System Updates, I discovered that I could no longer run Microsoft Office. I get the following error message when attempting to open any of the components: Application Launch Failure The application "Word" could not be launched because of a shared library error: "3<Microsoft Word><CarbonLib><CFMPriv_CommonPanels>" I have tried reinstalling the updates but it hasn't helped. I can't reinstall Office because the same error message comes up when I try to open the Microsoft installer. Can anyone help? I'm stuck. Thanks.

    Again, thanks.
    It's somewhat confusing. The folder /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework
    contains 3 items, a gray screen marked Common Panels with a small arrow pointing to the lower left edge, a folder marked Versions (which holds folders marked A and Current), a folder marked Current (which has a small arrow pointing to the lower left edge and holds a gray screen marked Common Panels and a folder marked Resources) and a folder marked A (which also contains a gray screen marked Common Panels and a folder marked Resources. When I click the gray screen marked Common Panels, I get a message that there is no default application specified to open the document "CommonPanels".
    I'm not sure what all that means. Are there too many Common Panel screens? Does the small arrow have any significance? I've also discovered that, in addition to not being able to run Office, I can't install any new applications (same CarbonLib error message). If you think I need to archive and install the System, I can try to do so.

  • Any way to update playcount when track is played via shared library?

    Hi, I have a laptop and other computer that accesses a shared library on my main PC. This "central" library contains all the podcasts I listen to, and syncs with my iphone. In the past It's been extremely convenient that itunes would delete podcasts for me when they are played from the "central" itunes pc or on the iphone, so I would only have the latest. But now I've started listening to podcasts on computers which connect to the shared library, I'm having to remember which podcasts have been listened to later, and delete or mark as played manually, which is a nuisance.
    SO, my question is: is there any option or even a known workaround available that would have the shared library mark a podcast as played (i.e. increase the playcount) when it is played on a computer that connects to it via sharing? Thanks

    It doesn't work as I expected. This is what I tested:
    Find song that is on both Mac & Win7 machines. Take note of each playcount.
    Mac playcount     Win7 playcount
    2                         7
    Play song on Mac.
    Mac playcount     Win7 playcount
    3                         7
    I expected the Win7 playcount to increase to 8, as well, but it didn't.
    Play song on Win7.
    Mac playcount     Win7 playcount
    3                         8
    I expected the Mac playcount to increase to 4, but it didn't.
    Play song on Mac through homesharing (the Win7 song actually gets played)
    Mac playcount     Win7 playcount
    3                         9
    OK, I guess this is all this homesharing feature does. The Win7 song actually got played so its playcount got updated from the Mac.

  • Ipad does not open shared library

    I have set up home sharing on my windows pc and ipad 4. I can see my shared library on my ipad but when I select it nothing happens. The icon changes into "thinking" and next itunes shuts down. So i cannot view and play the content of my shared library on my ipad. Also, my apple TV does not recognize my Ipad. The pc works fine with apple tv. Can anyone help me?

    This is a common problem. Using a different USB port may resolve the issue.

  • Update to OS 10.6 yields no "Shared Library"

    My housemate just upgraded to OSX 10.6.6 from 10.5. After making this jump, his shared library on my AppleTV has gone missing. He is unable to connect using the "Connect to AppleTV" on the bottom right of the iTunes window, and the AppleTV does not see his computer as a shared library anymore. I recall when I upgraded to SnowLeopard, I had to resync my entire library to the AppleTV (first gen). Any suggestions as to how to get his machine up and running with my AppleTV?

    Someone will say "Restore your backup, the backup you made before you upgraded to 10.6.5." Just warning you.
    I'm also using 10.6.5 but I've not seen what you're describing. Maybe something is that more specific to your setup is causing it. If you export a QuickTime movie is it also fine or is your video output fine? If it is then you can keep working, because you know that the problem isn't affecting your output.
    Going back to 10.6.4 may be the thing to do, and yes you'll need to wipe your drive. So back up your system as it is now just in case the 10.6.4 reinstall fails spectacularly.

Maybe you are looking for

  • 30 GB Video iPOD won't sync purchased songs from iTUNES.

    Previously, on the same computer, I have synced purchased songs from my Itunes library to my iPOD. Now, suddenly, an error message says that I'm not authorized to do so. I use my computer in two countries, the US and Taiwan, and wonder if this has an

  • Maximizing a window.

    When clicking on the Green + button to maximize an application window, not all application windows fills the whole screen . Is there a way to ´force´this.

  • Deployment on WebLogic 7.0

    Hi, I'm trying to deploy Kodo 2.2.5 on WebLogic 7.0. I copied the kodo.rar file to the deployment directory for my WebLogic server and entered my configuration (ConnectionDriverName, ConnectionURL,...). But now I get the following error message when

  • Force quitting open windows in safari

    Every time I open Safari, I get a pop-up window that will not close. Cannot access reset Safari from drop down menu. Can only force Safari to quit. Is there a way to reset Safari or close these unwanted windows. Cannot do anything, go to other sites,

  • Brodcasting the message in the lan.

    hi all, i am writing one messanger program. when ever new user runs the program i want to notify all the computers in the LAN. my issue is how to send message to all computer in the network. please give me some solution.