Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to compile on debian 9 #14

Open
tonyshaoxu opened this issue Sep 6, 2017 · 1 comment
Open

failed to compile on debian 9 #14

tonyshaoxu opened this issue Sep 6, 2017 · 1 comment

Comments

@tonyshaoxu
Copy link

Debian 9
Linux version 4.9.0-3-amd64 ([email protected]) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Debian 4.9.30-2+deb9u2 (2017-06-26)

user@debian:~/minivtun/src$ make
cc -Wall -c -o library.o library.c
library.c: In function ‘datagram_encrypt’:
library.c:74:17: error: storage size of ‘ctx’ isn’t known
EVP_CIPHER_CTX ctx;
^~~
library.c:74:17: warning: unused variable ‘ctx’ [-Wunused-variable]
library.c: In function ‘datagram_decrypt’:
library.c:97:17: error: storage size of ‘ctx’ isn’t known
EVP_CIPHER_CTX ctx;
^~~
library.c:97:17: warning: unused variable ‘ctx’ [-Wunused-variable]
Makefile:19: recipe for target 'library.o' failed
make: *** [library.o] Error 1


I also copied a compiled minivtun from other Linux distro, and tried to run on debian 9, unfortunately it also failed.
user@debian:~/minivtun$ ./minivtun -h
./minivtun: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such file or directory

@boytm
Copy link

boytm commented Nov 6, 2017

debian 9 上的 openssl 是版本 1.1 对吧? 在 1.1 里面把结构体都隐藏了,必须改用 指针的方式。 你用 openssl 1.0 的版本重新编译下就行了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants