Unable to compile Freeradius 3.0.16
Hi, I am unable to compile Freeradius 3.0.16. OS version: Red Hat Enterprise Linux Server release 5.11 (Tikanga) Compiler version: Using built-in specs. Target: i386-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=i386-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-55) Debug logs: CC jlibtool.c HEADER src/include/attributes.h HEADER src/include/features.h HEADER src/include/missing.h HEADER src/include/tls.h HEADER src/include/rfc2865.h HEADER src/include/rfc2866.h HEADER src/include/rfc2867.h HEADER src/include/rfc2868.h HEADER src/include/rfc2869.h HEADER src/include/rfc3162.h HEADER src/include/rfc3576.h HEADER src/include/rfc3580.h HEADER src/include/rfc4072.h HEADER src/include/rfc4372.h HEADER src/include/rfc4603.h HEADER src/include/rfc4675.h HEADER src/include/rfc4679.h HEADER src/include/rfc4818.h HEADER src/include/rfc4849.h HEADER src/include/rfc5090.h HEADER src/include/rfc5176.h HEADER src/include/rfc5447.h HEADER src/include/rfc5580.h HEADER src/include/rfc5607.h HEADER src/include/rfc5904.h HEADER src/include/rfc6519.h HEADER src/include/rfc6572.h HEADER src/include/rfc6677.h HEADER src/include/rfc6911.h HEADER src/include/rfc6929.h HEADER src/include/rfc6930.h HEADER src/include/rfc7055.h HEADER src/include/rfc7155.h HEADER src/include/rfc7268.h HEADER src/include/rfc7499.h HEADER src/include/rfc7930.h HEADER src/include/vqp.h HEADER src/include/freeradius.h CC src/lib/cbuff.c cc1: error: unrecognized command line option "-Wno-date-time" make: *** [build/objs/src/lib/cbuff.lo] Error 1 I have fixed this issue by removing "-Wno-date-time" from configure & configure.ac files. But question is: is it correct approach? Thank you very much.
On 15/01/2018, at 8:28 PM, Peter Balsianok <balsianok.peter@gmail.com> wrote:
Hi,
I am unable to compile Freeradius 3.0.16.
OS version: Red Hat Enterprise Linux Server release 5.11 (Tikanga)
<snip>
cc1: error: unrecognized command line option "-Wno-date-time" make: *** [build/objs/src/lib/cbuff.lo] Error 1
I have fixed this issue by removing "-Wno-date-time" from configure & configure.ac files. But question is: is it correct approach?
You’re compiling on RHEL 5.11, which is almost certainly going to cause you problems… any reason you can’t run a more modern OS? Can you show the commands you are running to compile this? This option is enabled if "--enable-reproducible-builds” is passed to configure. The default is that this is disabled. You should remove this option from the configure command line. -- Nathan Ward
I am aware of it, but i know big company (too slow progress). I use following configure options: ./configure --enable-developer --prefix=/app/radius/freeradius-3.0.16 --disable-openssl-version-check On Mon, Jan 15, 2018 at 10:32 AM, Herwin Weststrate <freeradius@herwinw.nl> wrote:
Peter Balsianok wrote:
Hi,
I am unable to compile Freeradius 3.0.16.
... > gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
Well, that is pretty ancient. FreeRadius uses some C11 keywords, these are supported from GCC 4.9. So your build system is too old.
-- Herwin Weststrate
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list /users.html
Red hat 5 standard production support ended march 2017. You may have company ELS support (extended support) until 2020 but imho if redhat are offering to do that then they must do all the support work and not put the burden onto open source projects to keep software working with seriously out of date tooling and libraries (!) alan On 15 Jan 2018 10:01 am, "Peter Balsianok" <balsianok.peter@gmail.com> wrote:
I am aware of it, but i know big company (too slow progress). I use following configure options: ./configure --enable-developer --prefix=/app/radius/freeradius-3.0.16 --disable-openssl-version-check
On Mon, Jan 15, 2018 at 10:32 AM, Herwin Weststrate <freeradius@herwinw.nl
wrote:
Peter Balsianok wrote:
Hi,
I am unable to compile Freeradius 3.0.16.
... > gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)
Well, that is pretty ancient. FreeRadius uses some C11 keywords, these are supported from GCC 4.9. So your build system is too old.
-- Herwin Weststrate
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list /users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
Peter Balsianok wrote:
I am aware of it, but i know big company (too slow progress). I use following configure options: ./configure --enable-developer --prefix=/app/radius/freeradius-3.0.16 --disable-openssl-version-check
No amount of configuration options is going to change the usage of these C11 keywords. -- Herwin Weststrate
On Jan 15, 2018, at 10:58 AM, Herwin Weststrate <freeradius@herwinw.nl> wrote:
Peter Balsianok wrote:
I am aware of it, but i know big company (too slow progress). I use following configure options: ./configure --enable-developer --prefix=/app/radius/freeradius-3.0.16 --disable-openssl-version-check
No amount of configuration options is going to change the usage of these C11 keywords.
We can pretend its C11 keywords, just to be mean, but v3.0.x series doesn't use any... C11 is required for versions >= v4.0.x to support the weird polymorphic stuff we now do with boxed values, and for stdatomic support which is used for the lockless queues. -Arran
CC src/lib/cbuff.c cc1: error: unrecognized command line option "-Wno-date-time" make: *** [build/objs/src/lib/cbuff.lo] Error 1
I have fixed this issue by removing "-Wno-date-time" from configure & configure.ac files. But question is: is it correct approach?
The correct approach is to test for -Wno-date-time support like we do for other warnings. I'll leave that up to the developer who introduced -Wno-date-time though :P -Arran
t'was added for a reasonable reason :) not having had to go through a stringent audit that would require it, I can only sympathise with those that do :) alan
On Mon, 2018-01-15 at 13:22 -0700, Arran Cudbard-Bell wrote:
CC src/lib/cbuff.c cc1: error: unrecognized command line option "-Wno-date-time" make: *** [build/objs/src/lib/cbuff.lo] Error 1
I have fixed this issue by removing "-Wno-date-time" from configure & configure.ac files. But question is: is it correct approach?
The correct approach is to test for -Wno-date-time support like we do for other warnings.
https://github.com/FreeRADIUS/freeradius-server/pull/2158 I've tried to test it properly on CentOS 5, but I've wasted enough time already getting yum working and given up on talloc. But the configure test seems OK.
I'll leave that up to the developer who introduced -Wno-date-time though :P
:-P back! The usual answer here for people using FreeRADIUS as old as the compiler on that system is to "go away and upgrade"... But, in the mean time, the easy workaround without patching should be to pass "--enable-reproducible-builds" to configure. -- Matthew
participants (6)
-
Alan Buxey -
Arran Cudbard-Bell -
Herwin Weststrate -
Matthew Newton -
Nathan Ward -
Peter Balsianok