Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 829705 - sys-apps/nvme-cli-1.16 - nvme-rpmb.c: error: PATH_MAX undeclared (first use in this function)
Summary: sys-apps/nvme-cli-1.16 - nvme-rpmb.c: error: PATH_MAX undeclared (first use i...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 833129
  Show dependency tree
 
Reported: 2021-12-20 10:28 UTC by Toralf Förster
Modified: 2022-02-11 14:31 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.61 KB, text/plain)
2021-12-20 10:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,184.17 KB, text/plain)
2021-12-20 10:28 UTC, Toralf Förster
Details
environment (environment,61.46 KB, text/plain)
2021-12-20 10:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.50 KB, application/x-bzip)
2021-12-20 10:29 UTC, Toralf Förster
Details
sys-apps:nvme-cli-1.16:20211220-015212.log (sys-apps:nvme-cli-1.16:20211220-015212.log,2.81 KB, text/plain)
2021-12-20 10:29 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,15.80 KB, application/x-bzip)
2021-12-20 10:29 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 2021-12-20 10:28:55 UTC
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -pipe -march=native -fno-diagnostics-color -O2 -std=gnu99 -I. -DLIBUUID -DLIBJSONC -DNVME_VERSION='"1.16"' -Iutil -o nvme-ioctl.o -c nvme-ioctl.c
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -pipe -march=native -fno-diagnostics-color -O2 -std=gnu99 -I. -DLIBUUID -DLIBJSONC -DNVME_VERSION='"1.16"' -Iutil -o nvme-rpmb.o -c nvme-rpmb.c
x86_64-gentoo-linux-musl-gcc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -pipe -march=native -fno-diagnostics-color -O2 -std=gnu99 -I. -DLIBUUID -DLIBJSONC -DNVME_VERSION='"1.16"' -Iutil -o nvme-lightnvm.o -c nvme-lightnvm.c
nvme-rpmb.c: In function 'write_file':
nvme-rpmb.c:201:26: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
  201 |         char temp_folder[PATH_MAX] = { 0 };
      |                          ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-j4-20211218-140106

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

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-11.2.1 *
clang version 13.0.0
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.9
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.57.0
  [2]   rust-1.57.0 *
php cli:

  HEAD of ::gentoo
commit 814453ed281ece5abc7a38e4c419863866d26c6e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 20 00:22:01 2021 +0000

    2021-12-20 00:21:59 UTC

emerge -qpvO sys-apps/nvme-cli
[ebuild  N    ] sys-apps/nvme-cli-1.16  USE="json uuid -hugepages (-systemd)"
Comment 1 Toralf Förster gentoo-dev 2021-12-20 10:28:57 UTC
Created attachment 759888 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-12-20 10:28:58 UTC
Created attachment 759889 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-12-20 10:29:00 UTC
Created attachment 759890 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-12-20 10:29:01 UTC
Created attachment 759891 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-12-20 10:29:02 UTC
Created attachment 759892 [details]
sys-apps:nvme-cli-1.16:20211220-015212.log
Comment 6 Toralf Förster gentoo-dev 2021-12-20 10:29:03 UTC
Created attachment 759893 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2021-12-20 23:53:01 UTC
The bug has been closed via the following commit(s):

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

commit b24dbb2a1dc978481648d73d380422dd06083ae8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-20 23:52:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-20 23:52:52 +0000

    sys-apps/nvme-cli: fix musl build
    
    Closes: https://bugs.gentoo.org/829705
    Signed-off-by: Sam James <sam@gentoo.org>

 .../nvme-cli/files/nvme-cli-1.16-musl-limits.patch | 24 ++++++++++++++++++++++
 sys-apps/nvme-cli/nvme-cli-1.16.ebuild             |  4 ++++
 2 files changed, 28 insertions(+)