10 More Discussions You Might Find Interesting
1. 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
2. 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
3. AIX
Hello guys, I have a trouble when running an application in AIX, I've compiled and the
LIBRARY_PATH seems ok, but I get the following message:
rtld: 0712-001 Symbol __pthread was referenced
from module main_app(), but a runtime definition
of the symbol was not found
ldd... (4 Replies)
Discussion started by: edgarvm
4 Replies
4. 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
5. 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
6. AIX
Hi All,
I'm facing the following issue with my shared libraries in AIX.
memory related calls such as memset, memcpy, malloc etc are failing miserably.
there is something wrong with stack/memory which i can't guess.
i've used the following flags to build my libraray:
ld -G... (0 Replies)
Discussion started by: abhinav05252
0 Replies
7. Linux
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)
Discussion started by: wojtyla
1 Replies
8. 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
9. 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
10. 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
REDO_PREBINDING(1) General Commands Manual REDO_PREBINDING(1)
NAME
redo_prebinding - redo the prebinding of an executable or dynamic library
SYNOPSIS
redo_prebinding [-c | -p | -d] [-i] [-z] [-r rootdir] [-e executable_path] [-seg_addr_table table_file_name] [-seg_addr_table_filename
pathname] [-o output_file] input_file
DESCRIPTION
Redo_prebinding is used to redo the prebinding of an executable or dynamic library when one of the dependent dynamic libraries changes.
The input file, executable or dynamic library, must have initially been prebound for this program to redo the prebinding. Also all
depended libraries must have their prebinding up to date. So when redoing the prebinding for libraries they must be done in dependency
order. Also when building executables or dynamic libraries that are to be prebound (with the -prebind options to ld(1) or libtool(1)) the
dependent libraries must have their prebinding up to date or the result will not be prebound.
The options allow for different types of checking for use in shell scripts. Only one of -c, -p or -d can be used at a time. If redo_pre-
binding redoes the prebinding on an input file it will run /usr/bin/objcunique if it exists on the result.
OPTIONS
-c only check if the file needs to have it's prebinding redone and return status. A 0 exit means the file's prebinding is up to date,
1 means it needs to be redone and 2 means it could not be checked for reasons like a dependent library is missing (an error message
is printed in these cases).
-p check only for prebound files and return status. An exit status of 1 means the file is a Mach-O that could have been prebound and
is not otherwise the exit status is 0.
-d check only for dynamic shared library files and return status. An exit status of 0 means the file is a dynamic shared library, 1
means the file is not, 2 means there is some mix in the architectures.
-i ignore non-prebound files (useful when running on all types of files).
-z zero out the prebind check sum in the output if it has one.
-e executable_path
replace any dependent library's "@executable_path" prefix with the executable_path argument.
-seg_addr_table table_file_name
The -seg_addr_table option is used when the input a dynamic library and if specified the table entry for the install_name of the
dynamic library is used for checking and the address to relocate the library to as it prefered address.
-seg_addr_table_filename pathname
Use pathname instead of the install name of the library for matching an entry in the segment address table.
-r rootdir
prepend the rootdir argument to all dependent libraries.
-o output_file
write the updated file into output_file rather than back into the input file.
DIAGNOSTICS
With no -c, -p or -d an exit status of 0 means success and 2 means it could not be done for reasons like a dependent library is missing (an
error message is printed in these cases). And exit of 3 is for the specific case when the dependent libraries are out of date with respect
to each other.
Apple Computer, Inc. September 10, 2001 REDO_PREBINDING(1)