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

Bug 717038

Summary: net-analyzer/nagios-plugins-linux-madrisan-25-r1 : processes.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 FIXED    
Severity: normal CC: sbraz
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/madrisan/nagios-plugins-linux/pull/52
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 713786    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-analyzer:nagios-plugins-linux-madrisan-25-r1:20200411-093815.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-11 10:31:35 UTC
      |                                  %llu
processes.c: In function procs_list_getall:
processes.c:176:31: error: PATH_MAX undeclared (first use in this function)
  176 |   char *line = NULL, *p, path[PATH_MAX];
      |                               ^~~~~~~~
processes.c:176:31: 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-bin-1.42.0
  [2]   rust-1.42.0 *
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr 11 08:38:00 UTC 2020
/var/db/repos/musl	Wed Apr  8 18:15:58 UTC 2020

emerge -qpvO net-analyzer/nagios-plugins-linux-madrisan
[ebuild  N    ] net-analyzer/nagios-plugins-linux-madrisan-25-r1  USE="-curl"
Comment 1 Toralf Förster gentoo-dev 2020-04-11 10:31:38 UTC
Created attachment 632156 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-11 10:31:41 UTC
Created attachment 632158 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-11 10:31:43 UTC
Created attachment 632160 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-11 10:31:46 UTC
Created attachment 632162 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-11 10:31:49 UTC
Created attachment 632164 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-11 10:31:52 UTC
Created attachment 632166 [details]
net-analyzer:nagios-plugins-linux-madrisan-25-r1:20200411-093815.log
Comment 7 Toralf Förster gentoo-dev 2020-04-11 10:31:55 UTC
Created attachment 632168 [details]
temp.tbz2
Comment 8 Larry the Git Cow gentoo-dev 2020-04-20 15:01:53 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98512d626268d232434aa24d0450ddd5ac8c71d9

commit 98512d626268d232434aa24d0450ddd5ac8c71d9
Author:     Louis Sautier <sbraz@gentoo.org>
AuthorDate: 2020-04-20 14:59:33 +0000
Commit:     Louis Sautier <sbraz@gentoo.org>
CommitDate: 2020-04-20 15:01:45 +0000

    net-analyzer/nagios-plugins-linux-madrisan: fix build with musl
    
    Closes: https://bugs.gentoo.org/717038
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Louis Sautier <sbraz@gentoo.org>

 ...-plugins-linux-madrisan-25-fix-musl-build.patch | 35 ++++++++++++++++++++++
 .../nagios-plugins-linux-madrisan-25-r1.ebuild     |  6 +++-
 2 files changed, 40 insertions(+), 1 deletion(-)