evilsocket / opensnitch

OpenSnitch is a GNU/Linux interactive application firewall inspired by Little Snitch.
GNU General Public License v3.0
9.86k stars 486 forks source link

Installation problem #1074

Closed horvjoe9 closed 6 months ago

horvjoe9 commented 6 months ago

Hi, I am unable to install opensnitch-ebpf-module-git.

Daemon related issues: I have run opensnitchd -check-requirements to see if your kernel is compatible - no problem.

Describe the bug I use Maboxlinux, tried to install from pacman opensnitch-ebpf-module 1.6.4-1

Include the following information:

Post error logs: Preparing... Cloning opensnitch-ebpf-module build files... Generating opensnitch-ebpf-module information... Checking opensnitch-ebpf-module dependencies... Resolving dependencies... Checking inter-conflicts... Checking keyring... Checking integrity... Loading package files... Checking file conflicts... Checking available disc space... Installing python-pyinotify (0.9.6-12)... Installing python-protobuf (25.1-1)... Installing libnetfilter_queue (1.0.5-1)... Installing c-ares (1.23.0-1)... Installing re2 (1:20231101-1)... Installing python-grpcio (1.59.3-1)... Installing python-text-unidecode (1.3-9)... Installing python-slugify (8.0.1-2)... Installing python-pyqt5-sip (12.13.0-1)... Installing python-pyqt5 (5.15.10-1)... Installing python-notify2 (0.3.1-8)... Installing opensnitch (1.6.4-1)... Running post-transaction hooks... Reloading system manager configuration... Creating temporary files... Arming ConditionNeedsUpdate... Updating icon theme caches... Updating the desktop file MIME type cache...

Building opensnitch-ebpf-module... ==> Making package: opensnitch-ebpf-module 1.6.4-1 (2023. dec. 10., vasárnap, 09:22:06 CET) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found opensnitch-1.6.4.tar.gz ==> Validating source files with sha256sums... opensnitch-1.6.4.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting opensnitch-1.6.4.tar.gz with bsdtar ==> Removing existing $pkgdir/ directory... ==> Starting build()... clang -fno-stack-protector -I. -I/usr/src/linux/arch/x86/include/generated/ -I/usr/src/linux/include -include /usr/src/linux/include/linux/kconfig.h -I/usr/src/linux/include -I/usr/src/linux/include/uapi -I/usr/src/linux/include/generated/uapi -I/usr/src/linux/arch/x86/include -I/usr/src/linux/arch/x86/include/generated -I/usr/src/linux/arch/x86/include/uapi -I/usr/src/linux/arch/x86/include/generated/uapi -I/usr/src/linux/tools/testing/selftests/bpf/ -DKERNEL -DBPF_TRACING -Wno-unused-value -Wno-pointer-sign -DTARGET_ARCH_x86 -Wno-compare-distinct-pointer-types -Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member -Wno-tautological-compare -Wno-unknown-warning-option -g -O2 -emit-llvm -c opensnitch.c -o opensnitch.o.partial clang -fno-stack-protector -I. -I/usr/src/linux/arch/x86/include/generated/ -I/usr/src/linux/include -include /usr/src/linux/include/linux/kconfig.h -I/usr/src/linux/include -I/usr/src/linux/include/uapi -I/usr/src/linux/include/generated/uapi -I/usr/src/linux/arch/x86/include -I/usr/src/linux/arch/x86/include/generated -I/usr/src/linux/arch/x86/include/uapi -I/usr/src/linux/arch/x86/include/generated/uapi -I/usr/src/linux/tools/testing/selftests/bpf/ -DKERNEL -D__BPF_TRACING -Wno-unused-value -Wno-pointer-sign -D__TARGET_ARCH_x86 -Wno-compare-distinct-pointer-types -Wno-gnu-variable-sized-type-not-at-end -Wno-address-of-packed-member -Wno-tautological-compare -Wno-unknown-warning-option -g -O2 -emit-llvm -c opensnitch-procs.c -o opensnitch-procs.o.partial

::11::1010:: fatal error: fatal error: '/usr/src/linux/include/linux/kconfig.h' file not found'/usr/src/linux/include/linux/kconfig.h' file not found #include "/usr/src/linux/include/linux/kconfig.h"#include "/usr/src/linux/include/linux/kconfig.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. 1 error generated. make: *** [Makefile:54: opensnitch-procs.o] Error 1 make: *** Waiting for unfinished jobs.... make: *** [Makefile:54: opensnitch.o] Error 1 ==> ERROR: A failure occurred in build(). Aborting... If the daemon doesn't start or doesn't intercept connections: - Run `opensnitchd -check-requirements` to see if your kernel is compatible. - Post last 15 lines of the log file `/var/log/opensnitchd.log` - Or launch it from a terminal as root (`# /usr/bin/opensnitchd -rules-path /etc/opensnitchd/rules`) and post the errors logged to the terminal. Thank you :)
antinoise1 commented 6 months ago

Install Make from the manjaro repo Install the non git version - opensnitch-ebpf-module 1.6.4-1 from the AUR

Edit build file to point to your headers:

Change:

KDIR="/usr/src/linux"

To:

KDIR="/usr/lib/modules/$(uname -r)/build"