Sorry for the delay. Announcement is on the web: http://www.freeradius.org/ Alan DeKok.
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection. I know there was a bug in the older versions with shared libraries, but I was hoping this version fixed it. Any insight would be greatly appreciated... Thanks in Advance, Steve Here are the errors I get when trying to build the port: 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[6]: *** [rlm_attr_rewrite.o] Error 1 gmake[6]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.0.4/src/modules/rlm_attr_rewrit e' gmake[5]: *** [common] Error 2 gmake[5]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.0.4/src/modules' gmake[4]: *** [all] Error 2 gmake[4]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.0.4/src/modules' gmake[3]: *** [common] Error 2 gmake[3]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.0.4/src' gmake[2]: *** [all] Error 2 gmake[2]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.0.4/src' gmake[1]: *** [common] Error 2 gmake[1]: Leaving directory `/usr/ports/net/freeradius/work/freeradius-1.0.4' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/net/freeradius. ----- Original Message ----- From: "Alan DeKok" <aland@ox.org> To: <freeradius-users@lists.freeradius.org> Sent: Friday, June 17, 2005 5:49 PM Subject: FreeRADIUS 1.0.4 has been released.
Sorry for the delay. Announcement is on the web:
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Fri, Jun 17, 2005 at 08:38:10PM -0400, Stephen D. Bechard wrote:
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection.
Here are the errors I get when trying to build the port:
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' <snip>
This is a problem with building on FreeBSD 4.x, im working on it now. Andrew
"Stephen D. Bechard" <steve@destek.net> wrote:
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection.
Ok...
I know there was a bug in the older versions with shared libraries, but I was hoping this version fixed it. Any insight would be greatly appreciated...
I don't recall specific problems with shared libraries. Can you be more specific?
Here are the errors I get when trying to build the port:
In file included from rlm_attr_rewrite.c:31: /usr/include/regex.h:46: syntax error before `regoff_t'
That has nothing to do with shared libraries. It looks like the regular expression header files on your system are broken. 'regoff_t' is defined in regex.h on every other system. If you're not going to use rlm_attr_rewrite, just delete the directory. I would have hoped that the FreeBSD ports maintainer verified that the port worked before committing it to FreeBSD. If so, ask the port maintainer why it doesn't work on your system. I don't run FreeBSD, so I can't help you. Alan DeKok.
On Fri, Jun 17, 2005 at 09:09:31PM -0400, Alan DeKok wrote:
"Stephen D. Bechard" <steve@destek.net> wrote:
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection.
Ok...
Here are the errors I get when trying to build the port:
In file included from rlm_attr_rewrite.c:31: /usr/include/regex.h:46: syntax error before `regoff_t'
That has nothing to do with shared libraries.
It looks like the regular expression header files on your system are broken. 'regoff_t' is defined in regex.h on every other system.
If you're not going to use rlm_attr_rewrite, just delete the directory.
I would have hoped that the FreeBSD ports maintainer verified that the port worked before committing it to FreeBSD. If so, ask the port maintainer why it doesn't work on your system. I don't run FreeBSD, so I can't help you.
I did on 5.4 and current but not 4.x, my bad. This will be fixed shortly. Andrew
What is the function of rlm_attr_rewrite?? Becoz I'm havng the same problem compiling 1.0.3/1.0.4 on my FB 4.11 machine.. --haizam ----- Original Message ----- From: "Alan DeKok" <aland@ox.org> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Saturday, June 18, 2005 09:09 Subject: Re: FreeRADIUS 1.0.4 has been released.
"Stephen D. Bechard" <steve@destek.net> wrote:
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection.
Ok...
I know there was a bug in the older versions with shared libraries, but I was hoping this version fixed it. Any insight would be greatly appreciated...
I don't recall specific problems with shared libraries. Can you be more specific?
Here are the errors I get when trying to build the port:
In file included from rlm_attr_rewrite.c:31: /usr/include/regex.h:46: syntax error before `regoff_t'
That has nothing to do with shared libraries.
It looks like the regular expression header files on your system are broken. 'regoff_t' is defined in regex.h on every other system.
If you're not going to use rlm_attr_rewrite, just delete the directory.
I would have hoped that the FreeBSD ports maintainer verified that the port worked before committing it to FreeBSD. If so, ask the port maintainer why it doesn't work on your system. I don't run FreeBSD, so I can't help you.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Mon, Jun 20, 2005 at 11:20:19AM +0800, Rohaizam Abu Bakar wrote:
What is the function of rlm_attr_rewrite?? Becoz I'm havng the same problem compiling 1.0.3/1.0.4 on my FB 4.11 machine..
Are you using the port becuase that problem has been fixed. If not then you will want the patch in: net/freeradius/files/patch-src-modules-rlm_attr_rewrite-rlm_attr_rewrite.c Andrew
not using ports... I'll try the patch.. thanks.. --haizam ----- Original Message ----- From: "Andrew Thompson" <andy@fud.org.nz> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Monday, June 20, 2005 11:30 Subject: Re: FreeRADIUS 1.0.4 has been released.
On Mon, Jun 20, 2005 at 11:20:19AM +0800, Rohaizam Abu Bakar wrote:
What is the function of rlm_attr_rewrite?? Becoz I'm havng the same problem compiling 1.0.3/1.0.4 on my FB 4.11 machine..
Are you using the port becuase that problem has been fixed. If not then you will want the patch in:
net/freeradius/files/patch-src-modules-rlm_attr_rewrite-rlm_attr_rewrite.c
Andrew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Andrew Thompson <andy@fud.org.nz> wrote:
Are you using the port becuase that problem has been fixed. If not then you will want the patch in:
net/freeradius/files/patch-src-modules-rlm_attr_rewrite-rlm_attr_rewrite.c
Is it something which can get pulled into FreeRADIUS? Alan DeKok.
On Mon, Jun 20, 2005 at 11:22:14AM -0400, Alan DeKok wrote:
Andrew Thompson <andy@fud.org.nz> wrote:
Are you using the port becuase that problem has been fixed. If not then you will want the patch in:
net/freeradius/files/patch-src-modules-rlm_attr_rewrite-rlm_attr_rewrite.c
Is it something which can get pulled into FreeRADIUS?
This problem only applies to FreeBSD 4.x and not the newer releases (>5.0). It requires <sys/types.h> to be included before <regex.h>. --- 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 Previously this was being pulled in from libradius.h, but that was removed 7 weeks ago. I am happy to keep this as a local patch as it is only a quirk of 4.x and the port properly patches it. Andrew
OK! That solves the problem! I'd compiled succesfully freeradius-1.0.4 on a FB 4.11 machine with the indicated diff. Thks a lot for the colaboration Andrew! On 6/20/05, Andrew Thompson <andy@fud.org.nz> wrote:
On Mon, Jun 20, 2005 at 11:22:14AM -0400, Alan DeKok wrote:
Andrew Thompson <andy@fud.org.nz> wrote:
Are you using the port becuase that problem has been fixed. If not then you will want the patch in:
net/freeradius/files/patch-src-modules-rlm_attr_rewrite-rlm_attr_rewrite.c
Is it something which can get pulled into FreeRADIUS?
This problem only applies to FreeBSD 4.x and not the newer releases (>5.0). It requires <sys/types.h> to be included before <regex.h>.
--- 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
Previously this was being pulled in from libradius.h, but that was removed 7 weeks ago. I am happy to keep this as a local patch as it is only a quirk of 4.x and the port properly patches it.
Andrew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On Fri, Jun 17, 2005 at 08:38:10PM -0400, Stephen D. Bechard wrote:
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection.
Here are the errors I get when trying to build the port:
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'
This has been fixed Steve, please cvsup and try again. Sorry for the breakage. cheers, Andrew
It appears that did the trick! Thank you for your prompt attention to this matter. It is greatly appreciated! Enjoy, Steve ----- Original Message ----- From: "Andrew Thompson" <andy@fud.org.nz> To: "FreeRadius users mailing list" <freeradius-users@lists.freeradius.org> Sent: Friday, June 17, 2005 10:56 PM Subject: Re: FreeRADIUS 1.0.4 has been released.
On Fri, Jun 17, 2005 at 08:38:10PM -0400, Stephen D. Bechard wrote:
I am still having diffuculty building the freeradius on all of my FreeBSD Servers with the ports collection.
Here are the errors I get when trying to build the port:
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'
This has been fixed Steve, please cvsup and try again. Sorry for the breakage.
cheers,
Andrew - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (5)
-
Alan DeKok -
Andrew Thompson -
Mario Alberto Cruz Gartner -
Rohaizam Abu Bakar -
Stephen D. Bechard