Comments (5)
I don't have debian. Slackware and ubuntu only.
I assume source code is in /usr/src/kts2/linux-x.xx directory, object files and configuration are in /usr/src/kts2/obj-x.xx directory, iptables source code is in /usr directory /src/kts2/iptables/include.
Assembly for different kernel versions is done with scripts like
make -j9 KERNEL_DIR=/usr/src/kts2/obj-6.1 IPTINC=/usr/src/kts2/iptables/include
I will correct the error with the non-existent skbuff.h in the near future.
from ndpi.
I tried to set these variables in the make file, but it didn't help.
KERNELDIR=/usr/src/linux-headers-$(uname -r)
CPPFLAGS+=-I$(KERNELDIR)/include
I ended up copying them over to fix this issue. Not great, I know.
sudo mkdir -p /lib/modules/5.10.0-21-amd64/build/source/include/linux/
sudo cp -r /usr/src/linux-headers-5.10.0-21-common/include/linux/* /lib/modules/5.10.0-21-amd64/build/source/include/linux/
But I discovered one last Warning.
Warning: modules_install: missing 'System.map' file. Skipping depmod.
Full:
MODPOST /home/admin/nDPI/ndpi-netfilter/src/Module.symvers
CC [M] /home/admin/nDPI/ndpi-netfilter/src/xt_ndpi.mod.o
LD [M] /home/admin/nDPI/ndpi-netfilter/src/xt_ndpi.ko
make[2]: Leaving directory '/usr/src/linux-headers-5.10.0-21-amd64'
make[1]: Leaving directory '/home/admin/nDPI/ndpi-netfilter/src'
make -C src modules_install
make[1]: Entering directory '/home/admin/nDPI/ndpi-netfilter/src'
make -C /lib/modules/5.10.0-21-amd64/build M=$PWD modules_install;
make[2]: Entering directory '/usr/src/linux-headers-5.10.0-21-amd64'
INSTALL /home/admin/nDPI/ndpi-netfilter/src/xt_ndpi.ko
DEPMOD 5.10.0-21-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[2]: Leaving directory '/usr/src/linux-headers-5.10.0-21-amd64'
depmod -a;
make[1]: Leaving directory '/home/admin/nDPI/ndpi-netfilter/src'
make -C ipt install
make[1]: Entering directory '/home/admin/nDPI/ndpi-netfilter/ipt'
if [ -n "/usr/lib/x86_64-linux-gnu/xtables" -a -d "/usr/lib/x86_64-linux-gnu/xtables" ]; then install -v libxt_ndpi.so /usr/lib/x86_64-linux-gnu/xtables; ln -fs libxt_ndpi.so /usr/lib/x86_64-linux-gnu/xtables/libxt_NDPI.so ; else echo "No pkg-config --variable=xtlibdir xtables"; fi
'libxt_ndpi.so' -> '/usr/lib/x86_64-linux-gnu/xtables/libxt_ndpi.so'
make[1]: Leaving directory '/home/admin/nDPI/ndpi-netfilter/ipt'
Thanks
from ndpi.
@vel21ripn Thanks for that. If you need me to test the pull request, I'm happy to volunteer. I love your project.
Ubuntu is based on Debian. They should be quite similar.
I researched about the warning Warning: modules_install: missing 'System.map' file. Skipping depmod.
. It seems this happens because depmod -a
should happen AFTER modules_install
. This is what I found.
Do you think this warning is a serious issue?
from ndpi.
The "depmod -a" command allows you to find errors related to undefined references, which should not be.
As a developer, this is important to me. In other cases, you may not need to run depmod at all.
from ndpi.
KERNEL_DIR
default to be /lib/modules/$(uname -r)/build
, so $KERNEL_DIR/source
is /lib/modules/$(uname -r)/build/source
I fixed it by replacing
$(shell grep -qc userid $(KERNEL_DIR)/source/include/linux/skbuff.h)
with
$(shell grep -qc userid $(shell dirname $(KERNEL_DIR))/source/include/linux/skbuff.h)
from ndpi.
Related Issues (20)
- Валятся тесты из папки tests после сборки HOT 1
- Question about Flow Risk HOT 4
- No pkg-config --variable=xtlibdir xtables HOT 3
- Typo in main.c (acctounting instead of accounting) HOT 1
- Linux 6.6: build errors HOT 10
- Kernel panic when syncing conntrack entries with conntrackd HOT 5
- All defined host protocols match risk id 27 (Risky Domain Name) HOT 7
- bittorrent.c: detected write beyond size of field HOT 1
- ndpi_network_list.c.inc can no longer be compiled after merge HOT 2
- Question about echo command HOT 1
- Seeking Advice on Updating nDPI on VPS Servers HOT 1
- unresolved symbol __aarch64_ldadd8_sync on aarch64 HOT 4
- Inconsistent BitTorrent Filtering with nDPI HOT 4
- Handling large host_proto lists HOT 2
- Linux 6.7: build error HOT 6
- Please help filter iptables DNAT traffic
- iptables 1.8.10 causes ksoftirqd 100% CPU HOT 5
- /root/nDPI/ndpi-netfilter/src/../../src/lib/ndpi_main.c:1040:5: error: �for� loop initial declarations are only allowed in C99 or C11 mode
- Error compiling kernel modules under arm32 bit HOT 5
- host_proto wildcard options. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ndpi.