08-07-2006
Hello Jim,
Thanks for the reply.
I am not conversant with AIX commands, can you please guide me in detail how i should carry this activity.
Is there any other name in AIX for library interposer?
Regards
Mrunal Rane
Quote:
Originally Posted by jim mcnamara
Since you provided the link, I don't get your problem.
Yes it is possible. You define an environment variable, LD_PRELOAD, to point to a library that has entrypoints (functions with the same names as) like those you have in your executable. Usually it's libc functions like maybe printf. But it could be interposing functions in a library you've created with those in yet another library...
10 More Discussions You Might Find Interesting
1. Programming
Hi there,
May I know is there a command to verify and check the *.a file contents for AIX 5.2.
How can I link the library file ?
Thank you (0 Replies)
Discussion started by: chongks
0 Replies
2. Shell Programming and Scripting
Hello,
I have query on Library Interposer:
We are working on a product which requires library interposing. And
according to the market requirements, needs to be migrated on AIX OS also.
So now, the question is "Is library interposing possible in AIX?" If yes,
how? If no, then what are the... (1 Reply)
Discussion started by: mrunalrane
1 Replies
3. AIX
Hi,
I am running my application on two AIX 5.3 64 bit boxes. In one of the boxes it is running fine without any problems. But on the other box it fails as soon as it is started and it core dumps. When I was analysing the core I was able to find the below two lines in addition to other... (4 Replies)
Discussion started by: allthanksquery
4 Replies
4. AIX
I am having my 14 Aix 5.3 servers on bladecenters connected with my Tape Library.
I had a backup scheduled on tape library but after taking backup successfully,
Now,
Question 1:-
I wanted to restore backup but tape library could not recognize the tape and I get I/O error in TSM. I think it... (0 Replies)
Discussion started by: Shrek
0 Replies
5. AIX
Hi,
I am looking for just the JMS C API libraries for AIX (hopfully I don't have to install websphere!), I have found them for Sun, HP and Linux, but not for AIX. Can someone point me in the right direction? Thanks! (0 Replies)
Discussion started by: CTBlack
0 Replies
6. AIX
Hi,
I have one library(libfoo.a) that is folder /home/xyz and my c program is in /home/xyz/cprog. Whenever I issue cc command
cc -o test test.c -lfoo , i get the error /usr/bin/ld: cannot find -lfoo.
echo $PATH has already listing of /home/xyz variable, even LIBPATH also has same entry... (0 Replies)
Discussion started by: rishisoft1
0 Replies
7. AIX
Hi,
M/c- aix 5.3
I want to install expat-2.0.1.
When run the make command it gives the error..
collect2: library libgcc_s not found
make: The error code from the last command is 1.
Stop.
Thanks (7 Replies)
Discussion started by: tukuna82
7 Replies
8. AIX
Hi,
I have an application running on AIX. The app is deployed on Webspshere server. Due to some reason, i have to make use of a third party library (Sigar API's) from my application. This library requires an .so file as well.
Is there any location where i can put this *.so file and it will... (1 Reply)
Discussion started by: user_guest
1 Replies
9. UNIX for Advanced & Expert Users
Hi Unix Experts,
I have seen with AIX, that sometimes my new libraries are not picked up by executable. This could be the problem of "loader domain" on AIX.
As I found on below link AIX libraries do stick in the memory.
AIX shared libraries
The remedy for this is to run slibclean... (3 Replies)
Discussion started by: shriashishpatil
3 Replies
10. AIX
Can somebody help me too identify full path to socket library on AIX? Cannot find anything
Thanks
for contribution (2 Replies)
Discussion started by: digioleg54
2 Replies
INTRO(3) Library Functions Manual INTRO(3)
NAME
intro - introduction to library functions
SYNOPSIS
#include <stdio.h>
#include <math.h>
DESCRIPTION
This section describes functions that may be found in various libraries, other than those functions that directly invoke UNIX system primi-
tives, which are described in section 2. Functions are divided into various libraries distinguished by the section number at the top of
the page:
(3) These functions, together with those of section 2 and those marked (3S), constitute library libc, which is automatically loaded by
the C compiler cc(1) and the Fortran compiler f77(1). The link editor ld(1) searches this library under the `-lc' option. Declara-
tions for some of these functions may be obtained from include files indicated on the appropriate pages.
(3M) These functions constitute the math library, libm. They are automatically loaded as needed by the Fortran compiler f77(1). The link
editor searches this library under the `-lm' option. Declarations for these functions may be obtained from the include file
<math.h>.
(3S) These functions constitute the `standard I/O package', see stdio(3). These functions are in the library libc already mentioned.
Declarations for these functions may be obtained from the include file <stdio.h>.
(3X) Various specialized libraries have not been given distinctive captions. The files in which these libraries are found are named on
the appropriate pages.
FILES
/lib/libc.a
/lib/libm.a, /usr/lib/libm.a (one or the other)
SEE ALSO
stdio(3), nm(1), ld(1), cc(1), f77(1), intro(2)
DIAGNOSTICS
Functions in the math library (3M) may return conventional values when the function is undefined for the given arguments or when the value
is not representable. In these cases the external variable errno (see intro(2)) is set to the value EDOM or ERANGE. The values of EDOM
and ERANGE are defined in the include file <math.h>.
ASSEMBLER
In assembly language these functions may be accessed by simulating the C calling sequence. For example, ecvt(3) might be called this way:
setd
mov $sign,-(sp)
mov $decpt,-(sp)
mov ndigit,-(sp)
movf value,-(sp)
jsr pc,_ecvt
add $14.,sp
INTRO(3)