argus-3.0.0.rc.5, autoconf, and SASL

Gabriel L. Somlo somlo at cmu.edu
Mon Jun 12 16:24:10 EDT 2006


I was trying to build 3.0.0.rc.5 with SASL, and had it barfing at link
time with missing libsasl symbols.

Tracked down the problem to a bug in the configure.in autoconf source
file. Enclosed patch modifies both configure.in, and the resulting
configure script (avoiding the requirement to run autoconf after
patching).

Note that, in addition to adding

	LIBS="$LIBS $LIB_SASL"

after AC_CMU_SASL to add the correct link-time flag to $LIBS, we also
need to fix the LIBS/LBIS typo where $V_PCAPDEP is added later down in
the script.

Regards,
Gabriel


diff -NarU5 argus-3.0.0.rc.5.orig/configure.in argus-3.0.0.rc.5/configure.in
--- argus-3.0.0.rc.5.orig/configure.in	2006-06-08 14:20:12.000000000 -0400
+++ argus-3.0.0.rc.5/configure.in	2006-06-12 16:09:38.000000000 -0400
@@ -30,11 +30,15 @@
 AC_QOSIENT_LEX_AND_YACC(V_LEX, V_YACC, argus_)
 AC_CHECK_PROGS(V_RANLIB, ranlib, @true)
 AC_LBL_UNALIGNED_ACCESS
 AC_LBL_DEVEL(V_CCOPT)
 AC_QOSIENT_DEBUG(V_CCOPT)
+
 AC_CMU_SASL
+dnl Make sure -lsasl ends up being passed to the linker at build timE
+LIBS="$LIBS $LIB_SASL"
+
 AC_SYS_LARGEFILE
 AC_QOSIENT_MEMORY
 
 AC_QOSIENT_THREADS(V_THREADS)
 if test ! -z "$V_THREADS"; then
@@ -67,11 +71,11 @@
                 if test -f lib/libpcap.a; then
                         rm -rf lib/libpcap.a
                 fi
         fi
 fi
-LIBS="$LBIS $V_PCAPDEP"
+LIBS="$LIBS $V_PCAPDEP"
 fi
 
 
 AC_QOSIENT_TCPWRAP(V_WRAPDEP, V_INCLS)
 if test ! -z "$V_WRAPDEP"; then
diff -NarU5 argus-3.0.0.rc.5.orig/configure argus-3.0.0.rc.5/configure
--- argus-3.0.0.rc.5.orig/configure	2006-06-08 14:20:12.000000000 -0400
+++ argus-3.0.0.rc.5/configure	2006-06-12 16:09:45.000000000 -0400
@@ -4058,10 +4058,11 @@
         cat >> confdefs.h <<\EOF
 #define ARGUSDEBUG 1
 EOF
     fi
 
+
 echo "$as_me:$LINENO: checking for egrep" >&5
 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 if test "${ac_cv_prog_egrep+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
@@ -4574,10 +4575,12 @@
          LIB_SASL=""
          SASLFLAGS=""
       fi
    fi
 
+LIBS="$LIBS $LIB_SASL"
+
 # Check whether --enable-largefile or --disable-largefile was given.
 if test "${enable_largefile+set}" = set; then
   enableval="$enable_largefile"
 
 fi;
@@ -5876,11 +5879,11 @@
                 if test -f lib/libpcap.a; then
                         rm -rf lib/libpcap.a
                 fi
         fi
 fi
-LIBS="$LBIS $V_PCAPDEP"
+LIBS="$LIBS $V_PCAPDEP"
 fi
 
 
 echo "$as_me:$LINENO: checking for local tcp_wrappers library" >&5
 echo $ECHO_N "checking for local tcp_wrappers library... $ECHO_C" >&6



More information about the argus mailing list