General :: How To See Shared Objects Code
Jun 30, 2010I want to know that is there any way to peep inside the shared object and see its code ?
View 4 RepliesI want to know that is there any way to peep inside the shared object and see its code ?
View 4 RepliesI want to create a "Shared Memory" in linux, then create multiple "Shared Objects" that can access to a Table for example; And one of them can write something into the Table and the other can access and read it, so that these operations can be handled by programmer! I'm using Ubuntu 9.04 and I've set it's runlevel at 3 (I have commandline environment now!) I've searched the Internet so much, but couldn't find a good sample code for this! I have no experience about it and need your help to introduce me a sample code about it and advise me how to compile and use it with "GCC"?!
View 6 Replies View RelatedI have a question about shared objects and when mapping and linking is established in the following code...Well more of a verification.
getsetx.c - shared object source code Code: unsigned long x = 0;
unsigned long getx(void)
{
return x;
}
[Code].....
Now its my understanding when I execute ./testit, getsetx.so will get mapped into its address space at start up and testit will link any functions as they are needed..
I have created an application that has a executable program that loads in a shared object
the shared object loads in another shared object
both of these shared object I have created
For debugging I have been printf'in data to determine what is going on
I now have some odd memory issue, and need a bit more control over debugging...
I have one workspace set up and under my exectuable(will call maintest from now on) I have two items in my link libraries under project build options being soA and soB (so A is the shared object that maintest uses, soB is the SO that soA uses) I also have linker options pthread and ldl
At the beginning of my maintest I do my dlsym and load in each function that I will be using
I always run my program using maintest, because when I have one of the SO as the startup project(turns bold) and try to run it gives me "You must select a host application to run a library"
I tried to set up this host library, i Go to Menu->Project->SetProgramArguments and change the Host Application to the debug version of my maintest
I then hit OK and try to run again but I get the same error: "You must select a host application to run a library"
If I get this part working - which I need help doing, is tehre other steps that need to be taken to debug the so's? or will this make it so when i hit f8 it will run.
c source code for scanning a shared directory of a host ?
View 3 Replies View RelatedI need to make a script that controls or checks certain assets of a JBoss server. Like if the server is running or down, or how much memory he uses, etc.Now, via the website of Nagios, i've found a script which i can use.Where can i find the things i need to check on this?On the JBoss server i get an overview of everything, but i really don't have a clue where to start looking.
View 2 Replies View RelatedI am able to create a solaris package and hpux package from directory structure in a specific format rather than spec file but the same i can not do on linux . is there any way to do that . basically i can create the solaris package using command pkgtrans -s "source loc" "package location" all .we do not need any specfile here rather we create the package from the filesystem objects in a proper directory structures. again pkgadd -d option will install the datastream from a package but i did not find the same on linux.
View 1 Replies View RelatedTrying to count the number of oracle instances on HPUX 11.23 - using ksh. I have multiple instances running and I would like to have a count for how many processes for eachinstance.Example, run the 'ps -efu oracle' command and for each instance increment a counter. So I am looking forINT1=# INT2=# INT3=# ... INTn=#I keep thinking a 'do-while' or some type of 'while' loop but I am missing something, somewhere
View 2 Replies View RelatedWhy can't chroot command be used for dynamically linking objects?
View 1 Replies View RelatedI have installed phpldapadmin 1.2.0.5 Using commands in shell I have added two users and some groups into a base (ldif-file) and I see them in phpldapadmin. But when I try to add users or groups by using graphical interface (phpldapadmin) I can't do this correctly because I can't to select a type of new entry and I see a tip "classes of objects from XML does not support LDAP-server". So I can't to create a new entry by using graphical interface. Here is my slapd.conf
[code]...
I think that the solution is very simple, but I cannot reach this solution. I'm trying to build an B.so that uses A.so.
A.so is compiled using C;
B.so is compiled using C++;
Inside "Aso.h" file I'had declared:
Code:
#ifdef __cplusplus
extern "C" {
#endif
[code]....
There's no error to compile that, this library seems to be compiled correctly, but using the "nm" command the Aso.so functions appear with "U" of undefined. Trying to build an executable using the Bso.so library, I got this error: /lib/../lib/libBso.so: undefined reference to `foo(int, int, int)' I think that to solve this problem it's only link the Aso.so with the .o files generated at the compilation phase of my Bso. Using the "ldd" command I'm able to see that Bso.so depends on Aso.so, so what am I missing?
I have it so that an Env object contains all the variables in the current scope, and the parent scope. You can also save them to variables like objects, and my idea is to use the "." operator to get values from them.
First, how do I assign to them? I currently have it that only a variable name can be assigned to, but you should be able to assign to an "obj.value" expression, too. How do I keep track of what variable to set and still be able to say it in an expression and have it evaluate to the variable?
Second, these object don't really have a "type", they're just containers that contain any values you want under any name you want. How can I, for example, define a primitive "boolean" object and have things like if statements recognize it?
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:
Code:
But all that happens is this:
Code:
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..
Installed Skype but it wont launch. Running the latest Opensuse Gnome. Ive uninstalled it and reinstalled several times but always with the same error. When I try to run it from terminal I get this:
ig@linux-ljqk:~> skype
skype: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Ive just now uninstalled skype and tried reinstalling it again via yast, but now I get the following error [PK_TMP_DIR|dir:///var/tmp/TmpDir.xftzR0] Repository already exists.
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:
[Code]...
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 said:
Quote:
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:
Quote:
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:
Quote:
konsole: symbol lookup error: /usr/lib/libphonon.so.4: undefined symbol: _ZN9QMetaType15registerTypedefEPKci
Firefox and Chrome basically say the same thing
Quote:
/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 want to run blender in Ubuntu910,but get below
test@ubuntu:~$ blender
blender: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory
I have two classes, for argument's sake A and B. A implements the core functionality, B is an encapsulated data structure. If you imagine this situation
[code]...
From within B's member functions, I would like to access the public function() in class A. This is not an inheritance issue, they are two discrete classes with radically different functionality. Class A makes an object of B.
I am trying to make a hash of objects in perl (long story.) I have a package containing the main hash and all the subroutines necessary to work with it. My "new" subroutine used to add an object to the hash goes like this:
Code:
$tmpdir="/tmp";
$subdir="/AutoScript";
[code]...
I cannot get this to work
Code:
#!/usr/bin/python
# -*- coding: iso-8859-1 -*-
import re
# @description "This is a describing text about the file currently documentet";
#DocC documentation prototype
[Code]...
I have two partitions: one for Ubuntu 64-bit and another one with the format NTFS only for keeping documents. I have shared one folder of this NTFS partition, but every time I reboot the PC (or shutdown and start again for that matter) the folder is no longer shared.Why?How can I prevent this folder to be un-shared when I reboot the computer?
View 3 Replies View RelatedI'm having a few problems with flash objects in Firefox. When I load a page with flash - ..... for example - the flash object is just a grey box and firefox hangs for 30 seconds or so. When firefox finally responds again all that's left of the flash object is a black box. Does anybody know what the problem is? And even better - what I can do to fix it!
For background info - flash was working fine in F12 before I updated to F13. Used the install DVD for F13 to perform the update. I'm running F13 64bit with KDE, Firefox is showing Shockwave Flash in the addons list. Originally installed the flash plugin using the instructions from mjm wired:
Code:
[mirandam@charon Download]$ sudo yum install nspluginwrapper.{i686,x86_64} alsa-plugins-pulseaudio.i686
[mirandam@charon Download]$ sudo yum install flash-plugin I've tried removing those packages and reinstalling but no luck.
I'm looking for a solution for running C++ objects on remote machines from one C++ application.
View 2 Replies View RelatedI use playonlinux to install the games, so I don't install them manually.Also I think it might have something to do with the graphics settings I did when it told me to install a version of Wine to make the game work. I have no idea how many gigabyte or megabyte my graphics card is so I selected the highest number.
View 9 Replies View RelatedThe goal is to auto-update a webpage that contains links to network devices. These devices are all set to DHCP, and their hostnames are not guaranteed to stay the same, so static IPs or accessing via hostname is NOT an option.
Process: Run a script every hour or so to query devices on the local network to generate a list of responding devices by MAC address and what their current IP is (results.lst). Using a "static" MAC address list file "printers.db" as the database search "results.lst" to find specific MAC addresses. When a match is found, grab the IP from "results.lst" and update "index.html" with the new IP address. No comparison needs to be done between "results.lst" IP and "index.html" IP as I just want to overwrite whatever is there.
Here is what I have so far (using dummy data): PRINTERS.DBProduct Mac Address Printer1 00:00:00:00:00:11 Printer2 00:00:00:00:11:11 Printer3 00:00:00:11:11:11 Printer4 00:00:11:11:11:11 Printer5 00:11:11:11:11:11 Printer6 11:11:11:11:11:11 TEST.SH
Code:
#!/bin/sh
#------------------------------
# Quick Links Updater v2.0 |
# By Rob M. |
# with help from Tim F. |
#------------------------------
[code]....
I read this guide: [URL].. but I still don't understand how to make objects created with new garbage-collected. Could someone explain how or find a link to an explanation?
View 13 Replies View RelatedI have created an object where I pass a string and a long value to it <in Java>, currently I am adding the values to my Object so I can then add it to a list like so:
Code:
List myList;
ImageObject io;
for(i = 0; i < 10; i++)
[code]....
This is what the object currently looks like:
Code:
public final class ImageObject<name, time>
{
public String name = "";
public long time = 0;
[code]....