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

Bug 874387

Summary: media-libs/compface-1.5.2 - cmain.c: error: call to undeclared function write; ISO C99 and later do
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Akinori Hattori <hattya>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/31908
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
logs.tar.bz2
media-libs:compface-1.5.2:20221002-221828.log
temp.tar.bz2

Description Toralf Förster gentoo-dev 2022-10-03 07:53:58 UTC
      in all versions of C and is not supported in C2x
      [-Wdeprecated-non-prototype]
main(argc, argv)
^
cmain.c:78:7: error: call to undeclared function 'write'; ISO C99 and later do
      not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]

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

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

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

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 Rust versions:
  [1]   rust-bin-1.64.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-17 

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

  HEAD of ::gentoo
commit e8e29df7377eeab512ce76c90af9d3b810edc07f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Oct 2 21:17:02 2022 +0000

    2022-10-02 21:17:02 UTC

emerge -qpvO media-libs/compface
[ebuild  N    ] media-libs/compface-1.5.2
Comment 1 Toralf Förster gentoo-dev 2022-10-03 07:53:59 UTC
Created attachment 816271 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-03 07:53:59 UTC
Created attachment 816274 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-03 07:54:00 UTC
Created attachment 816277 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-10-03 07:54:02 UTC
Created attachment 816280 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-10-03 07:54:03 UTC
Created attachment 816283 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-03 07:54:04 UTC
Created attachment 816286 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-03 07:54:05 UTC
Created attachment 816289 [details]
media-libs:compface-1.5.2:20221002-221828.log
Comment 8 Toralf Förster gentoo-dev 2022-10-03 07:54:07 UTC
Created attachment 816292 [details]
temp.tar.bz2
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-11 00:38:04 UTC
ping
Comment 10 Larry the Git Cow gentoo-dev 2023-10-01 07:55:12 UTC
The bug has been closed via the following commit(s):

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

commit d5c70dd1ac4747d1c2947792f66bbf9478e35c4d
Author:     x7upLime <andrew@andrewdomain.com>
AuthorDate: 2023-07-16 13:54:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-01 07:53:03 +0000

    media-libs/compface: Ports to clang-16
    
    Closes: https://bugs.gentoo.org/874387
    Signed-off-by: Andrei Corduneanu <andrew@andrewdomain.com>
    Closes: https://github.com/gentoo/gentoo/pull/31908
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/compface/compface-1.5.2-r1.ebuild       |  31 ++
 .../compface/files/compface-modern-c-porting.patch | 515 +++++++++++++++++++++
 2 files changed, 546 insertions(+)