I am trying to run a C++ program which uses a static library libprun.a. During compilation, I am loading this library file using a environment variable as below.
I am not getting any errors during compilation or during running the binary in the same environment in which I compiled the binary but I am getting below error when running in a different environment as $CUSTOM_PATH is set to a different path.
I am getting errors only with libprun.a but not with other libraries.
Please suggest
You haven't given us much to go on here...
What "below error" are you getting?
What different environment are you talking about? Are you talking about just using a different setting for CUSTOM_PATH? Are you talking about different operating systems? ???
How is CUSTOM_PATH set when your code works?
How is CUSTOM_PATH set when your code does not work?
Does the file $CUSTOM_PATH/lib/libprun.a exist in the environment when your code does not work?
Hello everybody,
I am having major problems at the moment with shared libraries and I have to little knowledge of them to solve them. So please, please help me :)
Ok this is the problem:
I have a library A, which uses B and C, and C uses again D.
If I try to run A as plugin in apache,... (0 Replies)
I have a doubt about the shared libraries. Where do you set the path for the shared libaries, for the dynamic loader to locate. Any suggestion would be of great help. thanks (3 Replies)
HI,
I am dynamically loading shared libraries using shl_load(). There are multiple processes (50 or more) which loads the same shared library. Will Unix internally load only one copy of the shared library or it will load multiple copies.
Can I have memory issues if this is done.
Thanks,... (1 Reply)
How do i make a library shared
say i have a library a.so which i have just compiled.
I want to make it shared how do i make it
Next Queation is what is the difference between a.so.0 a.so.1 a.so.2 & a.so :rolleyes: (1 Reply)
Hi All,
I have RHEL 5 installed in my system. Something must has happened because when i reboot the server, it came with many error..
/usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0. Can't open shared object files. No such file/directory
It finnaly ends with the... (0 Replies)
Hi,
Can any one help me ,how to rectify the below problem?........
"error while loading shared libraries: libxerces-c.so.28: cannot open shared object file: No such file or directory"
Im using "ubuntu 10.04" (64 bit) (0 Replies)
Help!
I'm busy working on MySQL replication for the site and trying to unzip this bind-geodns xz file on Linux (ubuntu) and am having some problems.
http://distro.ibiblio.org/pub/linux/distributions/archlinux/community/os/i686/bind-geodns-9.4.1-4-i686.pkg.tar.xz
Could anyone kindly unzip... (4 Replies)
Hi All,
I have RHEL 5 installed in my system. Something must has happened because when i reboot the server, it came with many error..
/usr/bin/rhgb-client -- error while loading shared libraries: libpopt.so.0. Can't open shared object files. No such file/directory
It finnaly ends with the... (6 Replies)
Hello,
I am trying to run a program from my local account and receive the following error:
/local/app: error while loading shared libraries: libtiff.so.3: cannot open shared object file: No such file or directory
On the root account (which I DO NOT have access to), I see that libtiff.so.4... (3 Replies)
Discussion started by: bphqk3
3 Replies
LEARN ABOUT SUNOS
dis
dis(1)dis(1)NAME
dis - object code disassembler
SYNOPSIS
/usr/ccs/bin/dis [-C] [-o] [-V] [-L] [-d sec] [-D sec] [-F function] [-l string] [-t sec] file...
The dis command produces an assembly language listing of file, which can be an object file or an archive of object files. The listing
includes assembly statements and an octal or hexadecimal representation of the binary that produced those statements.
Options are interpreted by the disassembler and can be specified in any order.
The following options are supported:
-C Displays demangled C++ symbol names in the disassembly.
-d sec Disassembles the named section as data, printing the offset of the data from the beginning of the section.
-D sec Disassembles the named section as data, printing the actual address of the data.
-F function Disassembles only the named function in each object file specified on the command line. The -F option can be specified mul-
tiple times on the command line.
-l string Disassembles the archive file specified by string. For example, one would issue the command dis -l x -l z to disassemble
libx.a and libz.a, which are assumed to be in LIBDIR.
-L Invokes a lookup of C-language source labels in the symbol table for subsequent writing to standard output.
-o Prints numbers in octal. The default is hexadecimal.
-t sec Disassembles the named section as text.
-V Prints, on standard error, the version number of the disassembler being executed.
If the -d, -D, or -t options are specified, only those named sections from each user-supplied file is disassembled. Otherwise, all sections
containing text is disassembled.
On output, a number enclosed in brackets at the beginning of a line, such as [5], indicates that the break-pointable line number starts
with the following instruction. These line numbers is printed only if the file was compiled with additional debugging information, for
example, the -g option of cc(1B). An expression such as <40> in the operand field or in the symbolic disassembly, following a relative dis-
placement for control transfer instructions, is the computed address within the section to which control is transferred. A function name
appears in the first column, followed by () if the object file contains a symbol table.
The following operand is supported:
file A path name of an object file or an archive (see ar(1)) of object files.
See environ(5) for descriptions of the following environment variables that affect the execution of dis: LC_CTYPE, LC_MESSAGES, and
NLSPATH.
LIBDIR If this environment variable contains a value, use this as the path to search for the library. If the variable contains a
null value, or is not set, it defaults to searching for the library under /usr/lib.
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
/usr/lib default LIBDIR
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWbtool |
+-----------------------------+-----------------------------+
|Interface Stability |See below. |
+-----------------------------+-----------------------------+
The human readable output is Unstable. The command line options are Evolving.
ar(1), as(1), cc(1B), ld(1), a.out(4), attributes(5), environ(5)
The self-explanatory diagnostics indicate errors in the command line or problems encountered with the specified files.
23 Jun 2005 dis(1)