Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774666 - sys-apps/fakechroot-2.20.1 - chroot.c: error: _STAT_VER undeclared (first use in this function)
Summary: sys-apps/fakechroot-2.20.1 - chroot.c: error: _STAT_VER undeclared (first use...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glibc-2.33
  Show dependency tree
 
Reported: 2021-03-07 13:39 UTC by Toralf Förster
Modified: 2021-04-19 21:14 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.33 KB, text/plain)
2021-03-07 13:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,175.64 KB, text/plain)
2021-03-07 13:39 UTC, Toralf Förster
Details
environment (environment,20.03 KB, text/plain)
2021-03-07 13:39 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,12.79 KB, application/x-bzip)
2021-03-07 13:39 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,17.89 KB, application/x-bzip)
2021-03-07 13:39 UTC, Toralf Förster
Details
sys-apps:fakechroot-2.20.1:20210307-133800.log (sys-apps:fakechroot-2.20.1:20210307-133800.log,31.78 KB, text/plain)
2021-03-07 13:39 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,11.15 KB, application/x-bzip)
2021-03-07 13:39 UTC, Toralf Förster
Details
Usable but improper patch (statx_master.patch,15.28 KB, patch)
2021-04-17 21:18 UTC, Michael Schmid
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
/usr/lib/llvm/11
11.1.0
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]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-03-07 13:39:22 UTC
Created attachment 689775 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-03-07 13:39:23 UTC
Created attachment 689778 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-03-07 13:39:24 UTC
Created attachment 689781 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-03-07 13:39:25 UTC
Created attachment 689784 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-03-07 13:39:26 UTC
Created attachment 689787 [details]
sys-apps:fakechroot-2.20.1:20210307-133800.log
Comment 7 Toralf Förster gentoo-dev 2021-03-07 13:39:28 UTC
Created attachment 689790 [details]
temp.tar.bz2
Comment 8 Michael Schmid 2021-04-17 20:57:40 UTC
This issue was apparently addressed:
https://github.com/dex4er/fakechroot/pull/85

A patch prepared from https://github.com/dex4er/fakechroot/compare/statx...lipnitsk:master.patch with the diffs specific to NEWS.md, .gitlab-ci.yml and test/archlinux.sh 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):

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

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

    sys-apps/fakechroot: fix build with glibc-2.33
    
    Closes: https://bugs.gentoo.org/774666
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

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