Can not compile under debian 9.0

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
flynaj
Posts: 2
Joined: Fri Jun 23, 2017 5:10 am

Can not compile under debian 9.0

Post by flynaj » Fri Jun 23, 2017 5:26 am

by softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz

/usr/bin/ld: lib/libintelaes.a(intel_aes.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC


by https://github.com/SoftEtherVPN/SoftEtherVPN/

cc -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 -c src/Mayaqua/Encrypt.c -o tmp/objs/Mayaqua/Encrypt.o
src/Mayaqua/Encrypt.c: In function ‘Enc_tls1_P_hash’:
src/Mayaqua/Encrypt.c:175:11: error: storage size of ‘ctx’ isn’t known
HMAC_CTX ctx;
^~~
src/Mayaqua/Encrypt.c:176:11: error: storage size of ‘ctx_tmp’ isn’t known
HMAC_CTX ctx_tmp;
^~~~~~~
src/Mayaqua/Encrypt.c:184:2: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init_ex(&ctx,sec,sec_len,md, NULL);
^~~~~~~~~~~~
In file included from /usr/include/openssl/hmac.h:13:0,
from /usr/include/openssl/ssl.h:56,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/hmac.h:28:1: note: declared here
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
^
src/Mayaqua/Encrypt.c:185:2: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init_ex(&ctx_tmp,sec,sec_len,md, NULL);
^~~~~~~~~~~~
In file included from /usr/include/openssl/hmac.h:13:0,
from /usr/include/openssl/ssl.h:56,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/hmac.h:28:1: note: declared here
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
^
src/Mayaqua/Encrypt.c:192:3: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init_ex(&ctx,NULL,0,NULL,NULL); /* re-init */
^~~~~~~~~~~~
In file included from /usr/include/openssl/hmac.h:13:0,
from /usr/include/openssl/ssl.h:56,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/hmac.h:28:1: note: declared here
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
^
src/Mayaqua/Encrypt.c:193:3: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init_ex(&ctx_tmp,NULL,0,NULL,NULL); /* re-init */
^~~~~~~~~~~~
In file included from /usr/include/openssl/hmac.h:13:0,
from /usr/include/openssl/ssl.h:56,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/hmac.h:28:1: note: declared here

flynaj
Posts: 2
Joined: Fri Jun 23, 2017 5:10 am

Re: Can not compile under debian 9.0

Post by flynaj » Fri Jun 23, 2017 7:18 am

apt autoremove libssl-dev
apt install libssl1.0-dev

src/Mayaqua/Network.c line 13018
Modify SSLv3_client_method to SSLv23_client_method

Post Reply