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

Bug 716876

Summary: app-misc/evtest-1.34 : evtest.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: sam, zlogene
Priority: Normal Keywords: PATCH
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
app-misc:evtest-1.34:20200409-215003.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2020-04-10 07:48:59 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I.     -O2 -pipe -march=native -c -o evtest.o evtest.c
evtest.c: In function scan_devices:
evtest.c:886:14: error: PATH_MAX undeclared (first use in this function)
  886 |   char fname[PATH_MAX];
      |              ^~~~~~~~
evtest.c:886:14: 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	Thu Apr  9 20:37:56 UTC 2020
/var/db/repos/musl	Wed Apr  8 18:15:58 UTC 2020

emerge -qpvO app-misc/evtest
[ebuild  N    ] app-misc/evtest-1.34
Comment 1 Toralf Förster gentoo-dev 2020-04-10 07:49:03 UTC
Created attachment 631740 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-10 07:49:06 UTC
Created attachment 631742 [details]
app-misc:evtest-1.34:20200409-215003.log
Comment 3 Toralf Förster gentoo-dev 2020-04-10 07:49:10 UTC
Created attachment 631744 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-04-10 07:49:13 UTC
Created attachment 631746 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-04-10 07:49:17 UTC
Created attachment 631748 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-10 07:49:21 UTC
Created attachment 631750 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-04-10 07:49:24 UTC
Created attachment 631752 [details]
temp.tbz2
Comment 8 Michael 'veremitz' Everitt 2020-04-10 10:56:17 UTC
Likely an occurrence of missing #include <limits.h> .
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-04-10 10:59:42 UTC
(In reply to Michael 'veremitz' Everitt from comment #8)
> Likely an occurrence of missing #include <limits.h> .

Yep!

https://git.alpinelinux.org/aports/tree/community/evtest/fix-ppc64le-musl.patch

No idea why the patch name mentions ppc64...
Comment 11 Larry the Git Cow gentoo-dev 2021-12-29 06:27:19 UTC
The bug has been closed via the following commit(s):

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

commit bbf303a2bd691cc0c9165b5435db1a8f6f19a32a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-29 06:07:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-29 06:27:09 +0000

    app-misc/evtest: fix musl build (upstream patch)
    
    Closes: https://bugs.gentoo.org/716876
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/evtest/evtest-1.34.ebuild                 | 13 ++++++-----
 .../evtest/files/evtest-1.34-musl-include.patch    | 26 ++++++++++++++++++++++
 2 files changed, 34 insertions(+), 5 deletions(-)