Need help installing 1.0.4 on RHEL update 4

Paul Hampson Paul.Hampson at PObox.com
Sat Jul 9 07:38:41 CEST 2005


On Fri, Jul 08, 2005 at 11:36:33AM -0400, Ken George wrote:
> I am not a RHEL expert, but have installed the 1.0.1 RPM of freeradius.

> I am trying to get freeradius to authenticate against a Windows 2003
> Active Directory.

> Once I can get radtest to work on the server I'll configure the clients
> (Cisco VPN 3005 and console access for all my other Cisco rotuers,
> switches, etc).

> Since 1.0.1 is older I thought I'd try to get 1.0.4 in before banging
> out my .conf file problems.

> I get the following errors when I try to ./configure 1.0.4

> configure:7989: checking for ut_xtime in struct utmpx
> configure:8005: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DOPENSSL_NO_KRB5    conftest.c 1>&5
> configure: In function `main':
> configure:8001: structure has no member named `ut_xtime'    <-- the
> first problem
> configure: failed program was:
> #line 7993 "configure"
> #include "confdefs.h"
> 
> #include <utmpx.h>
> #ifndef offsetof
> #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
> #endif
> 
> int main() {
>  int foo = offsetof(struct utmpx, ut_xtime) 
> ; return 0; }

There's no ut_xtime in struct utmpx. Why is this a problem?

> configure:8336: checking for asn1.h,snmp.h,snmp_impl.h
> configure:8364: gcc -c -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DOPENSSL_NO_KRB5   -Wall -D_GNU_SOURCE -DNDEBUG  conftest.c 1>&5
> In file included from configure:8356:
> /usr/include/ucd-snmp/asn1.h:7:2: #error "Please update your headers or
> configure using --enable-ucd-snmp-compatibility"  <-- (this error then
> occurs multiple times)

This is because you're using net-snmp in ucd-snmp compatibility
mode, and that is not supported in stock 1.0.4. You can try this
patch:
http://www.freeradius.org/cgi-bin/cvsweb.cgi/~checkout~/radiusd/debian/patches/Attic/01_NET-SNMP_build_support.dpatch?rev=1.1.2.2&content-type=text/plain&hideattic=0
although be warned that if your net-snmp is not configured exactly
the same as your FreeRADIUS, you _will_ get nasty nasty problems. I
believe these problems were first observed on a RedHat system, which
ships a net-snmp package which doesn't neccessarily match the defines
you need to build FreeRADIUS.

Your other choice is to upgrade to CVS HEAD, but that may not be in
working condition right now. (Someone mentioned a proxying problem
earlier...)

-- 
Paul "TBBle" Hampson, on an alternate email client.



More information about the Freeradius-Users mailing list