Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715568 - sys-fs/jfsutils-1.1.15-r1 : fssubs.c: error: _PATH_MNTTAB undeclared (first use in this function)
Summary: sys-fs/jfsutils-1.1.15-r1 : fssubs.c: error: _PATH_MNTTAB undeclared (first u...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
Keywords: PATCH, PullRequest
Depends on:
Blocks: missing-musl-includes
  Show dependency tree
Reported: 2020-03-31 07:08 UTC by Toralf Förster
Modified: 2022-11-18 02:20 UTC (History)
1 user (show)

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

emerge-info.txt (emerge-info.txt,15.33 KB, text/plain)
2020-03-31 07:08 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,132.87 KB, text/plain)
2020-03-31 07:08 UTC, Toralf Förster
environment (environment,86.21 KB, text/plain)
2020-03-31 07:08 UTC, Toralf Förster
etc.portage.tbz2 (etc.portage.tbz2,12.85 KB, application/x-bzip)
2020-03-31 07:08 UTC, Toralf Förster
logs.tbz2 (logs.tbz2,6.36 KB, application/x-bzip)
2020-03-31 07:08 UTC, Toralf Förster
sys-fs:jfsutils-1.1.15:20200331-032828.log (sys-fs:jfsutils-1.1.15:20200331-032828.log,6.90 KB, text/plain)
2020-03-31 07:09 UTC, Toralf Förster
temp.tbz2 (temp.tbz2,21.84 KB, application/x-bzip)
2020-03-31 07:09 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-31 07:08:40 UTC
x86_64-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I../include    -O2 -pipe -march=native -c fssubs.c
fssubs.c: In function Is_Device_Type_JFS:
fssubs.c:224:32: error: _PATH_MNTTAB undeclared (first use in this function)
  224 |  if ((FS_Info_File = setmntent(_PATH_MNTTAB, r)) == NULL) {
      |                                ^~~~~~~~~~~~
fssubs.c:224:32: 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
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 *

timestamp of HEAD at this tinderbox image:
/var/db/repos/gentoo	Tue Mar 31 01:38:59 UTC 2020
/var/db/repos/musl	Fri Mar 27 00:25:27 UTC 2020

emerge -qpvO sys-fs/jfsutils
[ebuild  N    ] sys-fs/jfsutils-1.1.15  USE="-static"
Comment 1 Toralf Förster gentoo-dev 2020-03-31 07:08:44 UTC
Created attachment 627768 [details]
Comment 2 Toralf Förster gentoo-dev 2020-03-31 07:08:48 UTC
Created attachment 627770 [details]
Comment 3 Toralf Förster gentoo-dev 2020-03-31 07:08:52 UTC
Created attachment 627772 [details]
Comment 4 Toralf Förster gentoo-dev 2020-03-31 07:08:55 UTC
Created attachment 627774 [details]
Comment 5 Toralf Förster gentoo-dev 2020-03-31 07:08:58 UTC
Created attachment 627776 [details]
Comment 6 Toralf Förster gentoo-dev 2020-03-31 07:09:01 UTC
Created attachment 627778 [details]
Comment 7 Toralf Förster gentoo-dev 2020-03-31 07:09:04 UTC
Created attachment 627780 [details]
Comment 9 Agostino Sarubbo gentoo-dev 2022-02-09 07:04:56 UTC
tinderbox_musl has reproduced this issue with version 1.1.15-r1 - Updating summary.
Comment 10 Larry the Git Cow gentoo-dev 2022-11-18 02:20:22 UTC
The bug has been closed via the following commit(s):

commit 5e7ab79918a995d18bb4b61fc3404ca05e20fda3
Author:     Ian Jordan <>
AuthorDate: 2022-11-17 23:20:40 +0000
Commit:     Sam James <>
CommitDate: 2022-11-18 02:18:03 +0000

    sys-fs/jfsutils: musl patch
    Patch from Alpine Linux to fix jfsutils not working on Musl systems.
    This has been tested on both Glibc and Musl systems to work.
    Orginal Alpine commit -
    Signed-off-by: Ian Jordan <>
    Signed-off-by: Sam James <>

 .../files/jfsutils-1.1.15-musl-fix-includes.patch  | 23 +++++++++
 sys-fs/jfsutils/jfsutils-1.1.15-r2.ebuild          | 55 ++++++++++++++++++++++
 2 files changed, 78 insertions(+)