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...
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
LEARN ABOUT DEBIAN
tsocks
TSOCKS(1) General Commands Manual TSOCKS(1)
NAME
tsocks - Shell wrapper to simplify the use of the tsocks(8) library to transparently allow an application to use a SOCKS proxy
SYNOPSIS
tsocks [application [application's arguments]]
or tsocks [-on|-off]
or tsocks
DESCRIPTION
tsocks is a wrapper between the tsocks library and the application what you would like to run socksified.
OPTIONS
[application [application's arguments]]
run the application as specified with the environment (LD_PRELOAD) set such that tsocks(8) will transparently proxy SOCKS connec-
tions in that program
[-on|-off]
this option adds or removes tsocks(8) from the LD_PRELOAD environment variable. When tsocks(8) is in this variable all executed
applications are automatically socksified. If you want to use this function, you HAVE to source the shell script from yours, like
this: "source /usr/bin/tsocks" or ". /usr/bin/tsocks"
Example:
". tsocks -on" -- add the tsocks lib to LD_PRELOAD (don't forget the leading dot!)
". tsocks -off" -- remove the tsocks lib from LD_PRELOAD (don't forget the leading dot!)
[-show|-sh]
show the current value of the LD_PRELOAD variable
<without any argument>
create a new shell with LD_PRELOAD including tsocks(8).
SEE ALSO
tsocks.conf(5) tsocks(8)
AUTHOR
This script was created by Tamas SZERB <toma@rulez.org> for the debian package of tsocks. It (along with this manual page) have since been
adapted into the main tsocks project and modified.
TSOCKS
TSOCKS(1)