Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 716156 - sys-fs/dmraid-1.0.0_rc16-r4 : device/scan.c: error: _PATH_MOUNTED undeclared (first use in this function)
Summary: sys-fs/dmraid-1.0.0_rc16-r4 : device/scan.c: error: _PATH_MOUNTED undeclared ...
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:
Keywords:
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
 
Reported: 2020-04-04 11:02 UTC by Toralf Förster
Modified: 2020-04-05 02:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.53 KB, text/plain)
2020-04-04 11:02 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,281.26 KB, text/plain)
2020-04-04 11:02 UTC, Toralf Förster
Details
environment (environment,125.67 KB, text/plain)
2020-04-04 11:02 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,24.88 KB, application/x-bzip)
2020-04-04 11:02 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,8.82 KB, application/x-bzip)
2020-04-04 11:02 UTC, Toralf Förster
Details
sys-fs:dmraid-1.0.0_rc16-r4:20200404-091134.log (sys-fs:dmraid-1.0.0_rc16-r4:20200404-091134.log,36.17 KB, text/plain)
2020-04-04 11:02 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-04 11:02:18 UTC
x86_64-gentoo-linux-musl-gcc -o device/scan.o -c -I. -I../include -I../lib -include ../include/config.h  -O2 -pipe -march=native -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 -O2 -fPIC -Wall -Wundef -Wcast-align -Wwrite-strings -Winline -DDMRAID_AUTOREGISTER -O2 device/scan.c
device/scan.c: In function find_sysfs_mp:
device/scan.c:45:27: error: _PATH_MOUNTED undeclared (first use in this function)
   45 |   if (!(mfile = setmntent(_PATH_MOUNTED, r)))
      |                           ^~~~~~~~~~~~~
device/scan.c:45:27: 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-1.42.0 *
Available Java Virtual Machines:
  (none found)


timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sat Apr  4 08:37:49 UTC 2020
/var/db/repos/musl	Sat Apr  4 03:02:24 UTC 2020

emerge -qpvO sys-fs/dmraid
[ebuild  N    ] sys-fs/dmraid-1.0.0_rc16-r4  USE="-intel_led -led -mini -static"
Comment 1 Toralf Förster gentoo-dev 2020-04-04 11:02:21 UTC
Created attachment 629840 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-04-04 11:02:23 UTC
Created attachment 629842 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-04-04 11:02:26 UTC
Created attachment 629844 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-04-04 11:02:29 UTC
Created attachment 629846 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-04-04 11:02:32 UTC
Created attachment 629848 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-04-04 11:02:34 UTC
Created attachment 629850 [details]
sys-fs:dmraid-1.0.0_rc16-r4:20200404-091134.log
Comment 7 Larry the Git Cow gentoo-dev 2020-04-05 02:56:03 UTC
The bug has been closed via the following commit(s):

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

commit 07a74ec765ebc25d68f44c5aa8e91ae0f866c7ad
Author:     Ian Stakenvicius <axs@gentoo.org>
AuthorDate: 2020-04-05 02:55:11 +0000
Commit:     Ian Stakenvicius <axs@gentoo.org>
CommitDate: 2020-04-05 02:55:55 +0000

    sys-fs/dmraid: ensure _PATH_MOUNTED is defined, bump to EAPI7
    
    glibc's /usr/include/paths.h defines _PATH_MOUNTED as /etc/mtab
    but if musl doesn't have that define it would explain this
    failure.  This patch ensures its defined in the code.
    
    Also bumped ebuild to EAPI7
    
    Closes: https://bugs.gentoo.org/716156
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Ian Stakenvicius <axs@gentoo.org>

 sys-fs/dmraid/dmraid-1.0.0_rc16-r5.ebuild          | 102 +++++++++++++++++++++
 ...mraid-1.0.0_rc16-fix-missing-PATH-MOUNTED.patch |  14 +++
 2 files changed, 116 insertions(+)