Giter VIP home page Giter VIP logo

Comments (8)

aabc avatar aabc commented on May 22, 2024

I installed Ubuntu 14.04.2 LTS to test this. But, 'it works for me':

@ubu:~/ipt-netflow# LANG=C dkms install -m ipt-netflow/2.1-16-g2837ec1

Kernel preparation unnecessary for this kernel.  Skipping...

Running the pre_build script:
Kernel version: 3.16.0-33-generic (uname)
Kernel sources: /lib/modules/3.16.0-33-generic/build (dkms)
Checking for presence of include/linux/llist.h... Yes
Iptables binary version: 1.4.21 (detected from /sbin/iptables)
pkg-config for version 1.4.21 exists: Yes
Checking for presence of xtables.h... Yes (using pkg-config)
Iptables include flags:   (pkg-config)
Iptables module path: /lib/xtables (pkg-config)
Searching for net-snmp-config... No.
Searching for net-snmp agent... Yes.
! You have net-snmp agent but not development package.
! net-snmp agent will not be built, to fix:
!   run:  apt-get install libsnmp-dev
Checking for DKMS... Yes.
Creating Makefile.. done.

  If you need some options enabled run ./configure --help
  Now run: make all install


Building module:
cleaning build area....
make KERNELRELEASE=3.16.0-33-generic ipt_NETFLOW.ko.....
cleaning build area....

DKMS: build completed.

ipt_NETFLOW.ko:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/3.16.0-33-generic/updates/dkms/

depmod.....

DKMS: install completed.
@ubu:~/ipt-netflow# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

I'm falling back to analysing your output.

Iptables binary version: 1.4.21 (detected from /sbin/iptables)
pkg-config for version 1.4.21 exists: No (reported: 1.4.19.1)
Checking for presence of xtables.h... Yes
Searching for iptables-1.4.21 sources..
! Can not find iptables source directory, you may try setting it with --ipt-src=
! This is not fatal error, yet. Will be just using default include dir.
Iptables include flags: none (default)
Iptables module path: /usr/local/lib/xtables
/tmp/iptables-1.4.19.1/libxtables (from iptables binary)

Why is pkg-config reporting iptables/xtables version 1.4.19.1 while binary is actually 1.4.21?

You have some manually installed iptables somewhere?

Please show pkg-config xtables --modversion. How much pkg-configs do you have? Please show whereis pkg-config and whereis iptables output.

Why in first configure run pkg-config reporting proper version 1.4.21 but from dkms it's different? It seems, like your system configuration is messed up. Please provide more details.

My preliminary guess, is that you have several pkg-configs and iptableses installed via package system (apt-get install into /usr/bin) and manually (make install into /usr/local/), which confuse build system. And my preliminary suggestion is—remove either packages or manual installs.

from ipt-netflow.

YusDyr avatar YusDyr commented on May 22, 2024

Yes, you were absolutely right! I have had two different version of iptables (in /sbin/ and /usr/local/sbin/iptables) and so two different xtables.pc in pkg-config. After I fix it, all OK finally.

Are there any possibility to take into account ./configure flags in dkms.conf? As far as I see, dkms.conf doesn't respect it and dkms module so can't me modified accordingly.

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

In fact, it should already save configure flags. If not, it's bug (but in my test with Ubuntu it passed args correctly).

dkms.conf have line PRE_BUILD="./configure --from-dkms-conf=$kernel_source_dir", and configure, if called with --from-dkms-conf, extracts CARGS variable from Makefile, which contains configure options.

from ipt-netflow.

YusDyr avatar YusDyr commented on May 22, 2024

How can I check it? In other words, if I made ./configure --enable-natevents --disable-snmp-agent && make all install and dkms install -m ipt-netflow/2.1-14-g22ddee7 after, it makes dkms module with nat-events support and snmp-agent absent. Right?

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

if I made ./configure --enable-natevents --disable-snmp-agent && make all install and dkms install -m ipt-netflow/2.1-14-g22ddee7 after, it makes dkms module with nat-events support and snmp-agent absent. Right?

SNMP agent is not part of the kernel module, it's separate thing (net-snmp module) not related to the linux kernel, and will not be installed via DKMS.
About nat-events, yes, you are right.

To check cat /proc/net/stat/ipt_netflow and look at the first line, it will contain list of enabled options, and you should see 'nel' if natevent are enabled.

from ipt-netflow.

aabc avatar aabc commented on May 22, 2024

@YusDyr Did you verify that there is no problem with respect of configure options? I plan to close this issue.

from ipt-netflow.

YusDyr avatar YusDyr commented on May 22, 2024

You definetly can close it, thank you!

from ipt-netflow.

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.