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

Bug 716878

Summary: sys-process/memwatch-0.3.3-r1 : /.../process_info.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: monsieurp
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
logs.tbz2
sys-process:memwatch-0.3.3:20200409-215118.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-10 07:49:36 UTC
cd /var/tmp/portage/sys-process/memwatch-0.3.3/work/memwatch-0.3.3_build/src && /usr/bin/x86_64-gentoo-linux-musl-gcc  -I/var/tmp/portage/sys-process/memwatch-0.3.3/work/memwatch-0.3.3/src/.   -DNDEBUG -Wall -Wextra -pedantic   -o CMakeFiles/memwatch.dir/process_info.c.o -c /var/tmp/portage/sys-process/memwatch-0.3.3/work/memwatch-0.3.3/src/process_info.c
/var/tmp/portage/sys-process/memwatch-0.3.3/work/memwatch-0.3.3/src/process_info.c: In function print_single_process:
/var/tmp/portage/sys-process/memwatch-0.3.3/work/memwatch-0.3.3/src/process_info.c:54:15: error: PATH_MAX undeclared (first use in this function)
   54 |     char path[PATH_MAX + 1] = {0};
      |               ^~~~~~~~
/var/tmp/portage/sys-process/memwatch-0.3.3/work/memwatch-0.3.3/src/process_info.c:54:15: 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-20200328-141627

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

  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 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Thu Apr  9 20:37:56 UTC 2020
/var/db/repos/musl	Wed Apr  8 18:15:58 UTC 2020

emerge -qpvO sys-process/memwatch
[ebuild  N    ] sys-process/memwatch-0.3.3
Comment 1 Toralf Förster gentoo-dev 2020-04-10 07:49:40 UTC
Created attachment 631754 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-10 07:49:43 UTC
Created attachment 631756 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-10 07:49:47 UTC
Created attachment 631758 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-10 07:49:51 UTC
Created attachment 631760 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-10 07:49:54 UTC
Created attachment 631762 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-10 07:49:58 UTC
Created attachment 631764 [details]
sys-process:memwatch-0.3.3:20200409-215118.log
Comment 7 Toralf Förster gentoo-dev 2020-04-10 07:50:01 UTC
Created attachment 631766 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-04-10 10:56:02 UTC
Likely an occurrence of missing #include <limits.h> .
Comment 9 Agostino Sarubbo gentoo-dev 2023-06-17 12:15:07 UTC
tinderbox_musl has reproduced this issue with version 0.3.3-r1 - Updating summary.