el1n/OpenWRT-package-softether

locale settings and iconv() libraries problem

Closed this issue · 3 comments

I can't run vpnclient, result is:
-- Alert: SoftEther VPN Kernel --
String Library Init Failed.
Please check your locale settings and iconv() libraries.

I use binariy packages libopenssl_1.0.1i-1_ar71xx.ipk and softethervpnclient_4.10-9505_ar71xx.ipk for OpenWRT Barier breaker 14.07
router is: ar71xx/mikrotik/

Same problem on openwrt 14.07 ar71xx

I tried following steps:

  1. Select menuconfig -> Global build setting -> Compile with full language support.
    compile
  2. Ubuntu cannot find -liconv then I install libiconv:
    wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
    tar xvfz libiconv-1.13.1.tar.gz
    cd libiconv-1.13.1
    ./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
    make
    sudo make install
  3. The result is:
    /usr/bin/ld: tmp/objs/Mayaqua/Cfg.o: Relocations in generic ELF (EM: 8)
    /usr/bin/ld: tmp/objs/Mayaqua/Cfg.o: Relocations in generic ELF (EM: 8)
    /usr/bin/ld: tmp/objs/Mayaqua/Cfg.o: Relocations in generic ELF (EM: 8)
    tmp/objs/Mayaqua/Cfg.o: error adding symbols: File in wrong format
el1n commented

This problem occurs because not set LANG environment variable in OpenWrt.
If you want run softether binary in shell, you need set LANG environment variable.

e.g.

/usr/bin/env LANG=en_US.UTF-8 /usr/bin/vpnclient

I did append this command to init script but regarding this i forget write to README.MD.