Giter VIP home page Giter VIP logo

Comments (17)

svlobanov avatar svlobanov commented on June 11, 2024

It might be openwrt env issue. Do you have the same issue if compile on regular host for regular host? (e.g. debian normal setup)

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

ipt-netflow versions 2.6 or 2.5.1 cannot be compiled against openwrt trunk

when you change openwrt MakeFile and comment this:
#PKG_VERSION:=2.6
#PKG_SOURCE_VERSION:=v$(PKG_VERSION)

and uncomment this:

PKG_VERSION:=$(shell (git ls-remote $(PKG_SOURCE_URL) | grep refs/heads/master | cut -f 1 | head -c 7))
PKG_SOURCE_VERSION:=HEAD

then you will compile current master branch and not versions of ipt-netflow on openwrt and it will work fine.

The proof: http://kalamlacki.eu/ipt-netflow/develop_2023_01_06/

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

I compiled exactly as you wrote, here is my makefile. Using current openwrt snapshot source.
http://ix.io/4kui

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

What kind of distro were you using for compilation, which openwrt SDK you were using?
I compiled this on Ubuntu 18.04.6

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

Latest Arch Linux. OpenWRT cloned from https://github.com/openwrt/openwrt.git.
Target is Turris Omnia router.
I will try a make dirclean. Sometimes this helps.

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

I was compiling this using this SDK: https://downloads.openwrt.org/snapshots/targets/mvebu/cortexa9/openwrt-sdk-mvebu-cortexa9_gcc-11.3.0_musl_eabi.Linux-x86_64.tar.xz

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

i'm not sure what is this about. my procedure is

  1. clone openwrt git
  2. put makefile in /package/network/ipt-netflow
  3. make menuconfig, select my board and software and netflow
  4. compile with make -j16

is something wrong with this?

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

xz -d< openwrt-sdk-mvebu-cortexa9_gcc-11.3.0_musl_eabi.Linux-x86_64.tar.xz | tar -xv
cd openwrt-sdk-mvebu-cortexa9_gcc-11.3.0_musl_eabi.Linux-x86_64
./scripts/feeds update -a
./scripts/feeds install iptables
make package/ipt-netflow/compile V=99

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

It will take a few minutes to compile

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

what is wrong with my procedure?
what is different to openwrt-sdk-mvebu-cortexa9_gcc-11.3.0_musl_eabi.Linux-x86_64?

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

if you do not compile the whole Openwrt from sources SDK is sufficient.
Is my procedure working ?

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

yes compiles with no issues. thanks :-) but i wonder why it's not compiling with the openwrt source.

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

you know what worked? i simply deleted:
./build_dir/target-arm_cortex-a9+vfpv3-d16_musl_eabi/linux-mvebu_cortexa9/linux-5.15.86/include/net/netfilter/nf_conntrack_ecache.h
./build_dir/toolchain-arm_cortex-a9+vfpv3-d16_gcc-11.3.0_musl_eabi/linux-5.15.86/include/net/netfilter/nf_conntrack_ecache.h

and now it compiles without errors, can someone explain??!?!?
(with my method cloning openwrt from github)

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

anything i do on openwrt git snapshot i'm stuck at this "test":
@aabc please advice, thanks!
test.c:4:41: error: invalid use of undefined type 'struct nf_ct_event_notifier'

from ipt-netflow.

DocMAX avatar DocMAX commented on June 11, 2024

@kalamlacki root cause ist 6a55739
i removed that test what ever it does and now it's compiling fine.
that's why it working in 2.5.1 before, because this commit is missing.
@aabc please have a look.

from ipt-netflow.

kalamlacki avatar kalamlacki commented on June 11, 2024

@DocMAX I saw that you did fork of ipt-netflow repository. Are you going to maintain it?
The next thing to do is PREMPTING support because modern kernels have this feature turned on and this module does not support it.

from ipt-netflow.

vvfedorenko avatar vvfedorenko commented on June 11, 2024

the definition of struct nf_ct_event_notifier is hidden behind CONFIG_NF_CONNTRACK_EVENTS option. If the kernel configuration doesn't have it, you will get such kind of error while running configure --enable-nat-events. Consider changing kernel options in your build, it's disabled by default in OpenWRT

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.