library problem on AIX


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users library problem on AIX
# 1  
Old 12-21-2011
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 command or removing read permission for others on library. However I have seen that none of these remedies work at many times and the only solution remains is to restart AIX box.

Recently I have seen a problem wherein my exe was taking a lib from a path not shown in LIBPATH/PATH. May be that was the path used to build that exe at compile time. Does anyone know how this is possible?

Related links...
Why does slibclean require root?

pSeries and AIX Information Center

(1) Is the library stick in the memory is a feature of AIX or is it a problem in AIX?
(2) Is slibclean really works?

thanks in advance,
Ashish
# 2  
Old 12-21-2011
slibclean usually works when no application is actively using the library - but sometimes you need to execute it a few times until really everything's gone

Maybe another application uses the same shared library and AIX doesnt load 'your' version because another version of the same library is already in memory

Regards
zxmaus
# 3  
Old 12-21-2011
Thanks zxmaus. Is there a way I know whether slibclean really worked? Due to this I find it difficult to work with AIX.
-Ashish
# 4  
Old 12-21-2011
Code:
genkld

shows you all actually loaded libraries

you may be interested in this article

regards
zxmaus
This User Gave Thanks to zxmaus For This Post:
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. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 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. UNIX for Advanced & Expert Users

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... (2 Replies)
Discussion started by: mrunal
2 Replies

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