Compilation error

Andrew Thompson andy at fud.org.nz
Wed Jun 22 04:43:05 CEST 2005


On Wed, Jun 22, 2005 at 10:24:41AM +0800, Oleg M. Golovanov wrote:
> I try to make FreeRADIUS 1.0.4 on FreeBSD 4.11
> and got the followin ( the previous version has been made successfully).
> Does anybody know the problem or maybe where to search?
> 
> In file included from rlm_attr_rewrite.c:31:
> /usr/include/regex.h:46: syntax error before `regoff_t'
> /usr/include/regex.h:46: warning: type defaults to `int' in declaration 
> of `regoff_t'
> /usr/include/regex.h:46: warning: data definition has no type or storage 
> class
> /usr/include/regex.h:56: syntax error before `regoff_t'

this has come up a bit lately. You can either use the port, or use this
patch

Andrew


--- src/modules/rlm_attr_rewrite/rlm_attr_rewrite.c.orig        Sat Jun 18 14:29:43 2005
+++ src/modules/rlm_attr_rewrite/rlm_attr_rewrite.c     Sat Jun 18 14:31:48 2005
@@ -27,6 +27,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
 #ifdef HAVE_REGEX_H
 #      include <regex.h>
 #endif




More information about the Freeradius-Users mailing list