Comments (17)
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.
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.
I compiled exactly as you wrote, here is my makefile. Using current openwrt snapshot source.
http://ix.io/4kui
from ipt-netflow.
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.
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.
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.
i'm not sure what is this about. my procedure is
- clone openwrt git
- put makefile in /package/network/ipt-netflow
- make menuconfig, select my board and software and netflow
- compile with make -j16
is something wrong with this?
from ipt-netflow.
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.
It will take a few minutes to compile
from ipt-netflow.
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.
if you do not compile the whole Openwrt from sources SDK is sufficient.
Is my procedure working ?
from ipt-netflow.
yes compiles with no issues. thanks :-) but i wonder why it's not compiling with the openwrt source.
from ipt-netflow.
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.
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.
@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.
@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.
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)
- natevents sending flows only if "conntrack -E" is running HOT 5
- Compile error on kernel 4.15.0, Ubuntu 18.04.6 LTS HOT 2
- wk_cpu = __smp_processor_id(); HOT 4
- no data flow HOT 1
- periodic will reconnect HOT 5
- Warning on module unload: "BUG: using smp_processor_id() in preemptible" HOT 1
- Missing logs HOT 1
- compiling error on ubuntu 18.04 HOT 2
- disable traffic flow
- Cross-compiling master HOT 2
- Use diferent protocol versions for different destinations
- git does not build on arch - 6.4.1-arch2-1 implicit declaration of function ‘register_sysctl_paths’; did you mean ‘register_sysctl_table’? [-Werror=implicit-function-declaration] HOT 9
- Couldn't load target `NETFLOW' debian 11.7 kernel 5.10.0-22 HOT 2
- Unusual CPU usage spike after certain pps count? HOT 1
- How to correctly set the time of sending netflow HOT 1
- natevent not working (Debian 12/6.1.0-10-amd64) HOT 1
- ipt_netflow Issue on Ubuntu 18: Nat Events Missing HOT 1
- No longer builds Arch HOT 4
- Compile error Debian-9 4.9.0-12-amd64 # 4.9.210-1
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 ipt-netflow.