Giter VIP home page Giter VIP logo

Comments (5)

vel21ripn avatar vel21ripn commented on July 24, 2024 1

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.

houmie avatar houmie commented on July 24, 2024

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.

houmie avatar houmie commented on July 24, 2024

@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.

vel21ripn avatar vel21ripn commented on July 24, 2024

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.

Vigilans avatar Vigilans commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.