Replies: 2 comments 1 reply
-
Или берем релиз с бинариками, или надо установить несколько dev пакетов для сборки |
Beta Was this translation helpful? Give feedback.
0 replies
-
Я установил эти и скомпилировалось. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Доброго всем времени суток! Использую Linux Mint 21.2 Victoria.
Делаю так:
/opt/zapret$ sudo git pull
remote: Enumerating objects: 100, done.
remote: Counting objects: 100% (100/100), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 100 (delta 54), reused 90 (delta 45), pack-reused 0 (from 0)
Receiving objects: 100% (100/100), 191.32 KiB | 747.00 KiB/s, done.
Resolving deltas: 100% (54/54), completed with 11 local objects.
From https://github.com/bol-van/zapret
5d6c91f..53546a8 master -> origin/master
Updating 5d6c91f..53546a8
Fast-forward
Makefile | 13 +++
blockcheck.sh | 321 +++++++++++++++++++++++++++++++++++++++++----------------------------
common/base.sh | 13 ++-
common/installer.sh | 4 +-
docs/compile/build_howto_openwrt.txt | 38 ++++++---
docs/readme.md | 12 ++-
docs/wireguard/010-wg-mod.patch | 133 -----------------------------
docs/wireguard/wireguard-mod.txt | 250 -----------------------------------------------------
docs/{wireguard => }/wireguard_iproute_openwrt.txt | 2 +-
ip2net/Makefile | 4 +-
mdig/Makefile | 6 +-
nfq/BSDmakefile | 2 +-
nfq/Makefile | 4 +-
nfq/darkmagic.c | 22 +++--
nfq/darkmagic.h | 11 ++-
nfq/desync.c | 170 +++++++++++++++++++++++--------------
nfq/dvtws | Bin 0 -> 157392 bytes
nfq/nfqws.c | 25 ++++--
nfq/params.h | 4 +-
tpws/BSDmakefile | 2 +-
tpws/Makefile | 7 +-
tpws/andr/_musl_license.txt | 26 ++++++
tpws/andr/getifaddrs.c | 216 ++++++++++++++++++++++++++++++++++++++++++++++
tpws/andr/ifaddrs.h | 8 ++
tpws/andr/netlink.c | 54 ++++++++++++
tpws/andr/netlink.h | 94 ++++++++++++++++++++
tpws/helpers.c | 7 +-
tpws/params.h | 4 +-
tpws/tpws.c | 19 +++--
29 files changed, 839 insertions(+), 632 deletions(-)
delete mode 100644 docs/wireguard/010-wg-mod.patch
delete mode 100644 docs/wireguard/wireguard-mod.txt
rename docs/{wireguard => }/wireguard_iproute_openwrt.txt (98%)
create mode 100644 nfq/dvtws
create mode 100644 tpws/andr/_musl_license.txt
create mode 100644 tpws/andr/getifaddrs.c
create mode 100644 tpws/andr/ifaddrs.h
create mode 100644 tpws/andr/netlink.c
create mode 100644 tpws/andr/netlink.h
Потом:
/opt/zapret$ sudo ./install_easy.sh
system is based on systemd
trying to compile
make: Entering directory '/opt/zapret'
make[1]: Entering directory '/opt/zapret/nfq'
rm -f nfqws dvtws winws.exe
make[1]: Leaving directory '/opt/zapret/nfq'
make[1]: Entering directory '/opt/zapret/tpws'
rm -f tpws *.o
make[1]: Leaving directory '/opt/zapret/tpws'
make[1]: Entering directory '/opt/zapret/ip2net'
rm -f ip2net *.o
make[1]: Leaving directory '/opt/zapret/ip2net'
make[1]: Entering directory '/opt/zapret/mdig'
rm -f mdig *.o
make[1]: Leaving directory '/opt/zapret/mdig'
make[1]: Entering directory '/opt/zapret/nfq'
cc -s -std=gnu99 -Os -o nfqws .c crypto/.c -lnetfilter_queue -lnfnetlink -lz
In file included from nfqws.c:4:
sec.h:9:10: fatal error: sys/capability.h: No such file or directory
9 | #include <sys/capability.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from sec.c:5:
sec.h:9:10: fatal error: sys/capability.h: No such file or directory
9 | #include <sys/capability.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:18: nfqws] Error 1
make[1]: Leaving directory '/opt/zapret/nfq'
make: *** [Makefile:6: all] Error 2
make: Leaving directory '/opt/zapret'
could not compile
make: Entering directory '/opt/zapret'
make[1]: Entering directory '/opt/zapret/nfq'
rm -f nfqws dvtws winws.exe
make[1]: Leaving directory '/opt/zapret/nfq'
make[1]: Entering directory '/opt/zapret/tpws'
rm -f tpws *.o
make[1]: Leaving directory '/opt/zapret/tpws'
make[1]: Entering directory '/opt/zapret/ip2net'
rm -f ip2net *.o
make[1]: Leaving directory '/opt/zapret/ip2net'
make[1]: Entering directory '/opt/zapret/mdig'
rm -f mdig *.o
make[1]: Leaving directory '/opt/zapret/mdig'
make: Leaving directory '/opt/zapret'
press enter to continue
И вот это:
/opt/zapret$ ./install_bin.sh
no compatible binaries found
Что я делаю не так? Всем сапсибо!
Beta Was this translation helpful? Give feedback.
All reactions