Hello all,
 
Freeradius 0.9.0
linux-2.4.20-8
net-snmp-5.0.6-17
net-snmp-utils-5.0.6-17
net-snmp-devel-5.0.6-17
 

I am trying to compile freeradius with snmp support. Initially i have installed all the net-snmp modules as mentioned above hoping for a clean compilation. The compilation went along fine without any errors and the system was very much ready. I configured my /etc/snmp/snmpd.conf file and also /etc/raddb/snmp.conf file and put the necessary values. The radius in debug mode started without any errors, but i can see that radius is **NOT** loading the SNMP module. A "snmpget" query is also returning errors which means that something was wrong in compilation.
After that i read the config.log file
 
 
 
>>>>><<<<<<<
 
int main() {
 int foo = offsetof(struct utmpx, ut_xtime)
; return 0; }
configure:7433: checking for working const
configure:7509: checking type of OS
configure:7524: checking for developer gcc flags
configure:7539: checking for crypt in -lcrypt
configure:7639: checking for setkey in -lcipher
configure:7687: checking for asn1.h,snmp.h,snmp_impl.h
configure:7715: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs  conftest.c 1>&5
In file included from configure:7707:
/usr/include/ucd-snmp/asn1.h:7:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from configure:7708:
/usr/include/ucd-snmp/snmp.h:7:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from configure:7709:
/usr/include/ucd-snmp/snmp_impl.h:9:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
configure:7710: warning: function declaration isn't a prototype
configure: In function `main':
configure:7711: warning: unused variable `a'
configure: failed program was:
#line 7690 "configure"
#include "confdefs.h"
 
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <ucd-snmp/asn1.h>
#include <ucd-snmp/snmp.h>
#include <ucd-snmp/snmp_impl.h>
int main() {
 int a = 1;
; return 0; }
configure:7756: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wall -D_GNU_SOURCE -g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -I/usr/include  conftest.c 1>&5
In file included from configure:7748:/usr/include/ucd-snmp/asn1.h:7:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from configure:7749:/usr/include/ucd-snmp/snmp.h:7:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from configure:7750:
/usr/include/ucd-snmp/asn1.h:7:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from configure:7749:/usr/include/ucd-snmp/snmp.h:7:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
In file included from configure:7750:/usr/include/ucd-snmp/snmp_impl.h:9:2: #error "Please update your headers or configure using --enable-ucd-snmp-compatibility"
configure:7751: warning: function declaration isn't a prototype
configure: In function `main':
configure:7752: warning: unused variable `a'
configure: failed program was:
 
>>>>><<<<<<<
 
Is it possible that because of the errors above radius is not compiled with snmp support? If that is the case, how to compile it?
 
This is just a wild guess. But I have the ucd-snmp as well net-snmp headers in /usr/include/ucd-snmp and /usr/include/net-snmp.
 
>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<
[EMAIL PROTECTED] net-snmp]# ls
agent          library    net-snmp-config.h    pdu_api.h      system       varbind_api.h
config_api.h   machine    net-snmp-includes.h  session_api.h  types.h      version.h
definitions.h  mib_api.h  output_api.h         snmpv3_api.h   utilities.h
 
[EMAIL PROTECTED] net-snmp]# ls ../ucd-snmp/
agent_index.h        header_complex.h     snmp_agent.h       snmp-tc.h                  ucd-snmp-config.h
agent_read_config.h  int64.h              snmp_alarm.h       snmpusm.h                  ucd-snmp-includes.h
agent_registry.h     keytools.h           snmp_api.h         snmpv3.h                   util_funcs.h
agent_trap.h         mib.h                snmp_client.h      snmp_vars.h                var_struct.h
asn1.h               mibincl.h            snmp_debug.h       struct.h                   version.h
auto_nlist.h         mib_module_config.h  snmp.h             system.h
callback.h           parse.h              snmp_impl.h        tools.h
default_store.h      read_config.h        snmp_logging.h     transform_oids.h
ds_agent.h           scapi.h              snmp_parse_args.h  ucd-snmp-agent-includes.h
 
>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
I have tried giving the option --enable-ucd-snmp-compatibility with configure command, but then also i get the same messages in my logs.
 
My configuration files looks like this
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<
In /etc/raddb/snmp.conf:
smux_password = x#x#x#x#
 
In /etc/snmp/snmpd.conf:
smuxpeer .1.3.6.1.4.1.3317.1.3.1 x#x#x#x#
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 

Anybody could kindly give me some help or hint whats going on here???
 
Regards,
Ats
 

 
 
 

Reply via email to