Hey,
I tried to compile from source freeradius for my WRT160NL, but when i'm starting "radiusd", I get multiple errors that say: "rlm_* is not an ELF file".
This are the commands I issued on my desktop with ubuntu 11.10(64-bit):
export $STAGING_DIR=/root/test/backfire/staging_dir
export $RANLIB=mips-openwrt-linux-uclibc-ranlib
./configure --host=mips-openwrt-linux-uclibc --prefix=/root/freeradius
make LD=mips-openwrt-linux-uclibc-ld CC=mips-openwrt-linux-uclibc-gcc
make install
ldconfig
now i'm archive all the generated files in a tar file, for safely transport the whole program:
tar -cvzf freeradius /root/freeradius
on my router I unpack it:
tar -xvzf freeradius
And I'm make it executable
export PATH=$PATH:/root/freeradius/bin:/root/freeradius/sbin
export LD_LIBRARY_PATH=/root/freeradius
radiusd command gives:
./radiusd: '/root/freeradius/lib/rlm_exec.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_expr.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_expiration.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_logintime.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_pap.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_chap.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_mschap.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_unix.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_eap.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_eap_md5.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_eap_leap.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_eap_gtc.a' is not an ELF file
./radiusd: '/root/freeradius/lib/rlm_eap_mschapv2.a' is not an ELF file
I'm searching for hours now, but the problem still remains.