Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719896 - sys-process/uksmd-0_pre20200420 : uksmd.c: error: PATH_MAX undeclared (first use in this function)
Summary: sys-process/uksmd-0_pre20200420 : uksmd.c: error: PATH_MAX undeclared (first ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard: Missing limits.h?
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-28 07:21 UTC by Toralf Förster
Modified: 2020-08-27 02:25 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.64 KB, text/plain)
2020-04-28 07:21 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,104.37 KB, text/plain)
2020-04-28 07:21 UTC, Toralf Förster
Details
environment (environment,77.88 KB, text/plain)
2020-04-28 07:21 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.50 KB, application/x-bzip)
2020-04-28 07:21 UTC, Toralf Förster
Details
sys-process:uksmd-0_pre20200420:20200427-230226.log (sys-process:uksmd-0_pre20200420:20200427-230226.log,2.58 KB, text/plain)
2020-04-28 07:21 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,19.11 KB, application/x-bzip)
2020-04-28 07:21 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-04-28 07:21:35 UTC
cc -O2 -pipe -march=native -Wextra -pedantic -fstack-protector-strong -fno-plt -c uksmd.c
uksmd.c: In function ksm_advise:
uksmd.c:62:12: error: PATH_MAX undeclared (first use in this function)
   62 |  char path[PATH_MAX];
      |            ^~~~~~~~
uksmd.c:62:12: 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-20200425-233309

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

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 (uninstalled)
  [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.43.0
  [2]   rust-1.43.0 *

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon Apr 27 21:41:25 UTC 2020
/var/db/repos/musl	Mon Apr 27 18:53:47 UTC 2020

emerge -qpvO sys-process/uksmd
[ebuild  N    ] sys-process/uksmd-0_pre20200420
Comment 1 Toralf Förster gentoo-dev 2020-04-28 07:21:39 UTC
Created attachment 634982 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-28 07:21:43 UTC
Created attachment 634984 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-28 07:21:46 UTC
Created attachment 634986 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-28 07:21:49 UTC
Created attachment 634988 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-28 07:21:52 UTC
Created attachment 634990 [details]
sys-process:uksmd-0_pre20200420:20200427-230226.log
Comment 6 Toralf Förster gentoo-dev 2020-04-28 07:21:55 UTC
Created attachment 634992 [details]
temp.tbz2
Comment 7 Michael 'veremitz' Everitt 2020-04-28 10:39:12 UTC
Likely an occurrence of missing #include <limits.h>  .
Comment 8 Oleksandr Natalenko 2020-05-04 12:47:35 UTC
Does [1] address the issue?

[1] https://gitlab.com/post-factum/uksmd/-/commit/5325ae51733ebb010862365c5a474f0d68f1ca1f
Comment 9 Larry the Git Cow gentoo-dev 2020-05-06 05:03:31 UTC
The bug has been referenced in the following commit(s):

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

commit 3e6b8985084256d7afce1953701d08f4a1d84fbe
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2020-05-06 05:02:44 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-05-06 05:03:20 +0000

    sys-process/uksmd: 2020-05-04 snapshot
    
    Bug: https://bugs.gentoo.org/719896
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 sys-process/uksmd/Manifest                         |  1 +
 ...ksmd-0_pre20200504-respect-cflags-ldflags.patch | 15 ++++++++++
 sys-process/uksmd/uksmd-0_pre20200504.ebuild       | 35 ++++++++++++++++++++++
 3 files changed, 51 insertions(+)