Skip to content

kmod-ipt-coova: Fails to build with /src/linux/xt_coova.c:332:11: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]. #5

@dreirund

Description

@dreirund

Ahoj,

when I try to build kmod-ipt-coova from the HandsomeMod/packages feed, it fails with /src/linux/xt_coova.c:332:11: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types].

After a failing make -j6, here the terminal output of
make -j1 V=sc package/feeds/packages/coova-chilli/compile:

[...]
  CC [M]  /[...]/build_dir/target-aarch64_cortex-a53+neon_musl/coova-chilli-1.5/src/linux/xt_coova.o
/[...]/build_dir/target-aarch64_cortex-a53+neon_musl/coova-chilli-1.5/src/linux/xt_coova.c: In function 'coova_mt_check':
/[...]/build_dir/target-aarch64_cortex-a53+neon_musl/coova-chilli-1.5/src/linux/xt_coova.c:332:11: error: passing argument 4 of 'proc_create_data' from incompatible pointer type [-Werror=incompatible-pointer-types]
           &coova_mt_fops, t);
           ^~~~~~~~~~~~~~
In file included from /[...]/build_dir/target-aarch64_cortex-a53+neon_musl/coova-chilli-1.5/src/linux/xt_coova.c:23:
./include/linux/proc_fs.h:104:31: note: expected 'const struct proc_ops *' but argument is of type 'const struct file_operations *'
 extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
                               ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[8]: *** [scripts/Makefile.build:279: /[...]/build_dir/target-aarch64_cortex-a53+neon_musl/coova-chilli-1.5/src/linux/xt_coova.o] Error 1
[...]

→ Full package build terminal output.

Configuration:

  • grep -i coova .config:
    CONFIG_PACKAGE_kmod-ipt-coova=m
    # CONFIG_PACKAGE_coova-chilli is not set
  • → Full .config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions