Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871177 - dev-libs/chmlib-0.40-r1 - call to undeclared function pread64; ISO C99 and later do not support
Summary: dev-libs/chmlib-0.40-r1 - call to undeclared function pread64; ISO C99 and la...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords: PATCH
: 871069 882093 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-18 09:13 UTC by Toralf Förster
Modified: 2023-04-22 16:54 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,18.39 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,1.61 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
dev-libs:chmlib-0.40-r1:20220918-085646.log (dev-libs:chmlib-0.40-r1:20220918-085646.log,15.97 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,209.19 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
environment (environment,78.13 KB, text/plain)
2022-09-18 09:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,13.94 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.64 KB, application/x-bzip)
2022-09-18 09:13 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.58 KB, application/x-bzip)
2022-09-18 09:13 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-09-18 09:13:22 UTC
too long lines were shrinked:

libtool: compile:  clang -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" "-DPACKAGE_STRING=\"chmlib 0.40\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -
clang -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" -DPACKAGE_STRING=\"chmlib\ 0.40\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DH
libtool: compile:  clang -DPACKAGE_NAME=\"chmlib\" -DPACKAGE_TARNAME=\"chmlib\" -DPACKAGE_VERSION=\"0.40\" "-DPACKAGE_STRING=\"chmlib 0.40\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"chmlib\" -DVERSION=\"0.40\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -
/var/tmp/portage/dev-libs/chmlib-0.40-r1/work/chmlib-0.40/src/chm_lib.c:738:15: error: 
      call to undeclared function 'pread64'; ISO C99 and later do not support
      implicit function declarations [-Werror,-Wimplicit-function-declaration]
    readLen = pread64(h->fd, buf, (long)len, os);

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.2.0 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.16.1_p1 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):
  [1]   php8.1 *
GNU Make 4.3.90

  HEAD of ::gentoo
commit 5f2fa9b1a32565dcaa7598b8076fc7af1e205e0b
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Sep 18 08:16:58 2022 +0000

    2022-09-18 08:16:58 UTC

emerge -qpvO dev-libs/chmlib
[ebuild  N    ] dev-libs/chmlib-0.40-r1  USE="examples -static-libs"
Comment 1 Toralf Förster gentoo-dev 2022-09-18 09:13:23 UTC
Created attachment 810241 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-18 09:13:23 UTC
Created attachment 810244 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-18 09:13:24 UTC
Created attachment 810247 [details]
dev-libs:chmlib-0.40-r1:20220918-085646.log
Comment 4 Toralf Förster gentoo-dev 2022-09-18 09:13:26 UTC
Created attachment 810250 [details]
emerge-history.txt
Comment 5 Toralf Förster gentoo-dev 2022-09-18 09:13:28 UTC
Created attachment 810253 [details]
environment
Comment 6 Toralf Förster gentoo-dev 2022-09-18 09:13:29 UTC
Created attachment 810256 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-09-18 09:13:30 UTC
Created attachment 810259 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-18 09:13:31 UTC
Created attachment 810262 [details]
temp.tar.bz2
Comment 9 Marek Szuba archtester gentoo-dev 2022-10-04 15:06:45 UTC
*** Bug 871069 has been marked as a duplicate of this bug. ***
Comment 10 Marek Szuba archtester gentoo-dev 2022-11-20 21:21:27 UTC
*** Bug 882093 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2023-04-22 16:54:21 UTC
The bug has been closed via the following commit(s):

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

commit d60d0beb9b2ca0afb938792dfd12599ca2c424d2
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-22 16:53:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-22 16:53:17 +0000

    dev-libs/chmlib: fix w/ clang 16
    
    Closes: https://bugs.gentoo.org/871177
    Signed-off-by: Sam James <sam@gentoo.org>

 ...chmlib-0.40-r1.ebuild => chmlib-0.40-r2.ebuild} |  3 ++-
 dev-libs/chmlib/files/chmlib-0.40-clang16.patch    | 24 ++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)