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

carter at qosient.com carter at qosient.com
Mon Jun 12 18:54:24 EDT 2006


Hey Gabriel,
Thanks, I'll try to get it in tonight.
Carter

Carter Bullard
QoSient LLC
150 E. 57th Street Suite 12D
New York, New York 10022
+1 212 588-9133 Phone
+1 212 588-9134 Fax  

-----Original Message-----
From: "Gabriel L. Somlo" <somlo at cmu.edu>
Date: Mon, 12 Jun 2006 16:24:10 
To:argus-info at lists.andrew.cmu.edu
Subject: [ARGUS] argus-3.0.0.rc.5, autoconf, and SASL

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