Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875047 - sys-apps/readahead-list-1.20060421.1016-r3 - readahead-list.c: error: implicit declaration of function readahead [-Werror=implicit
Summary: sys-apps/readahead-list-1.20060421.1016-r3 - readahead-list.c: error: implici...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-10-04 16:39 UTC by Toralf Förster
Modified: 2022-12-25 21:24 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.50 KB, text/plain)
2022-10-04 16:39 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,219.10 KB, text/plain)
2022-10-04 16:39 UTC, Toralf Förster
Details
environment (environment,24.34 KB, text/plain)
2022-10-04 16:39 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.85 KB, application/x-bzip)
2022-10-04 16:39 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.58 KB, application/x-bzip)
2022-10-04 16:39 UTC, Toralf Förster
Details
sys-apps:readahead-list-1.20060421.1016-r3:20221004-111935.log (sys-apps:readahead-list-1.20060421.1016-r3:20221004-111935.log,18.63 KB, text/plain)
2022-10-04 16:39 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,11.40 KB, application/x-bzip)
2022-10-04 16:39 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 2022-10-04 16:39:34 UTC
make[2]: Entering directory '/var/tmp/portage/sys-apps/readahead-list-1.20060421.1016-r3/work/readahead-list-1.20060421.1016/src'
x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I..   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -pipe -march=native -fno-diagnostics-color -O2 -Wall -W -c -o filelist-order.o filelist-order.cxx
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int -Wall -W -c readahead-list.c
readahead-list.c: In function process_file:
readahead-list.c:111:17: error: implicit declaration of function readahead [-Werror=implicit-function-declaration]
  111 |                 readahead(fd, (loff_t)0, (size_t)buf.st_size);
      |                 ^~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20221002-192609

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.1
Python 3.10.7
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	IcedTea JDK 3.16.0 [icedtea-bin-8]
2)	OpenJDK 17.0.5_p5 [openjdk-17]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
4)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8 
  [2]   openjdk-17 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
GNU Make 4.3

  HEAD of ::gentoo
commit 33708215c8448ad013f81ab41acb167b075553fc
Merge: 102d52e012d6 a5e56ad57c2d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Oct 4 10:32:41 2022 +0000

    Merge updates from master

emerge -qpvO sys-apps/readahead-list
[ebuild  N    ] sys-apps/readahead-list-1.20060421.1016-r3  USE="-doc"
Comment 1 Toralf Förster gentoo-dev 2022-10-04 16:39:35 UTC
Created attachment 819550 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-04 16:39:37 UTC
Created attachment 819553 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-10-04 16:39:38 UTC
Created attachment 819556 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-04 16:39:39 UTC
Created attachment 819559 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-04 16:39:41 UTC
Created attachment 819562 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-04 16:39:42 UTC
Created attachment 819565 [details]
sys-apps:readahead-list-1.20060421.1016-r3:20221004-111935.log
Comment 7 Toralf Förster gentoo-dev 2022-10-04 16:39:42 UTC
Created attachment 819568 [details]
temp.tar.bz2
Comment 8 Larry the Git Cow gentoo-dev 2022-12-25 21:24:38 UTC
The bug has been closed via the following commit(s):

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

commit edbec5e721da2cb38c8beebee4d5ad0a079c2166
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-25 21:08:28 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-25 21:24:10 +0000

    sys-apps/readahead-list: EAPI 8, fix build w/ Clang 16
    
    Closes: https://bugs.gentoo.org/875047
    Closes: https://bugs.gentoo.org/851825
    Signed-off-by: Sam James <sam@gentoo.org>

 .../1.20060421.1016/0001-Modernise-autotools.patch | 44 ++++++++++++++
 ...OURCE-for-readahead-to-fix-Wimplicit-func.patch | 70 ++++++++++++++++++++++
 ...tting-up-Large-File-Support-use-AC_SYS_LA.patch | 43 +++++++++++++
 ...der.cxx-Add-missing-cstdlib-include-for-e.patch | 22 +++++++
 .../0005-Fix-build-with-modern-C.patch             | 50 ++++++++++++++++
 .../readahead-list/files/init.d-readahead-list     |  2 +-
 .../files/init.d-readahead-list-early              |  3 +-
 .../readahead-list-1.20060421.1016-gcc-4.3.patch   | 10 ----
 .../readahead-list-1.20060421.1016-gcc6.patch      | 15 -----
 ...ld => readahead-list-1.20060421.1016-r4.ebuild} | 37 ++++++++----
 10 files changed, 256 insertions(+), 40 deletions(-)