how to build softether under debian 9?

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
better_man
Posts: 8
Joined: Wed Nov 27, 2013 6:38 am

how to build softether under debian 9?

Post by better_man » Mon Feb 13, 2017 4:49 pm

how to build softether under debian 9? which packages should I install first to satified dependency?

make and dpkg-buildpackage -b
both show this error from source.

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
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
^
src/Mayaqua/Encrypt.c:169:43: warning: implicit declaration of function ‘HMAC_cleanup’ [-Wimplicit-function-declaration]
#define HMAC_CTX_cleanup(ctx) HMAC_cleanup(ctx)
^
src/Mayaqua/Encrypt.c:212:2: note: in expansion of macro ‘HMAC_CTX_cleanup’
HMAC_CTX_cleanup(&ctx);
^~
src/Mayaqua/Encrypt.c: In function ‘MdProcess’:
src/Mayaqua/Encrypt.c:460:2: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init(md->Ctx, NULL, 0, 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: In function ‘SetMdKey’:
src/Mayaqua/Encrypt.c:476:2: warning: ‘HMAC_Init’ is deprecated [-Wdeprecated-declarations]
HMAC_Init(md->Ctx, key, key_size, md->Md);
^~
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:476:36: warning: passing argument 4 of ‘HMAC_Init’ from incompatible pointer type [-Wincompatible-pointer-types]
HMAC_Init(md->Ctx, key, key_size, md->Md);
^~
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: expected ‘const EVP_MD * {aka const struct evp_md_st *}’ but argument is of type ‘const struct env_md_st *’
DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int len,
^
src/Mayaqua/Encrypt.c: In function ‘NewMd’:
src/Mayaqua/Encrypt.c:492:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types]
m->Md = EVP_get_digestbyname(name);
^
src/Mayaqua/Encrypt.c:499:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct hmac_ctx_st’
m->Ctx = ZeroMalloc(sizeof(struct hmac_ctx_st));
^~
src/Mayaqua/Encrypt.c:500:2: warning: implicit declaration of function ‘HMAC_CTX_init’ [-Wimplicit-function-declaration]
HMAC_CTX_init(m->Ctx);
^~
src/Mayaqua/Encrypt.c:502:24: warning: passing argument 1 of ‘EVP_MD_size’ from incompatible pointer type [-Wincompatible-pointer-types]
m->Size = EVP_MD_size(m->Md);
^
In file included from /usr/include/openssl/x509.h:23:0,
from /usr/include/openssl/ssl.h:50,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/evp.h:410:5: note: expected ‘const EVP_MD * {aka const struct evp_md_st *}’ but argument is of type ‘const struct env_md_st *’
int EVP_MD_size(const EVP_MD *md);
^~
src/Mayaqua/Encrypt.c: In function ‘NewCipher’:
src/Mayaqua/Encrypt.c:554:29: error: invalid application of ‘sizeof’ to incomplete type ‘struct evp_cipher_ctx_st’
c->Ctx = ZeroMalloc(sizeof(struct evp_cipher_ctx_st));
^~
src/Mayaqua/Encrypt.c: In function ‘RsaBinToPublic’:
src/Mayaqua/Encrypt.c:822:9: error: dereferencing pointer to incomplete type ‘RSA {aka struct rsa_st}’
if (rsa->e != NULL)
^~
src/Mayaqua/Encrypt.c: In function ‘RsaPublicToBuf’:
src/Mayaqua/Encrypt.c:857:45: error: dereferencing pointer to incomplete type ‘EVP_PKEY {aka struct evp_pkey_st}’
if (k == NULL || k->pkey == NULL || k->pkey->pkey.rsa == NULL
^~
src/Mayaqua/Encrypt.c: In function ‘NewX509’:
src/Mayaqua/Encrypt.c:2058:25: error: dereferencing pointer to incomplete type ‘X509 {aka struct x509_st}’
ASN1_INTEGER *s = x509->cert_info->serialNumber;
^~
src/Mayaqua/Encrypt.c: In function ‘RsaCheck’:
src/Mayaqua/Encrypt.c:2793:3: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations]
rsa = RSA_generate_key(bit, RSA_F4, NULL, NULL);
^~
In file included from /usr/include/openssl/rsa.h:13:0,
from /usr/include/openssl/x509.h:31,
from /usr/include/openssl/ssl.h:50,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/rsa.h:193:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
src/Mayaqua/Encrypt.c: In function ‘RsaGen’:
src/Mayaqua/Encrypt.c:2863:3: warning: ‘RSA_generate_key’ is deprecated [-Wdeprecated-declarations]
rsa = RSA_generate_key(bit, RSA_F4, NULL, NULL);
^~
In file included from /usr/include/openssl/rsa.h:13:0,
from /usr/include/openssl/x509.h:31,
from /usr/include/openssl/ssl.h:50,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/rsa.h:193:1: note: declared here
DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
^
src/Mayaqua/Encrypt.c: In function ‘X509ToX’:
src/Mayaqua/Encrypt.c:3977:7: warning: ‘ASN1_STRING_data’ is deprecated [-Wdeprecated-declarations]
char *uri = (char *)ASN1_STRING_data(ad->location->d.uniformResourceIdentifier);
^~
In file included from /usr/include/openssl/bn.h:31:0,
from /usr/include/openssl/asn1.h:24,
from /usr/include/openssl/objects.h:916,
from /usr/include/openssl/evp.h:27,
from /usr/include/openssl/x509.h:23,
from /usr/include/openssl/ssl.h:50,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/asn1.h:553:1: note: declared here
DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x))
^
src/Mayaqua/Encrypt.c: In function ‘BioToBuf’:
src/Mayaqua/Encrypt.c:4083:12: error: dereferencing pointer to incomplete type ‘BIO {aka struct bio_st}’
size = bio->num_write;
^~
src/Mayaqua/Encrypt.c: In function ‘FreeOpenSSLThreadState’:
src/Mayaqua/Encrypt.c:4178:2: warning: ‘ERR_remove_state’ is deprecated [-Wdeprecated-declarations]
ERR_remove_state(0);
^~
In file included from /usr/include/openssl/ct.h:13:0,
from /usr/include/openssl/ssl.h:61,
from src/Mayaqua/Encrypt.c:127:
/usr/include/openssl/err.h:247:1: note: declared here
DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
^
src/Mayaqua/Encrypt.c: In function ‘InitCryptLibrary’:
src/Mayaqua/Encrypt.c:4203:2: warning: implicit declaration of function ‘SSLeay_add_all_digests’ [-Wimplicit-function-declaration]
SSLeay_add_all_digests();
^~
src/Mayaqua/Encrypt.c: In function ‘DhNew’:
src/Mayaqua/Encrypt.c:5003:8: error: dereferencing pointer to incomplete type ‘struct dh_st’
dh->dh->p = BinToBigNum(buf->Buf, buf->Size);
^~
Makefile:77: recipe for target 'tmp/objs/Mayaqua/Encrypt.o' failed
make: *** [tmp/objs/Mayaqua/Encrypt.o] Error 1

