Net-SNMP Support

2004-10-06 Thread David
Hi,

I have been running FreeRadius version 1.0.0 with SNMP support
enabled using UCD-SNMP.  Will version 1.0.0 work with Net-SNMP
now?

Just curious.

Thanks,

David


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Net-SNMP Support

2004-10-06 Thread Alan DeKok
David [EMAIL PROTECTED] wrote:
 I have been running FreeRadius version 1.0.0 with SNMP support
 enabled using UCD-SNMP.  Will version 1.0.0 work with Net-SNMP
 now?

  No.  No patches to support Net-SNMP have been submitted.

  Alan DeKok.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Net-SNMP Support

2004-10-06 Thread Paul Hampson
On Wed, Oct 06, 2004 at 02:48:30PM -, David wrote:
 I have been running FreeRadius version 1.0.0 with SNMP support
 enabled using UCD-SNMP.  Will version 1.0.0 work with Net-SNMP
 now?

No, but 1.1.0 does, as does the 1.0.0 and 1.0.1 Debian packaged
versions (although it is disabled for license reasons).

Here's the patch. (Sorry if it gets mangled by my terminal. _)
(It's against 1.0.1, but 1.0.0 should be the same, give or take)

If it won't apply, leave out the patch to configure, and then
regenerate it using autoconf2.13.

--- freeradius-1.0.1.orig/aclocal.m4
+++ freeradius-1.0.1/aclocal.m4
@@ -3770,6 +3770,7 @@
 #ifdef HAVE_UNISTD_H
 #include unistd.h
 #endif
+#include ucd-snmp/ucd-snmp-config.h
 #include ucd-snmp/asn1.h
 #include ucd-snmp/snmp.h
 #include ucd-snmp/snmp_impl.h],
@@ -3800,6 +3801,7 @@
 #ifdef HAVE_UNISTD_H
 #include unistd.h
 #endif
+#include ucd-snmp/ucd-snmp-config.h
 #include ucd-snmp/asn1.h
 #include ucd-snmp/snmp.h
 #include ucd-snmp/snmp_impl.h],
--- freeradius-1.0.1.orig/src/include/radius_snmp.h
+++ freeradius-1.0.1/src/include/radius_snmp.h
@@ -11,6 +11,7 @@
 #include   snmp_impl.h
 #else
 #ifdef HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
+#include   ucd-snmp/ucd-snmp-config.h
 #include   ucd-snmp/asn1.h
 #include   ucd-snmp/snmp.h
 #include   ucd-snmp/snmp_impl.h
--- freeradius-1.0.1.orig/configure
+++ freeradius-1.0.1/configure
@@ -8252,6 +8252,7 @@
 #ifdef HAVE_UNISTD_H
 #include unistd.h
 #endif
+#include ucd-snmp/ucd-snmp-config.h
 #include ucd-snmp/asn1.h
 #include ucd-snmp/snmp.h
 #include ucd-snmp/snmp_impl.h
@@ -8259,7 +8260,7 @@
  int a = 1;
 ; return 0; }
 EOF
-if { (eval echo configure:8263: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
+if { (eval echo configure:8264: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
   rm -rf conftest*
   SNMP_INCLUDE=;ucdsnmp=yes
 else
@@ -8275,7 +8276,7 @@
   for try in /usr/include /usr/local/include $snmp_include_dir; do
 CFLAGS=$old_CFLAGS -I$try
 cat  conftest.$ac_ext EOF
-#line 8279 configure
+#line 8280 configure
 #include confdefs.h
 
 #ifdef HAVE_SYS_TYPES_H
@@ -8293,6 +8294,7 @@
 #ifdef HAVE_UNISTD_H
 #include unistd.h
 #endif
+#include ucd-snmp/ucd-snmp-config.h
 #include ucd-snmp/asn1.h
 #include ucd-snmp/snmp.h
 #include ucd-snmp/snmp_impl.h
@@ -8300,7 +8302,7 @@
  int a = 1;
 ; return 0; }
 EOF
-if { (eval echo configure:8304: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
+if { (eval echo configure:8306: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
   rm -rf conftest*
   SNMP_INCLUDE=-I$try;ucdsnmp=yes
 else
@@ -8322,7 +8324,7 @@
   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp
$snmp_include_dir; do
 CFLAGS=$old_CFLAGS -I$try
 cat  conftest.$ac_ext EOF
-#line 8326 configure
+#line 8328 configure
 #include confdefs.h
 
 #ifdef HAVE_SYS_TYPES_H
@@ -8347,7 +8349,7 @@
  int a = 1;
 ; return 0; }
 EOF
-if { (eval echo configure:8351: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
+if { (eval echo configure:8353: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
   rm -rf conftest*
   SNMP_INCLUDE=;ucdsnmp=no
 else
@@ -8369,7 +8371,7 @@
   for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp
$snmp_include_dir; do
 CFLAGS=$old_CFLAGS -I$try
 cat  conftest.$ac_ext EOF
-#line 8373 configure
+#line 8375 configure
 #include confdefs.h
 
 #ifdef HAVE_SYS_TYPES_H
@@ -8394,7 +8396,7 @@
  int a = 1;
 ; return 0; }
 EOF
-if { (eval echo configure:8398: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
+if { (eval echo configure:8400: \$ac_compile\) 15; (eval $ac_compile) 25; }; 
then
   rm -rf conftest*
   SNMP_INCLUDE=-I$try;ucdsnmp=no
 else
@@ -8428,19 +8430,19 @@
 
   fi
   echo $ac_n checking for snmp_build_var_op in -lsnmp... $ac_c 16
-echo configure:8432: checking for snmp_build_var_op in -lsnmp 5
+echo configure:8434: checking for snmp_build_var_op in -lsnmp 5
 
   old_LIBS=$LIBS
   LIBS=$old_LIBS -lsnmp
   cat  conftest.$ac_ext EOF
-#line 8437 configure
+#line 8439 configure
 #include confdefs.h
 extern char snmp_build_var_op();
 int main() {
  snmp_build_var_op()
 ; return 0; }
 EOF
-if { (eval echo configure:8444: \$ac_link\) 15; (eval $ac_link) 25; }  test 
-s conftest${ac_exeext}; then
+if { (eval echo configure:8446: \$ac_link\) 15; (eval $ac_link) 25; }  test 
-s conftest${ac_exeext}; then
   rm -rf conftest*
   SNMP_LIBS=-lsnmp
 else
@@ -8455,14 +8457,14 @@
 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib
$snmp_lib_dir; do
   LIBS=$old_LIBS -L$try -lsnmp
   cat  conftest.$ac_ext EOF
-#line 8459 configure
+#line 8461 configure
 #include confdefs.h
 extern char snmp_build_var_op();
 int main() {
  snmp_build_var_op()
 ; return 0; }
 EOF
-if { (eval echo configure:8466: \$ac_link\) 15; (eval $ac_link) 25; }  test 
-s conftest${ac_exeext}; then
+if { (eval echo configure:8468: \$ac_link\) 15; (eval $ac_link) 25; }  test 
-s conftest${ac_exeext}; then
   rm -rf conftest*
   SNMP_LIBS=-L$try -lsnmp
 else
@@ -8477,14