Compilation fails on my musl system: FAILED: third_party/pfs/CMakeFiles/pfs.dir/src/mem.cpp.o /usr/bin/x86_64-gentoo-linux-musl-g++ -I/var/tmp/portage/dev-libs/dynolog-0.3.1_p20230126-r1/work/dynolog-0.3.1_p20230126/. -I/var/tmp/portage/dev-libs/dyno log-0.3.1_p20230126-r1/work/dynolog-0.3.1_p20230126/third_party/pfs/include -O2 -pipe -pthread -std=gnu++17 -fPIC -std=c++11 -Wall -Wextra -pedantic -MD -MT third_party/pfs/CMakeFiles/pfs.dir/src/mem.cpp.o -MF third_party/pfs/CMakeFiles/pfs.dir/src/mem.cpp.o.d -o third_party/pfs/CMakeFiles/pfs.dir/src/mem.cpp.o -c /var/tmp/portage/dev-libs/dynolog-0.3.1_p20230126-r1/work/dynolog-0.3.1_p20230126/third_party/pfs/src/mem.cpp /var/tmp/portage/dev-libs/dynolog-0.3.1_p20230126-r1/work/dynolog-0.3.1_p20230126/third_party/pfs/src/mem.cpp: In member function 'std::vector<unsigned char> pfs::mem::read(off_t, size_t)': /var/tmp/portage/dev-libs/dynolog-0.3.1_p20230126-r1/work/dynolog-0.3.1_p20230126/third_party/pfs/src/mem.cpp:54:26: error: 'preadv64' was not declared in th is scope; did you mean 'preadv'? 54 | ssize_t bytes_read = preadv64(_fd, &iov, 1, offset); | ^~~~~~~~ | preadv Reproducible: Always
Created attachment 890888 [details] build.log
Created attachment 890889 [details] emerge --info
I opened a pull request against the upstream's upstream: https://github.com/dtrugman/pfs/pull/45
Created attachment 891668 [details, diff] Patch to fix compilation
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7630ab84bdf3b4f513ea4c71fe7557b6af27be07 commit 7630ab84bdf3b4f513ea4c71fe7557b6af27be07 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2024-05-21 10:29:54 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2024-05-21 10:29:54 +0000 dev-libs/dynolog: add dev-libs/pfs dep Closes: https://bugs.gentoo.org/930085 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> ...g-0.3.1_p20230126-r1.ebuild => dynolog-0.3.1_p20230126-r2.ebuild} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)