Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error #194

Open
DocMAX opened this issue Mar 12, 2022 · 5 comments
Open

Compile error #194

DocMAX opened this issue Mar 12, 2022 · 5 comments

Comments

@DocMAX
Copy link

DocMAX commented Mar 12, 2022

Test function put_unaligned_be24 asm/unaligned.h  declared
Test function totalram_pages linux/mm.h  declared
Test symbol totalram_pages linux/mm.h  declared
Test member nf_ct_event_notifier.ct_event net/netfilter/nf_conntrack_ecache.h  undeclared
Error: unexpected error from compiler
make -s -B -C /usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-5.10.103 M=/usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ipt-netflow-6a55739/cc-test-build modules
make[4]: Entering directory '/usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-5.10.103'
/usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ipt-netflow-6a55739/cc-test-build/test.c:4:41: error: invalid use of undefined type 'struct nf_ct_event_notifier'
    4 | typeof(((struct nf_ct_event_notifier*)0)->ct_event) test;
      |                                         ^~
make[5]: *** [scripts/Makefile.build:280: /usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ipt-netflow-6a55739/cc-test-build/test.o] Error 1
make[4]: *** [Makefile:1822: /usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ipt-netflow-6a55739/cc-test-build] Error 2
make[4]: Leaving directory '/usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/linux-5.10.103'

make[3]: *** [Makefile:30: compat_def.h] Error 3
make[3]: Leaving directory '/usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ipt-netflow-6a55739'
make[2]: *** [Makefile:120: /usr/src/github/openwrt/sources/snapshot/build_dir/target-mips_24kc_musl/linux-lantiq_xrx200/ipt-netflow-6a55739/.built] Error 2
make[2]: Leaving directory '/usr/src/github/openwrt/sources/snapshot/package/network/ipt-netflow'
time: package/network/ipt-netflow/compile#12.57#3.73#16.16
    ERROR: package/network/ipt-netflow failed to build.
make[1]: *** [package/Makefile:116: package/network/ipt-netflow/compile] Error 1
make[1]: Leaving directory '/usr/src/github/openwrt/sources/snapshot'
make: *** [/usr/src/github/openwrt/sources/snapshot/include/toplevel.mk:230: package/network/ipt-netflow/compile] Fehler 2

@DocMAX
Copy link
Author

DocMAX commented Mar 12, 2022

Hmm, works if i compile version 2.5.1 ?!?

@kalamlacki
Copy link

Hi!

I was able to compile current master branch, the result is here:
https://kalamlacki.eu/ipt-netflow/21.02.2/ath79-generic/

Best regards,
Łukasz

@kalamlacki
Copy link

Hi!

You did no do
./scripts/feeds update
./scripts/feeds install iptables

Best,
Łukasz

@kalamlacki
Copy link

Hi!

Or if you use older openwrt distro: https://kalamlacki.eu/ipt-netflow/19.07.9/ath79-generic/

Best,
Łukasz

@kalamlacki
Copy link

Hi!

Now I spotted that you are using develop branch because of kernel-5.10.103 however I tried on develop branch with kernel 5.10.104 and it is also fine:
https://kalamlacki.eu/ipt-netflow/develop-19-mar-2022/ath79-generic/

Best,
Łukasz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants