Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 713624

Summary: dev-libs/libratbag-0.9 : ../.../ratbag-command.c: error: PATH_MAX undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: CONFIRMED ---    
Severity: normal CC: maintainer-needed
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Missing limits.h?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: emerge-info.txt

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
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 *

==> /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]
Comment 2 Toralf Förster gentoo-dev 2020-03-20 14:53:46 UTC
Created attachment 623130 [details]
Comment 3 Toralf Förster gentoo-dev 2020-03-20 14:53:49 UTC
Created attachment 623132 [details]
Comment 4 Toralf Förster gentoo-dev 2020-03-20 14:53:52 UTC
Created attachment 623134 [details]
Comment 5 Toralf Förster gentoo-dev 2020-03-20 14:53:54 UTC
Created attachment 623136 [details]
Comment 6 Toralf Förster gentoo-dev 2020-03-20 14:53:57 UTC
Created attachment 623138 [details]
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.