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

Bug 715954

Summary: sys-apps/cinit-0.2.1 : client/run_run_svcs.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: RESOLVED DUPLICATE    
Severity: normal CC: arkamar, maintainer-needed
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Missing limits.h?
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
sys-apps:cinit-0.2.1:20200402-190710.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-02 21:10:39 UTC
x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -I.   -c -o client/run_run_svcs.o client/run_run_svcs.c
client/run_run_svcs.c: In function run_run_svcs:
client/run_run_svcs.c:24:17: error: PATH_MAX undeclared (first use in this function)
   24 |    char pathbuf[PATH_MAX+1];
      |                 ^~~~~~~~
client/run_run_svcs.c:24: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_hardened-20200328-201618

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

  Please see the tracker bug for details.

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

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Apr  2 16:07:47 UTC 2020
/var/db/repos/musl	Thu Apr  2 13:46:05 UTC 2020

emerge -qpvO sys-apps/cinit
[ebuild  N    ] sys-apps/cinit-0.2.1  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2020-04-02 21:10:41 UTC
Created attachment 629216 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-02 21:10:44 UTC
Created attachment 629218 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-02 21:10:47 UTC
Created attachment 629220 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-02 21:10:50 UTC
Created attachment 629222 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-02 21:10:52 UTC
Created attachment 629224 [details]
sys-apps:cinit-0.2.1:20200402-190710.log
Comment 6 Toralf Förster gentoo-dev 2020-04-02 21:10:55 UTC
Created attachment 629226 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-04-04 18:49:01 UTC
I suspect this is a case of a missing #include <limits.h> which is required
explicitly on musl-libc.
Comment 8 Petr Vaněk gentoo-dev 2024-09-17 16:01:25 UTC

*** This bug has been marked as a duplicate of bug 898542 ***