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

Bug 774666

Summary: sys-apps/fakechroot-2.20.1 - chroot.c: error: _STAT_VER undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: No maintainer - Look at if you want to take care of it <maintainer-needed>
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 768369    
Attachments: emerge-info.txt
Usable but improper patch

Description Toralf Förster gentoo-dev 2021-03-07 13:39:19 UTC
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -O2 -pipe -march=native -fno-diagnostics-color -c chroot.c  -fPIC -DPIC -o .libs/chroot.o
chroot.c: In function ‘chroot’:
chroot.c:38:45: error: ‘_STAT_VER’ undeclared (first use in this function)
   38 | # define STAT(path, sb) nextcall(__xstat64)(_STAT_VER, path, sb)
      |                                             ^~~~~~~~~
chroot.c:108:19: note: in expansion of macro ‘STAT’


  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-20210303-131616


gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.2.0 *
clang version 11.1.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/11/bin
Python 3.8.8
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.50.0 *
The following VMs are available for generation-2:
*)	AdoptOpenJDK 8.282_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.8.4

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Sun Mar  7 13:20:58 UTC 2021

emerge -qpvO sys-apps/fakechroot
[ebuild  N    ] sys-apps/fakechroot-2.20.1
Comment 1 Toralf Förster gentoo-dev 2021-03-07 13:39:20 UTC
Created attachment 689772 [details]
Comment 2 Toralf Förster gentoo-dev 2021-03-07 13:39:22 UTC
Created attachment 689775 [details]
Comment 3 Toralf Förster gentoo-dev 2021-03-07 13:39:23 UTC
Created attachment 689778 [details]
Comment 4 Toralf Förster gentoo-dev 2021-03-07 13:39:24 UTC
Created attachment 689781 [details]
Comment 5 Toralf Förster gentoo-dev 2021-03-07 13:39:25 UTC
Created attachment 689784 [details]
Comment 6 Toralf Förster gentoo-dev 2021-03-07 13:39:26 UTC
Created attachment 689787 [details]
Comment 7 Toralf Förster gentoo-dev 2021-03-07 13:39:28 UTC
Created attachment 689790 [details]
Comment 8 Michael Schmid 2021-04-17 20:57:40 UTC
This issue was apparently addressed:

A patch prepared from with the diffs specific to, .gitlab-ci.yml and test/ removed compiles, but gives me QA warnings (implicit function definitions which are invalid in C99) and is possibly not the minimum required, but I lack fluency in C.
Comment 9 Michael Schmid 2021-04-17 21:18:50 UTC
Created attachment 700449 [details, diff]
Usable but improper patch

See Comment #8. Still triggers QA warnings.
Comment 10 Larry the Git Cow gentoo-dev 2021-04-19 21:14:20 UTC
The bug has been closed via the following commit(s):

commit 7196d1665ae9b57cd3c063d868e281d8f733170d
Author:     Mike Gilbert <>
AuthorDate: 2021-04-19 21:13:41 +0000
Commit:     Mike Gilbert <>
CommitDate: 2021-04-19 21:13:57 +0000

    sys-apps/fakechroot: fix build with glibc-2.33
    Signed-off-by: Mike Gilbert <>

 sys-apps/fakechroot/fakechroot-2.20.1.ebuild       |   4 +
 .../files/fakechroot-2.20.1-glibc-2.33.patch       | 469 +++++++++++++++++++++
 2 files changed, 473 insertions(+)