Hi -
make: can't load library 'libelf.so.0'
I suppose you are trying to compile batmand or batman-adv in the OpenWrt build environment.
Regardless of whether you are trying to compile batmand or batman-adv, this seems to indicate that your build environment is not sane. Did you successfully compile any other software package in this build environment?
Cheers, Elektra