Solaris 8 - radiusd: Cannot find ELF
Hello. I am new to the freeradius application. I am trying to install freeradius-1.1.0 in a lab environment onto a Sun Ultra 10, running Solaris 8 02/04. I understand there are no pre-built packages available. I've now made it through the "configure, make, make install" process but whenever I attempt to start radiusd, I get the following output, root@TE-Radius# radiusd radiusd: Cannot find ELF Killed I've searched through the mailing list archives here and tried many suggestions but I'm still getting the same results. Here is some info on my system... root@TE-Radius# uname -a SunOS TE-Radius 5.8 Generic_117350-27 sun4u sparc SUNW,Ultra-5_10 root@TE-Radius# echo $CC gcc root@TE-Radius# echo $PATH /usr/local/bin:/usr/sbin:/usr/bin:/sbin:/etc:/usr/ccs/bin:/usr/local/sbin:. root@TE-Radius# echo $LD_LIBRARY_PATH /usr/local/lib I added the following packages, binutils-2.11.2 gdbm-1.8.3 libiconv-1.8 GNUzip freeradius glib-2.6.2 zlib-1.2.3 bash-3.0 gcc-3.4.2 gmake-3.80 root@TE-Radius# gcc -v Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2/specs Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls Thread model: posix gcc version 3.4.2 root@TE-Radius# file /usr/local/sbin/radiusd /usr/local/sbin/radiusd: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, stripped I suspect there may have been a problem during the compiling/installation but I am not familiar enough with this process to determine where the problem might be. I saved the output from "configure, make, make install". They're a little lengthy for an email. Perhaps I can ftp them somewhere for further review? Thank you in advance!
Thanks for pointing me in the right direction. Mr Google did know the problem: The problem is solved when using SUNWbtool's /usr/ccs/bin/strip instead of GNU strip. GNU strip is likely located in /usr/local/bin. Make sure that /usr/ccs/bin is located before /usr/local/bin in your PATH and run make install: PATH=/usr/ccs/bin:$PATH make install What a pain?!? For the "configure", you initially have to have your system variables set as, PATH=$PATH:/sbin:/etc:/usr/ccs/bin:/usr/local/bin:/usr/local/sbin:.; export PATH LD_LIBRARY_PATH=/usr/local/lib; export LD_LIBRARY_PATH CC=gcc; export CC For the "make", I had to specify "/usr/ccs/bin/make" (not "/usr/local/bin/make"). Before running "make install", change your PATH to, root@TE-Radius# echo $PATH /usr/ccs/bin:/usr/sbin:/usr/bin:/sbin:/etc:/usr/local/bin:/usr/local/sbin:. I vi'd my /usr/local/etc/raddb/radiusd.conf file to un-# passwd = /etc/passwd shadow = /etc/shadow group = /etc/group Now it starts up as, root@TE-Radius# radiusd Thu Feb 23 18:01:50 2006 : Info: Starting - reading configuration files ... Whew...finally!! It starts up without the "Cannot find ELF" message. It appears to be running. I hope these notes help another Solaris user out there. That Google guy is purdy smert. Now, does it actually work... Thank you, -Mike Becker Alan DeKok wrote:
Mike Becker <mike.j.becker@alcatel.com> wrote:
root@TE-Radius# radiusd radiusd: Cannot find ELF
It looks like a tool chain problem on Solaris. Search for "cannot find elf" in google. You'll see lots of links.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
Alan DeKok -
Mike Becker