Install on a Synology DS214play

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
skydiablo
Posts: 4
Joined: Mon Jun 03, 2013 4:24 pm

Install on a Synology DS214play

Post by skydiablo » Sun Dec 14, 2014 4:32 pm

hi, i want to install the softether VPN server on my Synology DS214play. follow on some tips on the internet i have done this steps:

first, check the CPU and DSM version: DS214play
- x86-32
- Intel Atom CE5335 (2C/4T)
- 1.6GHz

SSH login via "root" and install IPKG

# cat /etc.defaults/VERSION
> majorversion="5"
> minorversion="1"
> buildphase="release"
> buildnumber="5004"
> smallfixnumber=2
> builddate=2014/11/29
> buildtime="15:23:37"
# cd /root
# wget http://ipkg.nslu2-linux.org/feeds/optwa ... 7_i686.xsh
# sh syno-i686-bootstrap_1.2-7_i686.xsh
# vi /root/.profile
=> disable the following lines with a "#"
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
> export PATH
# reboot

after reboot, update ipkg:

# ipkg update

and now install some libs:

# ipkg install make
# ipkg install binutils
# ipkg install gcc
# ipkg install glib
# ipkg install zlib
# ipkg install openssl
# ipkg install ncurses

based on a thread, it also needed to install "deadline" (cent os ?), but for IPKG there is no package available for "deadline"...

now add gconv to the enviroments:

# export GCONV_PATH="/volume1/@optware/lib/gconv"

at this point, i will try to install softether server. Download and extract:

# wget http://www.softether-download.com/files ... bit.tar.gz
# tar -xvzf softether-vpnserver-v4.12-9514-beta-2014.11.17-linux-x86-32bit.tar.gz
# cd vpnserver
# pwd
> /root/vpnserver

now the install:

# sh .install.sh

after the license questions i get this output:

=============== OUTPUT START ===============
Preparing SoftEther VPN Server...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libintelaes.a
ranlib lib/libncurses.a
ranlib lib/libssl.a
ranlib lib/libz.a
ranlib code/vpnserver.a
gcc code/vpnserver.a -O2 -fsigned-char -pthread -m32 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpnserver
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/librt.so: undefined reference to `__librt_enable_asynccancel@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/libpthread.so: undefined reference to `__libc_sigaction@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/librt.so: undefined reference to `__librt_multiple_threads@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/librt.so: undefined reference to `__librt_disable_asynccancel@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/libpthread.so: undefined reference to `_h_errno@GLIBC_2.0'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/libpthread.so: undefined reference to `__on_exit@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/libdl.so: undefined reference to `_dl_open@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/libdl.so: undefined reference to `_dl_close@GLIBC_PRIVATE'
/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/libpthread.so: undefined reference to `_errno@GLIBC_2.0'
collect2: ld returned 1 exit status
make: *** [i_read_and_agree_the_license_agreement] Error 1
=============== OUTPUT END ===============

but now, i have no idea, what can i do ?

greez & thx,
sky...

skydiablo
Posts: 4
Joined: Mon Jun 03, 2013 4:24 pm

Re: Install on a Synology DS214play

Post by skydiablo » Sun Dec 14, 2014 9:17 pm

ok, i got some new results. after change the some libs:

/opt/i686-linux-gnu/lib/libdl-2.3.6.so -> /lib/libdl.so.2
/opt/i686-linux-gnu/lib/libpthread-0.10.so -> /lib/libpthread.so.0
/opt/i686-linux-gnu/lib/librt-2.3.6.so -> /lib/librt.so.1

result in this output:

Preparing SoftEther VPN Server...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libintelaes.a
ranlib lib/libncurses.a
ranlib lib/libssl.a
ranlib lib/libz.a
ranlib code/vpnserver.a
gcc code/vpnserver.a -O2 -fsigned-char -pthread -m32 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpnserver
ranlib code/vpncmd.a
gcc code/vpncmd.a -O2 -fsigned-char -pthread -m32 -lm -ldl -lrt -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a lib/libintelaes.a -o vpncmd
./vpncmd /tool /cmd:Check
make: *** [i_read_and_agree_the_license_agreement] Segmentation fault (core dumped)

the "vpnserver" and "vpncmd" binary is builded but i cant run this:

# pwd
> /root/vpnserver
# ./vpnserver start
> Segmentation fault (core dumped)

it seems to be not the right way :S ???

dajhorn
Posts: 137
Joined: Mon Mar 24, 2014 3:59 am

Re: Install on a Synology DS214play

Post by dajhorn » Mon Dec 15, 2014 4:20 am

Recompile SoftEther from source code for this platform.

skydiablo
Posts: 4
Joined: Mon Jun 03, 2013 4:24 pm

Re: Install on a Synology DS214play

Post by skydiablo » Mon Dec 15, 2014 8:36 pm

hmmm... it dosnt work also :(

# ./configure
Welcome to the corner-cutting configure script !

Select your operating system below:
1: Linux
2: FreeBSD
3: Solaris
4: Mac OS X
5: OpenBSD

Which is your operating system (1 - 5) ? : 1

Select your CPU bits below:
1: 32-bit
2: 64-bit

Which is the type of your CPU (1 - 2) ? : 1

The Makefile is generated. Run 'make' to build SoftEther VPN.

# make
gcc -DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char -c src/Mayaqua/Cfg.c -o tmp/objs/Mayaqua/Cfg.o

...many lines of compiling...

tmp/hamcorebuilder src/bin/hamcore/ src/bin/BuiltHamcoreFiles/unix/hamcore.se2
make: *** [src/bin/BuiltHamcoreFiles/unix/hamcore.se2] Segmentation fault (core dumped)


whats wrong ?

thisjun
Posts: 2458
Joined: Mon Feb 24, 2014 11:03 am

Re: Install on a Synology DS214play

Post by thisjun » Thu Dec 25, 2014 7:31 am

Is there glibc2 in your machine?

Post Reply