Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-17-2005, 10:41 AM   #1
Registered: Dec 2004
Posts: 57

Rep: Reputation: 15
VERY STRANGE: ldconfig and

I came across some very odd behavior that I can't explain.

A while back I was having issue with running programs in Kdevelop, that involved finding shared lib files, even when my LD_LIBRARY_PATH and PATH and LIB setting were correct.

To avoid this issue I placed my lib paths in and ldconfig. Everything was fine... yeah

For the record the paths I needed were: (Don't sweat the names)

Later I wanted to make my setup more general and created another user called gmsec
and simply copied my directory over to this home path. Then added the new lib paths to, No problem since they were the same anyway.

For the record these were:

Everything was fine.

Now while I was debugging I started to notice that the libraries being used in the callstack were from the sattest path? Odd I thought I had the gmsec home directory paths first so they took precedence. So I went into and commented out the sattest ones and then started to debug. Hmm can't open shared object file no such directory? Strange it compiled linked and seemed to find the one in /home/gmsec/GMSEC/lib, but not in /home/gmsec/GMSEC/src/release/GMSEC_API/bin/linux. So I made a copy of it and placed it into /home/gmsec/GMSEC/lib. Still can't open shared object file no such directory.

Now I checked the I found hits for /home/gmsec/GMSEC/lib, but no hits for my other libs from the path /home/gmsec/GMSEC/src/release/GMSEC_API/bin/linux. Well there that was the problem.

So the thought occured to me why ldconfig did not generate any links here. All the libs are exactly the same just in another directory. Then I checked perimissions and set the the same on ALL files expect the owner of course, but same group (users). Still same problem.

So I went back in to and added the sattest paths back in. Remeber all the libs are EXACTLY THE SAME, I do not and can't alter them. Low and beholdldconfig found them, linked them and everything is fine. WHAT THE HELL IS WRONG HERE. I ran ldd on each lib and all the dependencies were found. The problem is with my main exec. it can't find the one lib in the GMSEC_API path. It can find it in sattest but not gmsec. Even my makefile setting do not change and the same behavior, so its obvious that my -l, -L, and -I are mostly overridden by have the lib paths in

I'm lost on this. It as though ldconfig does not like the path GMSEC/src/release/GMSEC_API/bin/linux, but it likes /GMSEC/lib just fine.

AND again I'll repeat all the files in these paths are exactly the same. I even re-extracted them to there respective directories and the same behavior was observed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
where is ldconfig ? trutnev Red Hat 3 06-01-2005 01:05 PM
strange line on grub.conf Kendo1979 Linux - Security 1 05-22-2005 08:21 AM
ldconfig diefree Fedora 4 12-11-2004 03:20 AM
what does ldconfig do ? rajorshi Slackware 8 09-14-2004 05:19 PM
ldconfig gui10 Slackware 3 05-14-2002 09:30 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration