[Date Prev][Date Next] [Chronological] [Thread] [Top]

Why -lresolv?


I am building an application using the OpenLDAP 2.0 libraries.  Whenever I
link against -lldap -llber, I also must add -lresolv.  I find this
annoying.  Obviously, you *must* link in all three libraries, or the link
will fail, so why are these symbols unresolved in libldap.so?  For
example, the symbols for libssl and libcrypto are resolved, so I don't
have to pull them in explicitly.

How can I fix this, so my application only has to pull in libldap?  I am
building on Linux, using ./configure with no arguments.

(I have made this fix in my local libs by building them by hand.  However,
I think it would be best if this fix was in the real build system.)

Jeffrey Baker