RE: Freeradius-Users Digest, Vol 118, Issue 29
Date: Tue, 17 Feb 2015 07:36:35 -0500 From: Alan DeKok <aland@deployingradius.com> Subject: Re: compiling Freeradius v3 on Solaris 11
The issue I am bumping into is the same as described here: http://lists.freeradius.org/pipermail/freeradius-users/2014- June/072438.html (compiling Freeradius 3.0.3 at Solaris). src/lib/udpfromto.c:251:6: error: 'struct msghdr' has no member named 'msg_control'
Is there anything I can do to help get this issue fixed?
This should help: ./configure —help
./configure ----with-udpfromto=no
Thank you, I overlooked this, this helps!
- I have tried compiling arran's Freeradius 3.0.7 RC0, but keep getting an error that my compiler must support C11, I am using Solaris Studio 12.4, whoch should support C11:
https://docs.oracle.com/cd/E37069_01/html/E37074/appxc.html#scrolltoc
Is my compiler broken?
I’d say so.
If I try to compile the snippet itself I get a warning that the last return
was not reached.
It’s a warning. Not an error.
Yes, but with the -Werror option that the configure script passes, all warnings are treated as errors. Furthermore, Configure does not seem to set the RADIUSD_VERSION constant in /src/include/features.h and /src/include/autoconf.h RADIUSD_VERSION_STRING in these files were set to the correct version. If I set RADIUSD_VERSION to 030006 manually, I can compile and get 3.0.6 running. Thank you very much! One more comment: If I try to build 3.0.7 using the same settings as above, RADIUS_VERSION_STRING is set to 3.1.0, and I get this error further on: Undefined first referenced symbol in file rad_suid_set_down_uid build/objs/src/main/mainconfig.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [build/bin/local/radiusd] Error 1 Am I the only one? :) Kind regards Sander Eerdekens
Please don’t reply to the digest messages. That makes it harder to tell what’s going on. On Feb 17, 2015, at 9:25 AM, Sander Eerdekens <sander.eerdekens@uzleuven.be> wrote:
Yes, but with the -Werror option that the configure script passes, all warnings are treated as errors.
So…. edit Make.inc, and delete the -Werror. The file is just text.
Furthermore, Configure does not seem to set the RADIUSD_VERSION constant in /src/include/features.h and /src/include/autoconf.h RADIUSD_VERSION_STRING in these files were set to the correct version.
That’s a problem. configure sets RADIUSD_VERSION on all systems I have access to. I’ll put it down to Solaris being broken.
One more comment: If I try to build 3.0.7 using the same settings as above, RADIUS_VERSION_STRING is set to 3.1.0,
Then you’re not using 3.0.7. You’re using the “master” branch. Do: $ git checkout v3.0.x and you will get the 3.0.7 source.
and I get this error further on: Undefined first referenced symbol in file rad_suid_set_down_uid build/objs/src/main/mainconfig.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [build/bin/local/radiusd] Error 1
What program is it trying to build? Alan DeKok.
- I have tried compiling arran's Freeradius 3.0.7 RC0, but keep getting an error that my compiler must support C11, I am using Solaris Studio 12.4, whoch should support C11:
https://docs.oracle.com/cd/E37069_01/html/E37074/appxc.html#scrolltoc
Is my compiler broken?
I’d say so.
If I try to compile the snippet itself I get a warning that the last return
was not reached.
It’s a warning. Not an error.
Yes, but with the -Werror option that the configure script passes, all warnings are treated as errors.
Because the lack of that particular C11 feature usually generates a warning.
Furthermore, Configure does not seem to set the RADIUSD_VERSION constant in /src/include/features.h and /src/include/autoconf.h RADIUSD_VERSION_STRING in these files were set to the correct version.
If I set RADIUSD_VERSION to 030006 manually, I can compile and get 3.0.6 running. Thank you very much!
One more comment: If I try to build 3.0.7 using the same settings as above, RADIUS_VERSION_STRING is set to 3.1.0, and I get this error further on: Undefined first referenced symbol in file rad_suid_set_down_uid build/objs/src/main/mainconfig.o ld: fatal: symbol referencing errors collect2: error: ld returned 1 exit status gmake: *** [build/bin/local/radiusd] Error 1
Am I the only one? :)
Fixed. Arran Cudbard-Bell <a.cudbardb@freeradius.org> FreeRADIUS development team FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2
participants (3)
-
Alan DeKok -
Arran Cudbard-Bell -
Sander Eerdekens