Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713624 - dev-libs/libratbag-0.9 : ../.../ratbag-command.c: error: PATH_MAX undeclared (first use in this function)
Summary: dev-libs/libratbag-0.9 : ../.../ratbag-command.c: error: PATH_MAX undeclared ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard: Missing limits.h?
Keywords:
Depends on:
Blocks: musl-porting
  Show dependency tree
 
Reported: 2020-03-20 14:53 UTC by Toralf Förster
Modified: 2021-12-16 10:50 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.52 KB, text/plain)
2020-03-20 14:53 UTC, Toralf Förster
Details
dev-libs:libratbag-0.9:20200320-055235.log (dev-libs:libratbag-0.9:20200320-055235.log,14.51 KB, text/plain)
2020-03-20 14:53 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,183.32 KB, text/plain)
2020-03-20 14:53 UTC, Toralf Förster
Details
environment (environment,83.77 KB, text/plain)
2020-03-20 14:53 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,17.84 KB, application/x-bzip)
2020-03-20 14:53 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,21.08 KB, application/x-bzip)
2020-03-20 14:53 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-20 14:53:40 UTC
x86_64-gentoo-linux-musl-gcc -Iratbag-command@exe -I. -I../libratbag-0.9 -I../libratbag-0.9/src -I/usr/include/libevdev-1.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -std=gnu99 -Wno-unused-parameter -fvisibility=hidden -Wmissing-prototypes -Wstrict-prototypes -O2 -march=native -fno-common -falign-functions=32:25:16 -MD -MQ ratbag-command@exe/tools_ratbag-command.c.o -MF ratbag-command@exe/tools_ratbag-command.c.o.d -o ratbag-command@exe/tools_ratbag-command.c.o -c ../libratbag-0.9/tools/ratbag-command.c
../libratbag-0.9/tools/ratbag-command.c: In function ratbag_cmd_button_set_macro:
../libratbag-0.9/tools/ratbag-command.c:1364:17: error: PATH_MAX undeclared (first use in this function)
 1364 |  char macro_str[PATH_MAX] = {0};
      |                 ^~~~~~~~
../libratbag-0.9/tools/ratbag-command.c:1364:17: 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 dev-libs/libratbag
[ebuild  N    ] dev-libs/libratbag-0.9  USE="-doc -test"
Comment 1 Toralf Förster gentoo-dev 2020-03-20 14:53:43 UTC
Created attachment 623128 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-20 14:53:46 UTC
Created attachment 623130 [details]
dev-libs:libratbag-0.9:20200320-055235.log
Comment 3 Toralf Förster gentoo-dev 2020-03-20 14:53:49 UTC
Created attachment 623132 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-03-20 14:53:52 UTC
Created attachment 623134 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-03-20 14:53:54 UTC
Created attachment 623136 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-20 14:53:57 UTC
Created attachment 623138 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-03-21 02:06:58 UTC
I suspect this is a case of a missing #include <limits.h> which is required explicitly on musl-libc.