Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930085 - dev-libs/dynolog-0.3.1_p20230126-r1: third_party/pfs/src/mem.cpp:54:26: error: 'preadv64' was not declared in th is scope
Summary: dev-libs/dynolog-0.3.1_p20230126-r1: third_party/pfs/src/mem.cpp:54:26: error...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-15 22:07 UTC by Felix Janda
Modified: 2024-04-24 20:53 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,137.69 KB, text/plain)
2024-04-15 22:07 UTC, Felix Janda
Details
emerge --info (emerge.info,7.53 KB, text/plain)
2024-04-15 22:07 UTC, Felix Janda
Details
Patch to fix compilation (musl.patch,573 bytes, patch)
2024-04-24 20:53 UTC, Felix Janda
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Janda 2024-04-15 22:07:13 UTC
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
Comment 1 Felix Janda 2024-04-15 22:07:44 UTC
Created attachment 890888 [details]
build.log
Comment 2 Felix Janda 2024-04-15 22:07:58 UTC
Created attachment 890889 [details]
emerge --info
Comment 3 Felix Janda 2024-04-24 14:25:40 UTC
I opened a pull request against the upstream's upstream: https://github.com/dtrugman/pfs/pull/45
Comment 4 Felix Janda 2024-04-24 20:53:14 UTC
Created attachment 891668 [details, diff]
Patch to fix compilation