Try building SNMP support with -lkstat for Solaris 9
authorphampson <phampson>
Sun, 13 Feb 2005 01:01:57 +0000 (01:01 +0000)
committerphampson <phampson>
Sun, 13 Feb 2005 01:01:57 +0000 (01:01 +0000)
aclocal.m4
doc/ChangeLog

index 9bf49a0..755d998 100644 (file)
@@ -295,7 +295,7 @@ dnl #
               SNMP_LIBS=)
 
   if test "x$SNMP_LIBS" = "x"; then
-    for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
+    for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
       LIBS="$old_LIBS -L$try -lsnmp"
       AC_TRY_LINK([extern char snmp_build_var_op();],
                   [ snmp_build_var_op()],
@@ -316,6 +316,19 @@ dnl   #
       if test "x$SNMP_LIBS" != "x"; then
         break;
       fi
+dnl   #
+dnl   #  That didn't work.  Try adding the '-lkstat' line.
+dnl   #  Some SNMP libraries are linked against Kernel Statistics,
+dnl   #  in particular, Solaris 9...
+dnl   #
+      LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
+      AC_TRY_LINK([extern char snmp_build_var_op();],
+                  [ snmp_build_var_op()],
+                  SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat",
+                  SNMP_LIBS=)
+      if test "x$SNMP_LIBS" != "x"; then
+        break;
+      fi
     done
   fi
   LIBS="$old_LIBS"
index dd62150..ba2956d 100644 (file)
@@ -21,6 +21,7 @@ FreeRADIUS 1.1.0 ; $Date$, urgency=low
        * Fix MD4 calculation on big-endian machines.
        * Correct handling of post-auth REJECT stanza to include externally and
          proxy-received rejections. (Bugzilla bug #149)
+       * Fix building SNMP support on Solaris 9, which needs -lkstat
 
 FreeRADIUS 1.0.1 ; Date: 2004/09/02 10:52:03, urgency=high
        Denial-of-Service Security Fix