Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
tools/e2fsprogs: fix building on a glibc 2.27 host #781
The e2fsprogs host build fails on a glibc 2.27 host with
Backport upstream commit "misc: rename copy_file_range to
Signed-off-by: Stefan Lippers-Hollmann firstname.lastname@example.org
The e2fsprogs host build fails on a glibc 2.27 host with make: Entering directory 'build_dir/host/e2fsprogs-1.43.7/debugfs' CC create_inode.o ./../misc/create_inode.c:399:18: error: conflicting types for 'copy_file_range' static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file, ^~~~~~~~~~~~~~~ In file included from ./../misc/create_inode.c:19:0: /usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here ssize_t copy_file_range (int __infd, __off64_t *__pinoff, ^~~~~~~~~~~~~~~ Backport upstream commit "misc: rename copy_file_range to copy_file_chunk" 01551bdba16ab16512a01affe02ade32c41ede8a in order to fix this. Signed-off-by: Stefan Lippers-Hollmann <email@example.com>
Yes, it's also needed for lede-17.01 if you want to build it on a host with glibc >=2.27 (Debian/ unstable has switched to glibc 2.27-1 last saturday, it migrated to testing yesterday). The pull request applies (and compiles) without changes after leaving out or adapting the PKG_RELEASE bump for the stable backport.