09-16-2005
Quote:
Originally Posted by wojtyla
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
You can't convert an executable to make it shared, you have to build it shared in the first place. You can do this under linux by using the -shared flag during linking. Some architectures, like amd64, also need -fPIC during compilation.
10 More Discussions You Might Find Interesting
1. Programming
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)
Discussion started by: Micky
0 Replies
2. Programming
I am compiling code which produces .a and .la libraries. How can I produce .so libraries? I know that gcc -shared does but how? (2 Replies)
Discussion started by: thalex
2 Replies
3. UNIX for Dummies Questions & Answers
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)
Discussion started by: ramkumar_gr
3 Replies
4. UNIX for Advanced & Expert Users
can someone explain whether my understanding is correct
lets suppose we have a program that uses library x.
if x is static then the code of x will be part of our program, so if we're going to have 5 executables of our program, then each executable will have x as part of it.
Also, x does not... (2 Replies)
Discussion started by: JamesByars
2 Replies
5. UNIX for Advanced & Expert Users
Hi,
I am trying to create a shared library from a .c file using
gcc -c -fpic -I/usr/local/include Chksum.C -o Chksum.o
gcc -shared -o libtclcksum.so Chksum.o
when i try to load this shared library libtclcksum.so in tclsh
% load libtclcksum.so
I get the following error:
couldn't load... (1 Reply)
Discussion started by: archana485
1 Replies
6. Solaris
Please tell me how to manage the shared library on solaris 10!
which file to configure the library path?
which environment variable contains these paths ?
how to define the new library path?
thanks all! (2 Replies)
Discussion started by: quyetbm
2 Replies
7. AIX
Hi,
I have a problem about loaded shared libraries. I'm issuing ‘procldd' for a process and AIX shows me the loaded shared libraries. I'm collecting these libraries and counting their size. They were 350MB. After this, I'm issuing ‘ps vx' and I'm seeing that the process takes 130MB from AIX's... (1 Reply)
Discussion started by: jhatzics
1 Replies
8. Red Hat
hi,
while running the below query it gives the shared libraries prmblem,
$ cd /oracle/app/product/fmw/asinst_1/bin/
$ ./opmnctl status
/oracle/app/product/fmw/Oracle_IDM1/opmn/bin/opmn: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: Permission... (0 Replies)
Discussion started by: rahulsword
0 Replies
9. Solaris
Does anyone know whether it is possible to make self contained shared libraries ? (.so files). If so, what is the way to do it ?
---------- Post updated at 08:03 AM ---------- Previous update was at 07:56 AM ----------
On Solaris that is. (6 Replies)
Discussion started by: lkb
6 Replies
10. Programming
This is the first time that I created a dynamic library in linux and although the program works, I do not get the correct information about the library when executing ldd.
I explain the details:
1) Source code:
bye_fn.c:
#include <stdio.h>
#include "hello.h"
void bye (const char*... (9 Replies)
Discussion started by: jose_spain
9 Replies
LEARN ABOUT SUNOS
librtld_db
librtld_db(3LIB) Interface Libraries librtld_db(3LIB)
NAME
librtld_db - runtime linker debugging library
SYNOPSIS
cc [ flag ... ] file ... -lrtld_db [ library ... ]
#include <proc_service.h>
#include <rtld_db.h>
DESCRIPTION
Functions is this library are useful for building debuggers for dynamically linked programs. For a full description of these interfaces
refer to the Linker and Libraries Guide.
INTERFACES
The shared object librtld_db.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object
interfaces.
rd_delete rd_errstr
rd_event_addr rd_event_enable
rd_event_getmsg rd_init
rd_loadobj_iter rd_log
rd_new rd_objpad_enable
rd_plt_resolution rd_reset
FILES
/lib/librtld_db.so.1 shared object
/lib/64/librtld_db.so.1 64-bit shared object
ATTRIBUTES
See attributes(5) for description of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsl (32-bit) |
+-----------------------------+-----------------------------+
| |SUNWcslx (64-bit) |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
ld.so.1(1), pvs(1), intro(3), rtld_db(3EXT), attributes(5)
Linker and Libraries Guide
SunOS 5.10 24 Mar 2004 librtld_db(3LIB)