AIX Library Interposer


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users AIX Library Interposer
# 1  
Old 08-04-2006
PHP AIX Library Interposer

Hello,

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 other alternatives?

As per my information Library Interposing is possible in Sun Solaris, Linux
operating systems.

Appreciate if any guidance/reference is provided in this regard.

PS : For details on the Sun Solaris library interposing, you may refer to
the following document:
http://developers.sun.com/solaris/ar...terposers.html



Thanks

Mrunal Rane
# 2  
Old 08-04-2006
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...
# 3  
Old 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...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX full path to socket library

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

2. UNIX for Advanced & Expert Users

library problem on AIX

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

3. AIX

Loading a shared library in 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

4. AIX

AIX collect2: library libgcc_s not found

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

5. AIX

Help while linking the library in 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

6. AIX

JMS C API library for 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

7. AIX

Tape Library on 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

8. AIX

pthread library on AIX 5.3 64 bit

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

9. Shell Programming and Scripting

AIX Library Interposer

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

10. Programming

Command to verify library sources in AIX

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
Login or Register to Ask a Question