I’ve just updated my freeradius servers from 2.1.7 to 2.1.12 via yum update and it worked like a charm, I’d always been a little nervous to do this until now. This has given me the confidence to look into upgrading the servers from the source files to get up to 2.2.0.
Reading the README and the INSTALL file from within the tar.gz file I can see that I need to run
./configure
make
make install
Firstly running ./configure failed because my server (CentOS 5.5) didn’t have a C compiler installed. I installed GCC via yum, and on we go.
Now the configure.log tells me I don’t have make installed. I installed that via yum, and on we go.
Now configure seems to be going along like the clappers, quicker than I can read the output to look for errors.
I then ran make, which also seemed to go along just fine.
Then make install, and likewise, nothing obviously wrong.
However when I ran the service in debug mode I can see that it hasn’t been touched by the installer and is still running version 2.1.12, and working.
Looking back through and grepping config.log for ‘error’ I see the following:
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
conftest.c:8:28: error: ac_nonexistent.h: No such file or directory
conftest.c:16: error: size of array 'off_t_is_large' is negative
conftest.c:26: error: 'not' undeclared (first use in this function)
conftest.c:26: error: (Each undeclared identifier is reported only once
conftest.c:26: error: for each function it appears in.)
conftest.c:26: error: expected ';' before 'big'
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
conftest.c:66:22: error: resource.h: No such file or directory
conftest.c:33:22: error: resource.h: No such file or directory
conftest.c:83:21: error: winsock.h: No such file or directory
conftest.c:50:21: error: winsock.h: No such file or directory
conftest.c:85:26: error: sys/security.h: No such file or directory
conftest.c:52:26: error: sys/security.h: No such file or directory
conftest.c:90:18: error: prot.h: No such file or directory
conftest.c:57:18: error: prot.h: No such file or directory
conftest.c:94:17: error: sia.h: No such file or directory
conftest.c:61:17: error: sia.h: No such file or directory
conftest.c:94:18: error: siad.h: No such file or directory
conftest.c:61:18: error: siad.h: No such file or directory
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
conftest.c:102: error: void value not ignored as it ought to be
conftest.c:109: error: 'struct utmpx' has no member named 'ut_xtime'
| /* Override any GCC internal prototype to avoid an error.
| /* Override any GCC internal prototype to avoid an error.
conftest.c:114: error: too many arguments to function 'ctime_r'
I guess there’s something here to show what’s wrong? Is there any log created by make and make install? Do I need to specify an installation directory or does the code know where my existing installation is?
Cheers in advance for any help.
Andi