Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713386 - app-admin/rasdaemon-0.6.7 : ras-events.c: error: PATH_MAX undeclared (first use in this function)
Summary: app-admin/rasdaemon-0.6.7 : ras-events.c: error: PATH_MAX undeclared (first u...
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: Missing limits.h?
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2020-03-19 11:10 UTC by Toralf Förster
Modified: 2022-01-25 20:00 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.35 KB, text/plain)
2020-03-19 11:10 UTC, Toralf Förster
Details
app-admin:rasdaemon-0.6.5:20200318-233945.log (app-admin:rasdaemon-0.6.5:20200318-233945.log,12.04 KB, text/plain)
2020-03-19 11:10 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,110.44 KB, text/plain)
2020-03-19 11:10 UTC, Toralf Förster
Details
environment (environment,78.01 KB, text/plain)
2020-03-19 11:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.50 KB, application/x-bzip)
2020-03-19 11:11 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.68 KB, application/x-bzip)
2020-03-19 11:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.35 KB, application/x-bzip)
2020-03-19 11:11 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 2020-03-19 11:10:49 UTC
      |  ^~~~~~~
ras-events.c: In function read_ras_event_all_cpus:
ras-events.c:359:16: error: PATH_MAX undeclared (first use in this function)
  359 |  char pipe_raw[PATH_MAX];
      |                ^~~~~~~~
ras-events.c:359:16: note: each undeclared identifier is reported only once for each function it appears in

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

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

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO app-admin/rasdaemon
[ebuild  N    ] app-admin/rasdaemon-0.6.5  USE="-sqlite"
Comment 1 Toralf Förster gentoo-dev 2020-03-19 11:10:52 UTC
Created attachment 622222 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-19 11:10:55 UTC
Created attachment 622224 [details]
app-admin:rasdaemon-0.6.5:20200318-233945.log
Comment 3 Toralf Förster gentoo-dev 2020-03-19 11:10:58 UTC
Created attachment 622226 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-19 11:11:01 UTC
Created attachment 622228 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-19 11:11:03 UTC
Created attachment 622230 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-19 11:11:06 UTC
Created attachment 622232 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-03-19 11:11:09 UTC
Created attachment 622234 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-03-21 02:05:28 UTC
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.
Comment 9 Stijn Tintel 2021-09-01 00:41:25 UTC
https://github.com/mchehab/rasdaemon/pull/50
Comment 10 Agostino Sarubbo gentoo-dev 2021-12-30 06:58:38 UTC
tinderbox_musl has reproduced this issue with version 0.6.7 - Updating summary.
Comment 11 Fabian Groffen gentoo-dev 2022-01-25 09:08:58 UTC
in addition one needs argp-standalone, and link against -largp (musl)
Comment 12 Larry the Git Cow gentoo-dev 2022-01-25 20:00:59 UTC
The bug has been closed via the following commit(s):

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

commit 20dc1a7757bbe3576f39ba7cf8a57049c75ba1ba
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2022-01-25 20:00:12 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2022-01-25 20:00:57 +0000

    app-admin/rasdaemon-0.6.7-r1: fix build for musl
    
    Closes: https://bugs.gentoo.org/713386
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>

 .../rasdaemon/files/rasdaemon-0.6.7-musl.patch     | 34 ++++++++++
 app-admin/rasdaemon/rasdaemon-0.6.7-r1.ebuild      | 79 ++++++++++++++++++++++
 2 files changed, 113 insertions(+)