make from semi compiled version from downloaded biggest zip file which contain multi-platform.
/usr/bin/ld: lib/libedit.a(search.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libedit.a(sig.o): relocation R_X86_64_32S against.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libedit.a(term.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libedit.a(tty.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libedit.a(vi.o): relocation R_X86_64_32 against symbol cv__isWord' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libedit.a(vis.o): relocation R_X86_64_32S against.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libedit.a(tokenizer.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libedit.a(history.o): relocation R_X86_64_32S against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libedit.a(filecomplete.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libedit.a(fcns.o): relocation R_X86_64_32 against.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libedit.a(help.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libedit.a(emacs.o): relocation R_X86_64_32 against symbolce__isword' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libedit.a(unvis.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_mouse.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_printw.o): relocation R_X86_64_32 against .text' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_scanw.o): relocation R_X86_64_32 against.text' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(tty_update.o): relocation R_X86_64_32 against symbol _nc_outch' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_acs.o): relocation R_X86_64_32 against symbolacs_map' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_options.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_setup.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_termcap.o): relocation R_X86_64_32S against symbol _nc_globals' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_ti.o): relocation R_X86_64_32S against symbolboolnames' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_tparm.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_tputs.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(read_entry.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(setbuf.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(trim_sgr0.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(unctrl.o): relocation R_X86_64_32S against.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_color.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_mvcur.o): relocation R_X86_64_32 against symbol_nc_outch' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_tstp.o): relocation R_X86_64_32S against symbol _nc_outch' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_vidattr.o): relocation R_X86_64_32 against symbol_nc_outch' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(comp_error.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(db_iterator.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(home_terminfo.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(init_keytry.o): relocation R_X86_64_32S against symbol_nc_tinfo_fkeys' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_baudrate.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(lib_set_term.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libncurses.a(lib_slkrefr.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libncurses.a(resizeterm.o): relocation R_X86_64_32 against symbolnc_prescreen' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libz.a(compress.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libz.a(uncompr.o): relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libz.a(deflate.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libz.a(trees.o): relocation R_X86_64_32S against.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libz.a(zutil.o): relocation R_X86_64_32 against .rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libz.a(inflate.o): relocation R_X86_64_32 against symbolzcalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libz.a(inftrees.o): relocation R_X86_64_32S against .rodata' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: lib/libz.a(inffast.o): relocation R_X86_64_32S against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: lib/libz.a(crc32.o): relocation R_X86_64_32 against .rodata' can not be used when making a shared object; recompile with -fPIC /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
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
Makefile:18: recipe for target 'i_read_and_agree_the_license_agreement' failed
make[1]: *** [i_read_and_agree_the_license_agreement] Error 1
make[1]: Leaving directory '/home/allan/Downloads/VPN-CD-v4.22-9634-beta-2016.11.27/Linux/SoftEther_VPN_Server/64bit-_Intel_x64_or_AMD64/softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit/vpnserver'

what can i do?
can anyone make a deb build guide?

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: how to build softether under debian 9?

Post by moatazelmasry » Mon Feb 13, 2017 11:43 pm

I wrote a post a while ago about compiling SoftEther under Ubuntu. Maybe this will help

http://moatazthenervous.com/how-to-debug-softethervpn/

better_man
Posts: 8
Joined: Wed Nov 27, 2013 6:38 am

Re: how to build softether under debian 9?

Post by better_man » Tue Feb 14, 2017 9:59 am

i saw it need multiarch support,is it not pure 64bit apps?mixed with 32bit?or if it is pure 64bit app,what is the function of 32bit libs such as libc? thanks

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: how to build softether under debian 9?

Post by moatazelmasry » Tue Feb 14, 2017 10:25 am

All the libraries defined in that blog post are 64bit, including libc

better_man
Posts: 8
Joined: Wed Nov 27, 2013 6:38 am

Re: how to build softether under debian 9?

Post by better_man » Wed Feb 15, 2017 4:26 pm

moatazelmasry wrote:
> All the libraries defined in that blog post are 64bit, including libc

sudo apt-get install -y cmake libncurses-dev libc-bin libc-dev-bin libc6 libc6-amd64 libc6-dbg libc6-dev libc6-dev-amd64 libc6-pic multiarch-support nscd libnss3-dev libreadline-dev libssl-dev

all these are 64 bit? what is the function of multiarch-support? it seems like it is in charge of mixed architecture eg run 32bit apps in 64bit os. sorry for my ignorence:) thanks

do you compile it in raspbian on raspberry pi?

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: how to build softether under debian 9?

Post by moatazelmasry » Wed Feb 15, 2017 8:10 pm

Don't worry about the multiarch. For a reason I can't remember I needed this for debugging SoftEther. You can also drop the amd64 libs.

On a new ubuntu 16.04 instances, I installed the following libs:
sudo apt-get install -y cmake libncurses-dev libc-bin libc-dev-bin libc6 libc6-dbg libc6-dev libc6-pic nscd libnss3-dev libreadline-dev libssl-dev

I'm using neither using rasberry pie nor raspian. Just VMs and cloud instances

better_man
Posts: 8
Joined: Wed Nov 27, 2013 6:38 am

Re: how to build softether under debian 9?

Post by better_man » Thu Feb 16, 2017 4:44 pm

moatazelmasry wrote:
> Don't worry about the multiarch. For a reason I can't remember I needed
> this for debugging SoftEther. You can also drop the amd64 libs.
>
> On a new ubuntu 16.04 instances, I installed the following libs:
> sudo apt-get install -y cmake libncurses-dev libc-bin libc-dev-bin libc6
> libc6-dbg libc6-dev libc6-pic nscd libnss3-dev libreadline-dev libssl-dev
>
> I'm using neither using rasberry pie nor raspian. Just VMs and cloud
> instances


thanks
do you compile it in archlinux?

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: how to build softether under debian 9?

Post by moatazelmasry » Thu Feb 16, 2017 6:38 pm

Nop. Currently only on Ubuntu.

Generally I try to stick to production popular OSs, like Debian, CentOs etc..

better_man
Posts: 8
Joined: Wed Nov 27, 2013 6:38 am

Re: how to build softether under debian 9?

Post by better_man » Fri Feb 17, 2017 5:36 pm

/usr/include/openssl/err.h:247:1: note: declared here
DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid))
^
src/Mayaqua/Encrypt.c: In function ‘InitCryptLibrary’:
src/Mayaqua/Encrypt.c:4203:2: warning: implicit declaration of function ‘SSLeay_add_all_digests’ [-Wimplicit-function-declaration]
SSLeay_add_all_digests();
^~~~~~~~~~~~~~~~~~~~~~
src/Mayaqua/Encrypt.c: In function ‘DhNew’:
src/Mayaqua/Encrypt.c:5003:8: error: dereferencing pointer to incomplete type ‘struct dh_st’
dh->dh->p = BinToBigNum(buf->Buf, buf->Size);
^~
Makefile:77: recipe for target 'tmp/objs/Mayaqua/Encrypt.o' failed
make: *** [tmp/objs/Mayaqua/Encrypt.o] Error 1

fail....again and again.

moatazelmasry
Posts: 336
Joined: Sat Aug 15, 2015 7:41 pm

Re: how to build softether under debian 9?

Post by moatazelmasry » Fri Feb 17, 2017 5:53 pm

Could you please use the code version from github instead of the ready download on the SE page?

geos_one
Posts: 3
Joined: Tue Apr 18, 2017 3:33 pm

Re: how to build softether under debian 9?

Post by geos_one » Tue Apr 18, 2017 3:36 pm

i am also trying to compile on debain9 it looks like it has something to do with the up to date openssl 1.1 in debian9.
in the chagelog for softether i have not found an entry for update to openssl 1.1.x

https://wiki.openssl.org/index.php/Open ... .0_Changes

geos_one
Posts: 3
Joined: Tue Apr 18, 2017 3:33 pm

Re: how to build softether under debian 9?

Post by geos_one » Wed Apr 19, 2017 8:36 am

ha found a woraround
instead of installing libssl-dev you have to install libssl1.0-dev
this way you also install openssl v1.0.x on your debian 9 system.

it also requires this patch to disable sslv3 support

https://aur.archlinux.org/cgit/aur.git/ ... ftethervpn
Last edited by geos_one on Wed Apr 19, 2017 10:35 am, edited 2 times in total.

geos_one
Posts: 3
Joined: Tue Apr 18, 2017 3:33 pm

Re: how to build softether under debian 9?

Post by geos_one » Wed Apr 19, 2017 8:56 am

in a view hours there will be a debian 9 package in my repo
deb http://ftp.disconnected-by-peer.at/go-debmon/ stretch main

or the devel tree shortly
deb http://dev.disconnected-by-peer.at/debian softether-vpn-stretch main

git repo:
http://git.disconnected-by-peer.at/debm ... ether-vpn/

Post Reply