[CLUE-Tech] ldconfig & ld question.

Keith Hellman kehellman at yahoo.com
Tue Jun 11 11:39:01 MDT 2002


--- anselmi at americanisp.net wrote:

> I seem to remember on an LFS system I built that ldconfig would make a
> libXi.so 
> link.
 
> So, how can I get ldconfig to generate a libXi.so link?  Or, how can I
> get ld 
> to recognize libXi.so.6 as the file it needs?

I've never seen an option with ldconfig to do this - although I will admit
that I'm not on intimate terms with ldconfig...

I'm also not so sure that ldconfig SHOULD be doing this.  Consider if your
running a system with TWO versions of foo:  libfoo.so.3.1.2 and
libfoo.2.9.3.  Different versions of software that you build frequently
require these two different versions of foo.

Which one is ldconfig supposed to associate as libfoo.so?  It's not so
easy to just say "the newest one of course" - because you may be the
developer for foo, in which case you only want to link against your
development version (3.1.2) when you explicitly want to test against it.

My solution to the above would be one of the following:
*> symlink libXi.so to libXi.so.your-version and be done with it
*> if this type of 'global' effect is NOT what you want, then modify the
build configuration of your application to link explicitly against
libXi.so-required-version - it's probably a one liner ;^)

Perhaps someone out there has written a script to inspect .so links and
report on missing global links (libfoo.so.2 ->libfoo.so.2.1.3 exists, but
libfoo.so->libfoo.so.2.1.3 doesn't)... I dunno.

Just my two cents - I suspect I'm wrong.




=====
Keith E. Hellman
kehellman at yahoo.com

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com



More information about the clue-tech mailing list