OpenWrt Forum Archive

Topic: Not able to build freeradius tool from openwrt trunk?

The content of this topic has been archived on 3 Jun 2015. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi .,
I am using openwrt CHAOS CALMER (Gate works Ventana r710, r42297)  image on gateworks 5200 board
Enabled freeradius tool from config with following modules
openwrt/trunk$make menuconfig
         --->network
               --->freeRADIUS(version 2)
and enabled following options
freeradius2 freeradius2-mod-always freeradius2-mod-attr-filter freeradius2-mod-attr-rewrite freeradius2-mod-chap freeradius2-mod-detail freeradius2-mod-eap freeradius2-mod-eap-gtc freeradius2-mod-eap-md5 freeradius2-mod-eap-mschapv2 freeradius2-mod-eap-peap freeradius2-mod-eap-tls freeradius2-mod-eap-ttls freeradius2-mod-exec freeradius2-mod-expiration freeradius2-mod-expr freeradius2-mod-files freeradius2-mod-ldap freeradius2-mod-logintime freeradius2-mod-mschap freeradius2-mod-pap
freeradius2-mod-passwd freeradius2-mod-preprocess freeradius2-mod-radutmp freeradius2-mod-realm freeradius2-mod-sql-mysql freeradius2-mod-sql-pgsql freeradius2-mod-sql-sqlite freeradius2-mod-sqlcounter freeradius2-utils freeradius2-democerts

Having issue while building with these  modules
freeradius2-mod-attr-rewrite......................... ATTR rewrite module
freeradius2-mod-ldap......................................... LDAP module
freeradius2-mod-radutmp............................... Radius UTMP module

Build logs as follows

cp: cannot stat `/home/Gateworks/gateworks-openwrt/trunk/build_dir/target-arm_cortex-a9+neon_uClibc-

0.9.33.2_eabi/freeradius-server-2.2.5/ipkg-install/usr/lib/freeradius2/rlm_radutmp.so': No such file or directory

cp: cannot stat `/home/Gateworks/gateworks-openwrt/trunk/build_dir/target-arm_cortex-a9+neon_uClibc-

0.9.33.2_eabi/freeradius-server-2.2.5/ipkg-install/usr/lib/freeradius2/rlm_radutmp-*.so': No such file or directory

with out enabling  those three modules it is building fine

and it is installing radius_server version 2.2.5

but it is giving ERRORS related to radutmp (which is not loaded)after loading the image

Error logs from openwrt image as follows
Fri Mar 20 05:55:29 2015 : Error: /etc/freeradius2/sites/default[450]: Failed to find "radutmp" in the "modules" section.
Fri Mar 20 05:55:29 2015 : Error: /etc/freeradius2/sites/default[449]: Errors parsing session section.
Fri Mar 20 05:55:29 2015 : Error: Failed to load virtual server <default>

To setup radius Radius server i followed the method explained in this video
https://www.youtube.com/watch?v=PvUqMFvTOn8

Does any body working on this freeradius server ,please tell me how to setup freeradius server on openwrt ?
Thanks
sorry for my poor English,if it is not understandable let me know ,i will try to  improve

The discussion might have continued from here.