Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

freeradius setup problems?

Status
Not open for further replies.

mlbasso

MIS
Jan 20, 2004
45
US
I am trying to install freeradius on Red Hat Ent. Ver2.1. I have not made much headway. When I try to compile with 'make' I get some warning and errors:

# make
gmake[1]: Entering directory `/tmp/freeradius/freeradius-1.0.0'
Making all in libltdl...
gmake[2]: Entering directory `/tmp/freeradius/freeradius-1.0.0/libltdl'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE
-DNDEBUG -c ltdl.c
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
-DOPENSSL_NO_KRB5 -Wall -D_GNU_SOURCE -DNDEBUG -c ltdl.c -o ltdl.o
ltdl.c: In function `argzize_path':
ltdl.c:2109: warning: implicit declaration of function `argz_create_sep'
ltdl.c:2113: `ENOMEM' undeclared (first use in this function)
ltdl.c:2113: (Each undeclared identifier is reported only once
ltdl.c:2113: for each function it appears in.)
ltdl.c: In function `foreach_dirinpath':
ltdl.c:2163: warning: implicit declaration of function `argz_next'
ltdl.c:2163: warning: assignment makes pointer from integer without a cast
ltdl.c: In function `lt_dlopenext':
ltdl.c:2926: warning: unused variable `file_found'
ltdl.c: In function `lt_argz_insert':
ltdl.c:3014: warning: implicit declaration of function `argz_insert'
ltdl.c:3018: `ENOMEM' undeclared (first use in this function)
ltdl.c: In function `lt_argz_insertinorder':
ltdl.c:3044: warning: assignment makes pointer from integer without a cast
ltdl.c: In function `lt_argz_insertdir':
ltdl.c:3074: dereferencing pointer to incomplete type
ltdl.c:3074: dereferencing pointer to incomplete type
ltdl.c:3079: dereferencing pointer to incomplete type
ltdl.c:3090: dereferencing pointer to incomplete type
ltdl.c:3099: dereferencing pointer to incomplete type
ltdl.c:3109: dereferencing pointer to incomplete type
ltdl.c:3109: dereferencing pointer to incomplete type
ltdl.c:3109: dereferencing pointer to incomplete type
ltdl.c:3109: dereferencing pointer to incomplete type
ltdl.c:3109: dereferencing pointer to incomplete type
ltdl.c: In function `list_files_by_dir':
ltdl.c:3127: `DIR' undeclared (first use in this function)
ltdl.c:3127: `dirp' undeclared (first use in this function)
ltdl.c:3135: warning: implicit declaration of function `opendir'
ltdl.c:3140: warning: implicit declaration of function `readdir'
ltdl.c:3140: warning: assignment makes pointer from integer without a cast
ltdl.c:3141: dereferencing pointer to incomplete type
ltdl.c:3148: warning: implicit declaration of function `closedir'
ltdl.c: In function `foreachfile_callback':
ltdl.c:3179: warning: assignment makes pointer from integer without a cast
ltdl.c: In function `lt_dlpath_insertdir':
ltdl.c:3474: warning: implicit declaration of function `argz_stringify'
gmake[2]: *** [ltdl.lo] Error 1
gmake[2]: Leaving directory `/tmp/freeradius/freeradius-1.0.0/libltdl'
gmake[1]: *** [common] Error 1
gmake[1]: Leaving directory `/tmp/freeradius/freeradius-1.0.0'
make: *** [all] Error 2

I checked all the obvious places for answers (eg. freeradius.org) with no luck. I assume the above errors are bad, especially since etc/raddb folder is empty. Any ideas?
 
here is my ./configure arguments:
./configure --localstatedir=/var --sysconfdir=/etc

Prior, I had to install required packages and when I did I received numerous remarks which I believe may be a problem.
This looked most serious.
When installing glibc-devel-2.3.2-11.9.i386.rpm I received this:
error: failed dependencies:
kernel-headers is needed by glibc-devel-2.3.2-11.9
kernel-headers >= 2.2.1 is needed by glibc-devel-2.3.2-11.9
binutils < 2.13.90.0.16-5 conflicts with glibc-devel-2.3.2-11.9

 
perhaps you can get an older version for your kernel/ glibc.

The three '-I.' don't seem to be a real problem - saw them when compiling something yesterday, and everything went well.

What kernel do you use?
Code:
uname -a
Perhaps you may install them from your distribution-cds, but if the kernel is older than 2.2.1 you will be out of luck.

seeking a job as java-programmer in Berlin:
 
Perhaps you can upgrade your bin utils and kernel headers. It looks like they're not installed at all, from the first missing dependency.
 
But the kernel-headers shall fit to the kernel - shouldn't they?
So he had to update his kernel, his glibc, ... and since nearly everything depends on the glibc this would mean reinstall nearly everything - wouldn't it?

seeking a job as java-programmer in Berlin:
 
Deffo. If I was in his position I'd consider grabbing a yum rpm and using it to bring everything into line. It looks like someone must have forced an install with --force or --nodeps to get his system in that state.
 
ericbrunson,

You are right, I did a --force --nodeps install. Could you further explain what I need to do to "bring everything into line"
Thanks
 
Basically, you need to find and upgrade all the dependencies that you ignored when you forced the install. That's a tall order, but there are tools to do it for you.

I use 'yum', but there's also 'apt-rpm', though I don't know if RH has set up yum and apt repositories for their enterprise products. The newer version of up2date use yum, but I'm not familiar with the older versions.

Do you have any of these tools on your machine?

If this is a production machine it may be faster and safer to just load a yum supported version of RH on a spare machine, compile freeradius then move the binary to the server.

 
You may be able to get away with just installing the headers for your installed kernel. That's the first thing I'd try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top