configure.in has code to detect if libwrap requires libnsl to link, but
it falis to add -lnsl to WRAPLIBS
note, line numbers matter in this patch, since there are two instances
of similar code. -lnsl should be added to second one

--- bacula-5.0.2/autoconf/configure.in~ 2010-06-14 08:19:21.449360410 +0000
+++ bacula-5.0.2/autoconf/configure.in  2010-06-14 08:19:21.479289510 +0000
@@ -1092,7 +1092,7 @@ AC_ARG_WITH(tcp-wrappers,
                      AC_DEFINE(HAVE_LIBWRAP, 1, [Set to enable libwraper 
support])
                      TCPW_MSG="yes" 
                      LIBS="$saved_LIBS"
-                     WRAPLIBS="-lwrap"
+                     WRAPLIBS="-lwrap -lnsl"
                   ], [
                      AC_MSG_ERROR([*** libwrap missing])
                   ]

-- 
Luca Berra -- [email protected]
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to