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

Re: Why -lresolv?




Julio Sánchez Fernández wrote:
> 
> "Jeffrey W. Baker" wrote:
> >
> > Howdy,
> >
> > I am building an application using the OpenLDAP 2.0 libraries.  Whenever I
> > link against -lldap -llber, I also must add -lresolv.
> 
> This comes from dnssrv.c, used for service location.  Seems it should be
> fixed.

I have played with this (in libraries/libldap) and seems to fix it (I just
cut and pasted, so I probably broke it):

diff -u -r1.42 Makefile.in
--- Makefile.in 2000/08/18 02:25:07     1.42
+++ Makefile.in 2000/09/14 12:29:32
@@ -45,6 +45,7 @@
 NT_XXLIBS = $(SECURITY_LIBS)

 UNIX_DYN_LIB_LIBS  = -llber $(AC_LIBS)
+UNIX_STAT_LIB_LIBS  = -llber $(AC_LIBS)
 UNIX_XXLIBS = $(SECURITY_LIBS)

 # Extras for building the library

However, I am unsure about whyt is it needed.  Why STAT instead of
DYN?

Julio