v3.0.12 build error on RHEL6
Hi, I’m trying to build FreeRadius v.3.0.12 on a RHEL6.4 patched to a 6.8 kernel. make has been erroring at: CC src/modules/rlm_eap/radeapclient.c gcc.orig: ": No such file or directory gcc.orig: ": No such file or directory <command-line>: warning: missing terminating " character <command-line>: warning: missing terminating " character <command-line>: warning: "IS_MODULE" redefined <command-line>: warning: this is the location of the previous definition <command-line>: warning: missing terminating " character <command-line>: warning: missing terminating " character make: *** [build/objs/src/modules/rlm_eap/radeapclient.lo] Error 1 GCC Builds: [tmp]# gcc -v gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) [tmp]# ls -al /usr/bin/gcc -rwxr-xr-x 1 root root 535 Jun 27 2013 /usr/bin/gcc [tmp]# cc -v gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC) [tmp]# ls -al /usr/bin/cc lrwxrwxrwx 1 root root 3 Nov 7 09:01 /usr/bin/cc -> gcc Attached is my configure output and make output. Any ideas on what might be the issue?
On Jan 30, 2017, at 10:02 AM, Chris Taylor (chtaylo2) <chtaylo2@cisco.com> wrote:
Hi, I’m trying to build FreeRadius v.3.0.12 on a RHEL6.4 patched to a 6.8 kernel.
make has been erroring at:
Your GCC is probably too old. Try the v3.0.x branch from git. If that doesn't work, try installing a newer version of GCC.
GCC Builds:
[tmp]# gcc -v
gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
Yeah... that's 5 years old. We've moved v3 to using newer C compiler features. They make programming much simpler. Alan DeKok.
Hi Am 30.01.2017 um 16:25 schrieb Alan DeKok: [...]
GCC Builds:
[tmp]# gcc -v
gcc version 4.4.7 20120313 (Red Hat 4.4.7-17) (GCC)
Yeah... that's 5 years old. We've moved v3 to using newer C compiler features. They make programming much simpler. If you absolutely require running on RHEL6... maybe have a look at "Software Collections". If I remember correctly Devtoolset-4 gives you access to GCC 5.2.* on RHEL6.
This might be an easier (and more quick way) way than bootstrapping a modern GCC including dependencies properly on your own. I stumbled upon SCL some time ago unrelated to FreeRADIUS. The version of GCC shipped with EL6 is really becoming outdated to build for modern software on it. -- Mathieu * https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4/
Hi,
This might be an easier (and more quick way) way than bootstrapping a modern GCC including dependencies properly on your own. I stumbled upon SCL some time ago unrelated to FreeRADIUS. The version of GCC shipped with EL6 is really becoming outdated to build for modern software on it.
+ - install devtoolset - version 6 i believe is the current, so yum install devtoolset-6 then add the required source line to your profile, or run the required command before going to the FR source and doing the ./configure etc steps. alan
Thanks for the suggestions. With RHEL6 soon to be EOF, I gave v3.0.12 on RHEL7 a shot and it worked. I’m just going to re-spin these hosts to RHEL7 to make life easier. ☺ Thanks Chris On 1/31/17, 6:12 AM, "Freeradius-Users on behalf of A.L.M.Buxey@lboro.ac.uk" <freeradius-users-bounces+chtaylo2=cisco.com@lists.freeradius.org on behalf of A.L.M.Buxey@lboro.ac.uk> wrote: Hi, > This might be an easier (and more quick way) way than bootstrapping a > modern GCC including dependencies properly on your own. I stumbled upon > SCL some time ago unrelated to FreeRADIUS. The version of GCC shipped > with EL6 is really becoming outdated to build for modern software on it. + - install devtoolset - version 6 i believe is the current, so yum install devtoolset-6 then add the required source line to your profile, or run the required command before going to the FR source and doing the ./configure etc steps. alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Alan DeKok -
Chris Taylor (chtaylo2) -
Mathieu Simon (Lists)