Compilation error

classic Classic list List threaded Threaded
2 messages Options
| Threaded
Open this post in threaded view
|

Compilation error

Oleg M. Golovanov
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'
rlm_attr_rewrite.c: In function `do_attr_rewrite':
rlm_attr_rewrite.c:314: structure has no member named `rm_so'
rlm_attr_rewrite.c:316: structure has no member named `rm_so'
rlm_attr_rewrite.c:318: structure has no member named `rm_eo'
rlm_attr_rewrite.c:318: structure has no member named `rm_so'
rlm_attr_rewrite.c:330: structure has no member named `rm_eo'
rlm_attr_rewrite.c:348: structure has no member named `rm_so'
rlm_attr_rewrite.c:357: structure has no member named `rm_so'
rlm_attr_rewrite.c:358: structure has no member named `rm_eo'
rlm_attr_rewrite.c:358: structure has no member named `rm_so'
rlm_attr_rewrite.c:359: structure has no member named `rm_eo'
rlm_attr_rewrite.c:359: structure has no member named `rm_so'
gmake[5]: *** [rlm_attr_rewrite.o] Error 1
gmake[5]: Leaving directory
`/usr/home/olmi/com/freeradius-1.0.4/src/modules/rlm_attr_rewrite'
gmake[4]: *** [common] Error 2
gmake[4]: Leaving directory
`/usr/home/olmi/com/freeradius-1.0.4/src/modules'
gmake[3]: *** [all] Error 2
gmake[3]: Leaving directory
`/usr/home/olmi/com/freeradius-1.0.4/src/modules'
gmake[2]: *** [common] Error 2
gmake[2]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/usr/home/olmi/com/freeradius-1.0.4/src'
gmake: *** [common] Error 2
*** Error code 2

Stop in /usr/home/olmi/com/freeradius-1.0.4.

--
Respectively,

Oleg Golovanov
Krasnoyarsk city
Russia

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
| Threaded
Open this post in threaded view
|

Re: Compilation error

Andrew Thompson-4
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

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