Compiling on Arch Linux (switch back to openssl 1.0)
Posted: Wed Jul 05, 2017 2:39 pm
I'm trying to compile SoftEther on an archlinux system.
The default openssl version of arch is openssl1.1, but as far as i know, SoftEther needs openssl1.0.
So I installed additional the openss1.0 package, where are the header files in:
/usr/include/openssl-1.0/openssl/
and the libs:
/usr/lib/openssl-1.0/
I modify the two lines in the Makefile:
OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -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 -m64 -I/usr/include/openssl-1.0/
OPTIONS_LINK_RELEASE=-O2 -fsigned-char -m64 -lm -ldl -lrt -lpthread -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0 -lreadline -lncurses -lz
And i think, I got realy far, but not to the end.
I got this error:
tmp/objs/Mayaqua/Network.o: In function `StartSSLEx':
Network.c:(.text+0xae96): undefined reference to `SSLv3_method'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make: *** [Makefile:316: tmp/hamcorebuilder] Fehler 1
Any ideas? Thanks
The default openssl version of arch is openssl1.1, but as far as i know, SoftEther needs openssl1.0.
So I installed additional the openss1.0 package, where are the header files in:
/usr/include/openssl-1.0/openssl/
and the libs:
/usr/lib/openssl-1.0/
I modify the two lines in the Makefile:
OPTIONS_COMPILE_RELEASE=-DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -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 -m64 -I/usr/include/openssl-1.0/
OPTIONS_LINK_RELEASE=-O2 -fsigned-char -m64 -lm -ldl -lrt -lpthread -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0 -lreadline -lncurses -lz
And i think, I got realy far, but not to the end.
I got this error:
tmp/objs/Mayaqua/Network.o: In function `StartSSLEx':
Network.c:(.text+0xae96): undefined reference to `SSLv3_method'
collect2: Fehler: ld gab 1 als Ende-Status zurück
make: *** [Makefile:316: tmp/hamcorebuilder] Fehler 1
Any ideas? Thanks