[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



The ldconfig command rebuilds the cache, using the contents of
/etc/ld.so.conf .  Any time you add another entry to /etc/ld.so.conf,
you need to run ldconfig (actually, /sbin/ldconfig, as root) to rebuild
the cache.

Note that the ld cache handles dynamic libraries only (.so files), not
static libraries (.a files), and it is invoked at runtime, whereas
static libraries are linked into the executable at link time.  Having
said that, the linker will attempt to use dynamic libraries first before
looking for a static library.  So, if you add /usr/lib/termcap to your
/etc/ld.so.conf file, then run ldconfig, then your linker (gcc) will
pick the dynamic library.  You can verify this with the ldd command.

I think, and I'm not 100% sure about this, that the linker does not use
the same search path for dynamic libraries as the dynamic loader.  So,
you still need to specify -L/usr/lib/termcap to gcc, even if that
directory is in /etc/ld.so.conf.

It's not really a bug in either the distro or the makefile, it's just
that each used different defaults.  Although, it could be considered a
bug in the program distribution, because if the program were using
autoconf/automake it could have determined on its own where the termcap
and curses libraries were installed.

Jason
-- 
Jason Day                                       jasonday at
<a  rel="nofollow" href="http://jasonday.home.att.net";>http://jasonday.home.att.net</a>                    worldnet dot att dot net
 
&quot;Of course I'm paranoid, everyone is trying to kill me.&quot;
    -- Weyoun-6, Star Trek: Deep Space 9


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01150" href="msg01150.html">[ale] help with lib</a></strong>
<ul><li><em>From:</em> rdavis at panasonicatlanta.com (Davis, Ringo Lester)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01154.html">[ale] Fedora 2 modem recommendation</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01156.html">Bowing to M$ (was Re: [ale] comcast static IP?)</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01151.html">[ale] help with lib</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01157.html">[ale] help with lib</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01155"><strong>Date</strong></a></li>
<li><a href="threads.html#01155"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>