Skip to content

[3.4.3] linux/openat2.h: No such file or directory #905

@fda77

Description

@fda77

Rsync is available to build with freetz-ng which is a firmware extension for avm router and other devices.
Hardware is mips, mipsel, arm, armeb, aarch64 and i686. Kernel versions are in range 2.6 - 5.4.
Currently there are 34 different toolchain combinations.
The kernel version could not be changed due to closed-source modules for dect, dsl, isdn, pots etc

3.4.2 compiled for all, 3.4.3 only for 2 of 34 toolchains due to missing "openat2.h", see: https://github.com/Freetz-NG/freetz-ng/actions/runs/26193880852

...
/home/builder/freetz-ng/toolchain/build/mips_gcc-13.4.0_uClibc-1.0.57-nptl_kernel-4.9/mips-linux-uclibc/bin/mips-linux-uclibc-gcc -I. -I. -march=34kc -mtune=34kc -msoft-float -Ofast -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-I/usr/lib/freetz/ld-uClibc.so.1 -DHAVE_CONFIG_H -Wall -W -Wno-unused-parameter  -c lib/sysacls.c -o lib/sysacls.o
/home/builder/freetz-ng/toolchain/build/mips_gcc-13.4.0_uClibc-1.0.57-nptl_kernel-4.9/mips-linux-uclibc/bin/mips-linux-uclibc-gcc -I. -I. -march=34kc -mtune=34kc -msoft-float -Ofast -pipe -Wa,--trap -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wl,-I/usr/lib/freetz/ld-uClibc.so.1 -DHAVE_CONFIG_H -Wall -W -Wno-unused-parameter  -c lib/sysxattrs.c -o lib/sysxattrs.o
syscall.c:38:10: fatal error: linux/openat2.h: No such file or directory
   38 | #include <linux/openat2.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

I "fixed" this problem with a #undef __linux__ which reverts 4fa7156

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions