Any good tutorial on sharing dynamically allocated objects across shared libraries in the same process and between shared libaries and main(). In particular, I need to know what creation and destruction sequences are valid when libraries are being loaded and unloaded. For example, is it valid to allocate an object from inside a shared library procedure, and then delete that pointer from a different module, especially in the case where the allocating module has already been unloaded.
I imagine there might be all kinds of problems with this. Although my preliminary tests seem to work most of the time, I get crashes from time to time, but I'm not sure if they're caused by memory management or by threading issues. I've been restructuring my code to use a global context object to manage object creation and destruction from main(), but I'd like to find a clear exposition of the specific issues I'm dealing with before I go too much further.
I have an application consisting of different processes and all these processes are linked to shared libraries. I start the application (spawn all the different processes) as say user1. Now with the application up, if I run a process p1, the process gets activated and works. However, if I start the same process p1 as a different user, say user2, which is completely different from user1 the process complains of
"error while loading shared libraries:...."
I set LD_RUN_PATH both in compile and runtime environment. LD_LIBRARY_PATH is set correctly in both places.
All the above works if I set the absolute path of the required shared libraries in /etc/ld.so.conf file and rebuild the /etc/ld.so.cache
Alright, just loaded a fresh copy of OpenSuSE 11.3 x64, went to update manager and let it update, came back and computer was shut down. After booting it back up, I cannot update any software, nor run any commands.
Here is my output:
Code: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory I've tried searching for this error, some people came back saying to run this:
But all that happens is this:
Nor ls work either so I'm stuck and thinking about a reinstall.
I don't understand how this system could be so messed up after a failed update.. Used to trust SuSE, not sure anymore after this incident..
just installed Ubuntu 10.04 and installed the flightgear package and the fgfs-base package. I ran fgfs from a terminal and got this error:
Code: $ fgfs fgfs: error while loading shared libraries: libOpenThreads.so.12: cannot open shared object file: No such file or directory $ So then I did: Code: sudo apt-get install libopenthreads12 and it gave me these errors:
I'm trying to run Kega Fusion on my laptop, which can now FINALLY run Linux (ATI drivers finally work on it), and I can't get the emulator to work..
Code: brandon@brandon-laptop:~/Desktop/Fusion$ ./Fusion ./Fusion: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory brandon@brandon-laptop:~/Desktop/Fusion$ uname -a Linux brandon-laptop 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:20:59 UTC 2010 x86_64 GNU/Linux brandon@brandon-laptop:~/Desktop/Fusion$ Help? I have the ATI proprietary drivers installed. I tried without them and it still wouldn't work. (And OpenGL is seemingly working as Compiz Fusion is running. I also tried with Compiz disabled but the same error pops up).
I'm running lucid 32-bit. I get this error when I try to run the installer for Unreal Tournament GOTY:
Code: Verifying archive integrity... All good. Uncompressing Unreal Tournament 436-multilanguage.goty Installer. /home/computer/.setup1548: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory computer@computer-desktop:~/UnrealInstall$ I tried installing libgtk1.2 (as told by some people in other threads), but couldn't do that:
Code: E: Couldn't find package libgtk1.2 However, I checked that I do have libgtk2.0 So what should I do?
After finally getting my wireless/graphics drivers working yesterday (thanks to this forum ) I startx to realize that not a single KDE/Qt application will launch, along with Firefox, or Chrome/Chromium. (I did a full install from the DVD, not deselecting anything, and when I upgraded to -current, I also did the same.)
ark: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory
but I managed to fix that one by commenting out 'aaa_elflibs' in /etc/slackpkg/blacklist (on a recommendation from #slackware), and running slackpkg upgrade-all again, but that's the only one (afaik) that was fixed. Ark still doesn't work, but it doesn't show that error anymore. When I run it, a box pops up that says "Unable to find Ark's KPart component, please check your installation."
Kate still says:
kate: error while loading shared libraries: libkemoticons.so.4: cannot open shared object file: No such file or directory
Now, konsole, firefox, and Chromium's errors are a little different.
konsole: symbol lookup error: /usr/lib/libphonon.so.4: undefined symbol: _ZN9QMetaType15registerTypedefEPKci
Firefox and Chrome basically say the same thing
/usr/lib/firefox-3.6.13/firefox-bin: symbol lookup error: /usr/lib/mozilla/plugins/skypebuttons.so: undefined symbol: _ZN9QListData11detach_growEPii
again, I am completely baffled here, as I had kate, konsole and ark running before I upgraded to -current.
I upgrade the system from 11.1 to 11.2 seems everything work fine, no error no warning, after a reboot the consol show : mount error while loading shared libraries: libvolume_id.so.1: Cannot open shared object file: No such file or directory. when I try to repair the system the repair tool cannot find the root partion,
I installed the latest Gimp beta and it worked fine but then I couldn't open it. I removed it and I reinstalled but it didn't work, so I installed the latest stable version (no beta) and it still does not work, when I open it form Terminal, this is the response:gimp: error while loading shared libraries: libbabl-0.0.so.0: cannot open shared object file: No such file or directory
I have a third party static library (libSTATIC.a) that I cannot recompile into a shared library. I want to create a shared library (libSHARED.so) that uses the functions in the static library libSTATIC.a. Is it possible to do this with gcc/g++?
In other words, when linking a C program with gcc/g++ by using the -shared flag, is it necessary that all libraries invoked anywhere in the program (even low level libraries such as libc for example) be available as shared libraries as well?
I installed perl v5.8.5 built for i686-linux on my system recently. From that day if I want to run my vi edition I am getting the error as: Code: vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
I am using: Code: [root@station130 CORE]# uname -a Linux station130 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
i have a notebook where i wont to install andorid SDK, I have a Debian 6, 64bit that work well.After install android sdk, i test installation but i have this
:~/android-sdk-linux_x86/tools$ ./emulator ./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory i use comand ldd :~/android-sdk-linux_x86/tools$ ldd ./emulator
A newbie trying his hand with openldap.Disclosure: I tried posting at openldap forum, but my message does not appear in the mailing list-- and I didn't receive anything back from that forum, so please don't flame.I use red hat 5.5.I didn't want to use the openldap that is bundled with and installed by the red hat, so I downloaded and installed BerkeleyDB-4.8.30 and openldap-2.4.23.
I can see that the file libdb-4.8.so is in /usr/local/lib and /usr/local/lib is in my path (in my .bashrc).. so why not "read" it from there?How do I solve this problem?
I get the following error: ssh-keygen: error while loading shared libraries: libssp.so.0: cannot open shared object file: No such file or directory
I know it used to work, but I'm not sure if that was on Debian, or Ubuntu (before I switched to Debian over a year ago).
Sorry if this is one of those questions with a blatantly obvious answer. I've spent hours searching the Internet for a solution, and trying various things, but to no avail.
I have even tried downloading libssp.so.0 and putting it into /lib/ and /usr/lib/, but the problem still exists. I've also tried reinstalling ssh, openssh-client, openssh-server, gcc, libc6 and several other packages after clearing Aptititudes cache. I'm aware that some of these may have absolutely nothing to do with the problem, but I am getting desperate here. I can also confirm that screaming and making threats to my monitor doesn't seem to help either. I have a screwdriver and a rather large hammer sat here to use as a last resort, but I hope it won't come to that..
I'm running openSUSE 11.0 (X86-64) and just installed skype 184.108.40.206. When starting it, I get skype: error while loading shared libraries: libQtDBus.so.4: wrong ELF class: ELFCLASS64 Where do I get the correct library from? Or which one should I point it to?
I installed octave in my OpenSUSE 11.2 KDE system from Yast. When I launch it with the command "octave" on my shell, this is the message I receive: "octave: error while loading shared libraries: liboctave.so: cannot open shared object file: No such file or directory". What's the problem? Is it a known problem to be solved in the 11.2 RC2 or I have to do something else?
I'm trying to install Sun Java Web Server 7 on OpenSuse 11.2 (32-bit edition). When I try to launch the setup, I get the following error message: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory I'm guessing that this means I need the rpm for libstdc++.so.5, but I haven't been able to find it.
Fascinatingly weird one here. First, this issue isn't on my computer, it's from someone who I am helping. I don't have first-hand access to the computer. Some background: the machine originally had Ubuntu Hardy, which we upgraded to Lucid a couple of weeks ago. Earlier this week, he gave me a call that Ubuntu wasn't booting up; it dropped to the command line. Some tinkering later, I figured out that libgthread-2.0.so had become corrupted, so X wasn't starting. It gave an error complaining that it had an invalid ELF header.I figured that this was just an odd freak occurrence; there was a bad kernel panic previously, so maybe the library was upgraded and the system was just writing to the disk at that time. Fixed via sudo aptitude reinstall libglib.
Ubuntu then started and everything ran perfectly. Today, he gave me a call. After he had restarted the computer, Ubuntu again dropped to terminal at the same point while booting. I had him open a new tty and run startx, which failed with a different shared library but the same error: libXext.so.6 has an invalid ELF header!
We had run updates, but I don't recall whether X's shared libraries were touched. Even if they were, though, that shouldn't affect anything. There were no hard resets between my fixing libgthread and libXext breaking. I'm going to try a clean install; I'm really just hoping we can figure out why this is, because it's an amazing little problem.
I am trying to install streamripper (arm) to an nas machine, but arm didn't really required installation, so it was basically a file called streamripper in the directory:/ mnt/sda1/ streamripper the version. I am trying to get it to work is: streamripper_1.63.5-2_arm
But there seems to be an error message that says could find the library, I tried to look for this file, it is in a mad package, but I am not sure which one specifically to choose for and where "exactly" to put under:
Code: sh-3.1# /mnt/sda1/streamripper start/mnt/sda1/ streamripper: error while loading shared libraries: libmad.so.0: cannot open shared object file: No such file or directory the streamripper file is under /mnt/sda1/streamripper