Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828859 - app-misc/logiops-0.2.3 - /.../RawDevice.cpp: error: timeval was not declared in this scope
Summary: app-misc/logiops-0.2.3 - /.../RawDevice.cpp: error: timeval was not declared ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2021-12-10 20:20 UTC by Toralf Förster
Modified: 2022-09-13 14:35 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,14.50 KB, text/plain)
2021-12-10 20:20 UTC, Toralf Förster
Details
app-misc:logiops-0.2.3:20211210-192430.log (app-misc:logiops-0.2.3:20211210-192430.log,23.41 KB, text/plain)
2021-12-10 20:20 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,135.54 KB, text/plain)
2021-12-10 20:20 UTC, Toralf Förster
Details
environment (environment,108.32 KB, text/plain)
2021-12-10 20:20 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,42.82 KB, application/x-bzip)
2021-12-10 20:20 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.90 KB, application/x-bzip)
2021-12-10 20:20 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.03 KB, application/x-bzip)
2021-12-10 20:20 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-12-10 20:20:10 UTC
too long lines were shrinked:

[29/60] /usr/bin/x86_64-gentoo-linux-musl-g++ -DLOGIOPS_VERSION=\"v0.2\" -I/usr/include/libevdev-1.0  -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wextra -std=gnu++14 -MD -MT src/logid/CMakeFiles/logid.dir/backend/raw/RawDevice.cpp.o -MF src/logid/CMakeFiles/logid.dir/backend/raw/RawDevice.
FAILED: src/logid/CMakeFiles/logid.dir/backend/raw/RawDevice.cpp.o 
/usr/bin/x86_64-gentoo-linux-musl-g++ -DLOGIOPS_VERSION=\"v0.2\" -I/usr/include/libevdev-1.0  -pipe -march=native -fno-diagnostics-color -O2 -Wall -Wextra -std=gnu++14 -MD -MT src/logid/CMakeFiles/logid.dir/backend/raw/RawDevice.cpp.o -MF src/logid/CMakeFiles/logid.dir/backend/raw/RawDevice.cpp.o.d 
/var/tmp/portage/app-misc/logiops-0.2.3/work/logiops-0.2.3/src/logid/backend/raw/RawDevice.cpp: In member function 'int logid::backend::raw::RawDevice::_readReport(std::vector<unsigned char>&, std::size_t, std::chrono::milliseconds)':
/var/tmp/portage/app-misc/logiops-0.2.3/work/logiops-0.2.3/src/logid/backend/raw/RawDevice.cpp:350:5: error: 'timeval' was not declared in this scope
  350 |     timeval timeout_tv{};
      |     ^~~~~~~
/var/tmp/portage/app-misc/logiops-0.2.3/work/logiops-0.2.3/src/logid/backend/raw/RawDevice.cpp:351:5: error: 'timeout_tv' was not declared in this scope; did you mean 'timeout'?
  351 |     timeout_tv.tv_sec = duration_cast<seconds>(global_config->ioTimeout())

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211209-163207

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 9e1ff0161da1c0eb7772bf84be1adc0761d94bc5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Dec 10 18:51:51 2021 +0000

    2021-12-10 18:51:48 UTC

emerge -qpvO app-misc/logiops
[ebuild  N    ] app-misc/logiops-0.2.3  USE="(-systemd)"
Comment 1 Toralf Förster gentoo-dev 2021-12-10 20:20:11 UTC
Created attachment 758315 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-10 20:20:12 UTC
Created attachment 758316 [details]
app-misc:logiops-0.2.3:20211210-192430.log
Comment 3 Toralf Förster gentoo-dev 2021-12-10 20:20:13 UTC
Created attachment 758317 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-12-10 20:20:15 UTC
Created attachment 758318 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-12-10 20:20:16 UTC
Created attachment 758319 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-12-10 20:20:17 UTC
Created attachment 758320 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2021-12-10 20:20:18 UTC
Created attachment 758321 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-09-13 14:35:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2e54a000278968825cc226c4a32ce6cd6a654a3

commit c2e54a000278968825cc226c4a32ce6cd6a654a3
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-09-13 14:18:43 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-09-13 14:34:50 +0000

    app-misc/logiops: Fix build on musl
    
    - timeval needed <sys/time.h>, and
    - uint is not available on musl (maybe on other libc's) so using
      unsigned int
    
    Closes: https://bugs.gentoo.org/828859
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/27237
    Signed-off-by: Sam James <sam@gentoo.org>

 .../logiops/files/logiops-0.2.3-musl-fixes.patch   | 44 ++++++++++++++++++++++
 app-misc/logiops/logiops-0.2.3-r1.ebuild           |  4 ++
 2 files changed, 48 insertions(+)